1 %include /usr/lib/rpm/macros.perl
4 Summary: A Mail Virus Scanner
5 Summary(pl): Antywirusowy skaner poczty elektronicznej
7 Version: 0.3.13%{sub_ver}
9 URL: http://www.amavis.org/
10 Source0: http://www.amavis.org/dist/perl/%{name}-%{version}.tar.gz
11 # Source0-md5: 2b90dba30a5ea2b73c2b348e26967f30
12 Source1: amavis-README.courier
14 Group: Applications/Mail
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake
18 BuildRequires: perl-modules
19 BuildRequires: perl-Convert-UUlib
20 BuildRequires: perl-Convert-TNEF
21 BuildRequires: perl-Unix-Syslog
22 BuildRequires: perl-Archive-Tar
23 BuildRequires: perl-Archive-Zip
24 BuildRequires: perl-Compress-Zlib
25 BuildRequires: perl-MIME-tools
27 BuildRequires: sh-utils
32 BuildRequires: ncompress
35 Requires(pre): /bin/id
36 Requires(pre): /usr/sbin/useradd
37 Requires(postun): /usr/sbin/userdel
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 AMaViS is a script that interfaces a mail transport agent (MTA) with
52 one or more virus scanners.
55 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
56 a jednym lub wiêcej programów antywirusowych.
59 Summary: A Mail Virus Scanner - courier backend
60 Summary(pl): Antywirusowy skaner poczty elektronicznej - backend dla couriera
61 Group: Applications/Mail
62 Requires: amavis = %{version}-%{release}
64 Provides: amavis-courier
67 AMaViS is a script that interfaces a mail transport agent (MTA) with
68 one or more virus scanners. This package contains backend for courier.
70 %description courier -l pl
71 AMaViS to skrypt po¶rednicz±cy pomiêdzy agentem transferu poczty (MTA)
72 a jednym lub wiêcej programów antywirusowych.
83 --with-sendmail-wrapper=%{_sbindir}/sendmail \
84 --with-runtime-dir=/var/spool/amavis/runtime \
85 --with-virusdir=/var/spool/amavis/virusmails \
86 --with-mailto="postmaster" \
88 --with-amavisuser=amavis \
93 cp amavis/amavis amavis/amavis.courier
96 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
102 install %{SOURCE1} ./README.courier
103 install amavis/amavis.courier $RPM_BUILD_ROOT%{_sbindir}
105 # remove unneccessary files
106 rm -f %{_sbindir}/amavis
109 rm -rf $RPM_BUILD_ROOT
112 if [ -n "`id -u amavis 2>/dev/null`" ]; then
113 if [ "`id -u amavis`" != "97" ]; then
114 echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2
118 /usr/sbin/useradd -u 97 -r -d /var/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody amavis 1>&2
122 if [ "$1" = "0" ]; then
123 /usr/sbin/userdel amavis
127 %defattr(644,root,root,755)
128 %doc README README.scanners AUTHORS BUGS ChangeLog FAQ TODO doc/amavis.html doc/amavis.png
129 %attr(750,amavis,root) /var/spool/amavis
132 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_sbindir}/amavis.courier