- Improve handling of /var/run/clamav.
OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=89
This commit is contained in:
parent
409168917e
commit
bc9c8634ed
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 4 14:19:01 UTC 2014 - max@suse.com
|
||||||
|
|
||||||
|
- Improve handling of /var/run/clamav.
|
||||||
|
|
||||||
Fri Jan 24 15:40:03 UTC 2014 - max@suse.com
|
Fri Jan 24 15:40:03 UTC 2014 - max@suse.com
|
||||||
|
|
||||||
- Version 0.98.1:
|
- Version 0.98.1:
|
||||||
|
12
clamav.spec
12
clamav.spec
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d}
|
||||||
|
|
||||||
Name: clamav
|
Name: clamav
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
@ -134,8 +136,8 @@ install -m755 %SOURCE5 %buildroot/etc/init.d/clamav-milter
|
|||||||
ln -s /etc/init.d/clamav-milter %buildroot%_sbindir/rcclamav-milter
|
ln -s /etc/init.d/clamav-milter %buildroot%_sbindir/rcclamav-milter
|
||||||
install -m755 %SOURCE3 %buildroot%_sbindir/updateclamconf
|
install -m755 %SOURCE3 %buildroot%_sbindir/updateclamconf
|
||||||
install -d -m755 %buildroot/var/{lib,run}/clamav
|
install -d -m755 %buildroot/var/{lib,run}/clamav
|
||||||
install -d -m755 %buildroot/usr/lib/tmpfiles.d
|
install -d -m755 %buildroot/%_tmpfilesdir
|
||||||
install -m644 %SOURCE6 %buildroot/usr/lib/tmpfiles.d/clamav.conf
|
install -m644 %SOURCE6 %buildroot%_tmpfilesdir/clamav.conf
|
||||||
mkdir -p %buildroot/var/spool/amavis
|
mkdir -p %buildroot/var/spool/amavis
|
||||||
%if 0%{?suse_version} > 1020
|
%if 0%{?suse_version} > 1020
|
||||||
rm %buildroot/%_libdir/*.la
|
rm %buildroot/%_libdir/*.la
|
||||||
@ -161,8 +163,7 @@ VALGRIND_GENSUP=1 make check
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) %_sysconfdir/*.conf
|
%config(noreplace) %_sysconfdir/*.conf
|
||||||
%config %attr(744,root,root)/etc/init.d/*
|
%config %attr(744,root,root)/etc/init.d/*
|
||||||
%dir /usr/lib/tmpfiles.d
|
%_tmpfilesdir
|
||||||
/usr/lib/tmpfiles.d/clamav.conf
|
|
||||||
%doc AUTHORS BUGS ChangeLog COPYING FAQ NEWS README UPGRADE
|
%doc AUTHORS BUGS ChangeLog COPYING FAQ NEWS README UPGRADE
|
||||||
%doc docs/*.pdf docs/html
|
%doc docs/*.pdf docs/html
|
||||||
%doc %_mandir/*/*
|
%doc %_mandir/*/*
|
||||||
@ -174,7 +175,7 @@ VALGRIND_GENSUP=1 make check
|
|||||||
%defattr(-,vscan,vscan)
|
%defattr(-,vscan,vscan)
|
||||||
%dir %attr(750,vscan,vscan) /var/spool/amavis
|
%dir %attr(750,vscan,vscan) /var/spool/amavis
|
||||||
%dir /var/lib/clamav
|
%dir /var/lib/clamav
|
||||||
%dir %attr(755,vscan,vscan) /var/run/clamav
|
%ghost %dir %attr(755,vscan,vscan) /var/run/clamav
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%_sbindir/groupadd -r vscan 2> /dev/null || :
|
%_sbindir/groupadd -r vscan 2> /dev/null || :
|
||||||
@ -198,6 +199,7 @@ for f in /etc/clamd.conf /etc/freshclam.conf /etc/clamav-milter.conf; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%stop_on_removal clamd freshclam
|
%stop_on_removal clamd freshclam
|
||||||
|
Loading…
Reference in New Issue
Block a user