]> git.pld-linux.org Git - packages/amavisd-new.git/blob - amavisd-new.spec
- fixes/typos in summaries/descriptions
[packages/amavisd-new.git] / amavisd-new.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        A Mail Virus Scanner with SpamAssassin support - Daemon
3 Summary(pl):    Antywirusowy skaner poczty elektronicznej z obs³ug± SpamAssasina - Demon
4 Name:           amavisd-new
5 Version:        20021227
6 Release:        1
7 License:        GPL
8 Group:          Applications/Mail
9 Source0:        http://www.ijs.si/software/amavisd/%{name}-%{version}-p1.tar.gz
10 Source1:        %{name}.init
11 Patch0:         %{name}-config.patch
12 URL:            http://www.amavis.org/
13 BuildRequires:  arc
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  bzip2
17 BuildRequires:  file
18 BuildRequires:  lha
19 BuildRequires:  ncompress
20 BuildRequires:  perl-Archive-Tar
21 BuildRequires:  perl-Archive-Zip
22 BuildRequires:  perl-Compress-Zlib
23 BuildRequires:  perl-MIME-tools
24 BuildRequires:  perl-Unix-Syslog
25 BuildRequires:  perl-Convert-UUlib
26 BuildRequires:  perl-Convert-TNEF
27 BuildRequires:  perl-libnet
28 BuildRequires:  perl-Mail-SpamAssassin
29 BuildRequires:  perl-Net-Server
30 BuildRequires:  sh-utils
31 BuildRequires:  unarj
32 BuildRequires:  unrar
33 BuildRequires:  zoo
34 Requires(pre):  /bin/id
35 Requires(pre):  /usr/sbin/useradd
36 Requires(post,preun):   /sbin/chkconfig
37 Requires(postun):       /usr/sbin/userdel
38 Requires:       /usr/lib/sendmail
39 Requires:       arc
40 Requires:       bzip2
41 Requires:       file
42 Requires:       lha
43 Requires:       ncompress
44 Requires:       sh-utils
45 Requires:       unarj
46 Requires:       unrar
47 Requires:       zoo
48 Requires:       perl-Mail-SpamAssassin
49 #Requires:      perl-SAVI
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Obsoletes:      AMaViS
52 Obsoletes:      amavis
53 Obsoletes:      amavisd-daemon
54 Obsoletes:      amavisd-postfix
55 Obsoletes:      amavisd-exim
56 Obsoletes:      amavisd-qmail
57 Obsoletes:      amavisd-new-postfix
58 Obsoletes:      amavisd-new-exim
59 Obsoletes:      amavisd-new-qmail
60
61 %description
62 AMaViS is a script that interfaces a mail transport agent (MTA) with
63 one or more virus scanners and SpamAssasin. This is daemonized version
64 of amavis.
65
66 %description -l pl
67 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
68 a jednym lub wiêcej programów antywirusowych i SpamAssasinem. Wersja
69 zdemonizowana.
70
71 %package sendmail
72 Summary:        A Mail Virus Scanner with SpamAssasin support - sendmail backend
73 Summary(pl):    Antywirusowy skaner poczty elektronicznej - backend dla sendmaila
74 Group:          Applications/Mail
75 Requires:       sendmail
76 Requires:       %{name}
77
78 %description sendmail
79 AMaViS is a script that interfaces a mail transport agent (MTA) with
80 one or more virus scanners. This is daemonized version of amavis.
81
82 This package contains backend for sendmail.
83
84 %description sendmail -l pl
85 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
86 a jednym lub wiêcej programów antywirusowych. Wersja zdemonizowana.
87
88 Pakiet ten zawiera back-end dla sendmaila.
89
90 %prep
91 %setup -q
92 %patch0 -p1
93
94 %build
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_var}/spool/amavis/{runtime,virusmails},%{_var}/run/amavisd,%{_sysconfdir},%{_sbindir}}
99
100 install amavisd{,conf} $RPM_BUILD_ROOT%{_sbindir}/
101 install amavisd.conf $RPM_BUILD_ROOT%{_sysconfdir}/
102 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amavisd
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %pre
108 if [ -n "`id -u amavis 2>/dev/null`" ]; then
109         if [ "`id -u amavis`" != "97" ]; then
110                 echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2
111                 exit 1
112         fi
113 else
114         /usr/sbin/useradd -u 97 -r -d %{_var}/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody  amavis 1>&2
115 fi
116
117 %postun
118 if [ "$1" = "0" ]; then
119         /usr/sbin/userdel amavis
120 fi
121
122 %post
123 /sbin/chkconfig --add amavisd
124 if [ -f /var/lock/subsys/amavisd ]; then
125         /etc/rc.d/init.d/amavisd restart >&2
126 else
127         echo "Run \"/etc/rc.d/init.d/amavisd start\" to start Amavisd daemon."
128 fi
129
130 %preun
131 if [ "$1" = "0" ];then
132         if [ -f /var/lock/subsys/amavisd ]; then
133                 /etc/rc.d/init.d/amavisd stop >&2
134         fi
135         /sbin/chkconfig --del amavisd
136 fi
137
138 %files
139 %defattr(644,root,root,755)
140 %doc AAAREADME.first INSTALL RELEASE_NOTES README_FILES/* test-messages
141 %attr(755,root,root) %{_sbindir}/amavisd*
142 %attr(754,root,root) /etc/rc.d/init.d/*
143 %config(noreplace) %{_sysconfdir}/amavisd.conf
144 %attr(750,amavis,root) %{_var}/spool/amavis
145 %attr(755,amavis,root) %{_var}/run/amavisd
146
147 #%files sendmail
148 #%attr(755,root,root) %{_sbindir}/amavis
149 #%attr(755,root,root) %{_sbindir}/amavis-milter
This page took 0.358478 seconds and 4 git commands to generate.