1 %include /usr/lib/rpm/macros.perl
2 Summary: New generation amavis
3 Summary(pl): Amavis nowej generacji
8 Group: Applications/Mail
9 Source0: http://dl.sourceforge.net/amavis/%{name}_%{version}.tar.gz
10 # Source0-md5: cb194e571b3de9ec1fef489bb812579e
12 URL: http://amavis.sourceforge.net/
13 BuildRequires: perl-Config-IniFiles
14 BuildRequires: perl-File-MMagic
15 BuildRequires: perl-devel
16 BuildRequires: perl-libnet
17 BuildRequires: rpm-perlprov
18 Requires(pre): /usr/bin/getgid
19 Requires(pre): /bin/id
20 Requires(pre): /usr/sbin/groupadd
21 Requires(pre): /usr/sbin/useradd
22 Requires(postun): /usr/sbin/userdel
23 Requires(postun): /usr/sbin/groupdel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _noautoreq 'perl(Archive::Tar)' 'perl(Archive::Zip)' 'perl(Compress::Zlib)' 'perl(Convert::TNEF)' 'perl(Convert::UUlib)' 'perl(MIME::Parser)' 'perl(File::Scan)'
33 AMaViS-ng is a modular rewrite of amavisd and amavis-perl. It scans
34 email for malicious code inside attachments and archive files,
35 stopping delivery if malicious code is found. It supports integration
36 of several third-party virus scanners and integrates nicely into
37 several MTA setups. Unlike amavis-perl and amavisd, there is no need
38 for build-time configuration.
41 AMaViS-ng to przepisana w sposób modularny wersja projektów amavisd i
42 amavis-perl. Skanuje pocztê elektroniczn± na okoliczno¶æ gro¼nego kodu
43 wewn±trz za³±czników i archiwów, nie pozwalaj±c na dorêczenie w
44 przypadku wykrycia. Wspiera integracjê ró¿nych zewnêtrznych skanerów
45 antywirusowych, ³adnie integruje siê z ró¿nymi serwerami pocztowymi.
46 W przeciwieñstwie do amavis-perl i amavisd, nie wymaga konfiguracji w
54 %{__perl} Makefile.PL \
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 if [ -n "`getgid amavis`" ]; then
70 if [ "`getgid amavis`" != "97" ]; then
71 echo "Warning: group amavis doesn't have gid=97. Correct this before installing amavis" 1>&2
75 echo "adding group amavis GID=97"
76 /usr/sbin/groupadd -g 97 -r -f amavis
79 if [ -n "`id -u amavis 2>/dev/null`" ]; then
80 if [ "`id -u amavis`" != "97" ]; then
81 echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2
85 echo "adding user amavis UID=97"
86 /usr/sbin/useradd -u 97 -r -d /var/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody amavis 1>&2
90 if [ "$1" = "0" ]; then
91 echo "Removing user amavis"
92 /usr/sbin/userdel amavis
93 echo "Removing group amavis"
94 /usr/sbin/groupdel amavis
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/*
101 %attr(755,root,root) %{_sbindir}/*
103 %attr(750,amavis,sweep) /var/spool/amavis
104 %{perl_vendorlib}/AMAVIS.pm
105 %{perl_vendorlib}/AMAVIS