[clamav/el6/master] - Make sure /var/lib/clamav/mirrors.dat has owner fixed on upgrade. - Don't start clamd or milter se

Jan-Frode Myklebust janfrode at fedoraproject.org
Thu Mar 17 09:13:09 UTC 2011


commit 86972941e69b28303796b75b36f923ed94c37d88
Author: Jan-Frode Myklebust <janfrode at tanso.net>
Date:   Thu Mar 17 10:12:35 2011 +0100

    - Make sure /var/lib/clamav/mirrors.dat has owner fixed on upgrade.
    - Don't start clamd or milter service by default.

 clamav.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index a756493..90e38b4 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -5,7 +5,7 @@
 Summary: Anti-virus software
 Name: clamav
 Version: 0.97
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: GPLv2
 Group: Applications/System
 URL: http://www.clamav.net/
@@ -252,6 +252,11 @@ touch %{buildroot}%{_localstatedir}/log/clamav/clamd.log
 install -d -m0755 %{buildroot}%{_localstatedir}/run/clamav/
 install -d -m0755 %{buildroot}%{_sysconfdir}/clamd.d/
 
+# mirrors.dat might exists with the wrong user on upgrades from pre v0.97,
+# touch it here, and later %ghost it so that the permissions are fixed if needed.
+touch %{buildroot}%{_localstatedir}/lib/clamav/mirrors.dat
+
+
 %post
 /sbin/ldconfig
 
@@ -382,6 +387,7 @@ rm -rf %{buildroot}
 %config(noreplace) %verify(user group mode) %{_localstatedir}/lib/clamav/
 %dir %{_localstatedir}/log/clamav/
 %ghost %{_localstatedir}/log/clamav/freshclam.log
+%ghost %{_localstatedir}/lib/clamav/mirrors.dat
 
 %files devel
 %defattr(-, root, root, 0755)
@@ -393,6 +399,10 @@ rm -rf %{buildroot}
 %exclude %{_libdir}/libclamav.la
 
 %changelog
+* Wed Mar 16 2011 Jan-Frode Myklebust <janfrode at tanso.net> - 0.97-10
+- Make sure /var/lib/clamav/mirrors.dat has owner fixed on upgrade.
+- Don't start clamd or milter service by default.
+
 * Tue Mar 15 2011 Jan-Frode Myklebust <janfrode at tanso.net> - 0.97-7
 - rpm-provide all old package names that are now obsoleted
 


More information about the scm-commits mailing list