- modified freshclam configuration to log by syslog by default
- disabled LocalSocket option in sample configuration - fixed clamav-milter sysv initscript to use bash interpreter and to be disabled by default
This commit is contained in:
parent
42e36a2d75
commit
3ec0300000
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# clamav-milter Starts/stop the "clamav-milter" daemon
|
# clamav-milter Starts/stop the "clamav-milter" daemon
|
||||||
#
|
#
|
||||||
# chkconfig: 345 99 1
|
# chkconfig: - 99 1
|
||||||
# description: A virus scanning milter
|
# description: A virus scanning milter
|
||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
|
17
clamav.spec
17
clamav.spec
@ -321,15 +321,18 @@ mkdir -p libclamunrar{,_iface}
|
|||||||
%{!?with_unrar:touch libclamunrar/{Makefile.in,all,install}}
|
%{!?with_unrar:touch libclamunrar/{Makefile.in,all,install}}
|
||||||
|
|
||||||
sed -ri \
|
sed -ri \
|
||||||
-e 's!^(#?LogFile ).*!\1/var/log/clamd.<SERVICE>!g' \
|
-e 's!^#?(LogFile ).*!#\1/var/log/clamd.<SERVICE>!g' \
|
||||||
-e 's!^(#?LocalSocket ).*!\1/var/run/clamd.<SERVICE>/clamd.sock!g' \
|
-e 's!^#?(LocalSocket ).*!#\1/var/run/clamd.<SERVICE>/clamd.sock!g' \
|
||||||
-e 's!^(#?PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g' \
|
-e 's!^(#?PidFile ).*!\1/var/run/clamd.<SERVICE>/clamd.pid!g' \
|
||||||
-e 's!^#?(User ).*!\1<USER>!g' \
|
-e 's!^#?(User ).*!\1<USER>!g' \
|
||||||
-e 's!^#?(AllowSupplementaryGroups|LogSyslog).*!\1 yes!g' \
|
-e 's!^#?(AllowSupplementaryGroups|LogSyslog).*!\1 yes!g' \
|
||||||
-e 's! /usr/local/share/clamav,! %homedir,!g' \
|
-e 's! /usr/local/share/clamav,! %homedir,!g' \
|
||||||
etc/clamd.conf
|
etc/clamd.conf
|
||||||
|
|
||||||
sed -ri -e 's!^#(UpdateLogFile )!\1!g;' etc/freshclam.conf
|
sed -ri \
|
||||||
|
-e 's!^#?(UpdateLogFile )!#\1!g;' \
|
||||||
|
-e 's!^#?(LogSyslog).*!\1 yes!g' \
|
||||||
|
-e 's!(DatabaseOwner *)clamav$!\1%username!g' etc/freshclam.conf
|
||||||
|
|
||||||
|
|
||||||
## ------------------------------------------------------------
|
## ------------------------------------------------------------
|
||||||
@ -468,7 +471,7 @@ rm -rf "$RPM_BUILD_ROOT"
|
|||||||
|
|
||||||
## ------------------------------------------------------------
|
## ------------------------------------------------------------
|
||||||
|
|
||||||
%triggerprein filesystem -- clamav-filesystem < 0.95.2-3
|
%triggerprein filesystem -- clamav-filesystem < 0.96
|
||||||
## REMOVE me in F14 or F15 (added in pre F12)
|
## REMOVE me in F14 or F15 (added in pre F12)
|
||||||
! /usr/bin/id clamav &>/dev/null || /usr/bin/id %username &>/dev/null || {
|
! /usr/bin/id clamav &>/dev/null || /usr/bin/id %username &>/dev/null || {
|
||||||
/usr/sbin/usermod -l %username clamav || :
|
/usr/sbin/usermod -l %username clamav || :
|
||||||
@ -691,6 +694,12 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 9 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-5
|
||||||
|
- modified freshclam configuration to log by syslog by default
|
||||||
|
- disabled LocalSocket option in sample configuration
|
||||||
|
- fixed clamav-milter sysv initscript to use bash interpreter and to
|
||||||
|
be disabled by default
|
||||||
|
|
||||||
* Sat Aug 8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-4
|
* Sat Aug 8 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.95.2-4
|
||||||
- renamed 'clamav' user/group to 'clamupdate'
|
- renamed 'clamav' user/group to 'clamupdate'
|
||||||
- add the '%milteruser' user to the '%scanuser' group when the -scanner
|
- add the '%milteruser' user to the '%scanuser' group when the -scanner
|
||||||
|
Loading…
Reference in New Issue
Block a user