[clamav/el6] Configure MilterSocket, PidFile and MilterSocket in clamav-milter.conf (bz#727894).

Jan-Frode Myklebust janfrode at fedoraproject.org
Thu Aug 4 08:10:54 UTC 2011


commit 3ebb6ff6bf713936d55085d2cfee375e475b0d52
Author: Jan-Frode Myklebust <janfrode at tanso.net>
Date:   Thu Aug 4 10:10:19 2011 +0200

    Configure MilterSocket, PidFile and MilterSocket in
    clamav-milter.conf (bz#727894).

 clamav.spec |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index 567babb..b4cde09 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -5,7 +5,7 @@
 Summary: Anti-virus software
 Name: clamav
 Version: 0.97.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2
 Group: Applications/System
 URL: http://www.clamav.net/
@@ -166,7 +166,9 @@ xz -dc %{SOURCE0} | (cd .. ; tar xvvf -)
 %{__perl} -pi.orig -e '
 		s|^(Example)|#$1|;
 		s|^#(User) .+$|$1 clam|;
-		s|^#(ClamdSocket) .+$|$1 %{_localstatedir}/run/clamav/clamd.sock|;
+		s|#MilterSocket inet.+$|MilterSocket /var/run/clamav/clamav-milter.sock|;
+		s|#PidFile .+$|PidFile /var/run/clamav/clamav-milter.pid|;
+		s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|;
 	' etc/clamav-milter.conf
 
 
@@ -407,6 +409,10 @@ rm -rf %{buildroot}
 %exclude %{_libdir}/libclamav.la
 
 %changelog
+* Thu Aug  4 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-4
+- Configure MilterSocket, PidFile and MilterSocket in clamav-milter.conf.
+  (bz#727894)
+
 * Wed Jul 27 2011 Jan-Frode Myklebuust <janfrode at tanso.net> - 0.97.2-3
 - include updated clamd-wrapper which get the PidFile setting from the
   service configuration file. 


More information about the scm-commits mailing list