Summary: New generation amavis Summary(pl): Amavis nowej generacji Name: amavis-ng Version: 0.1.4.1.orig Release: 0 License: GPL Group: Applications/Mail Source0: http://prdownloads.sourceforge.net/amavis/%{name}_%{version}.tar.gz Patch0: amavis-ng.patch URL: http://amavis.sourceforge.net/ BuildRequires: perl BuildRequires: perl-devel Obsoletes: amavisd Obsoletes: amavis Obsoletes: AMaViS BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description blah %description -l pl blah blah %prep %setup -q %patch0 -p1 %build perl Makefile.PL %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %pre if [ -n "`getgid amavis`" ]; then if [ "`getgid amavis`" != "97" ]; then echo "Warning: group amavis doesn't have gid=97. Correct this before installing clamav" 1>&2 exit 1 fi else echo "adding group amavis GID=97" /usr/sbin/groupadd -g 97 -r -f amavis fi if [ -n "`id -u amavis 2>/dev/null`" ]; then if [ "`id -u amavis`" != "97" ]; then echo "Error: user amavis doesn't have uid=97. Correct this before installing amavis." 1>&2 exit 1 fi else echo "adding user amavis UID=97" /usr/sbin/useradd -u 97 -r -d /var/spool/amavis -s /bin/false -c "Anti Virus Checker" -g nobody amavis 1>&2 fi %postun if [ "$1" = "0" ]; then echo "Removing user amavis" /usr/sbin/userdel amavis echo "Removing group clamav" /usr/sbin/groupdel amavis fi %files %defattr(644,root,root,755) %doc README TODO %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* %{_datadir}/amavis %attr(750,amavis,amavis) /var/spool/amavis