diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-05-14 21:31:33 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-05-14 21:31:33 +0000 |
commit | 77dbe6cfee61327255644cc2ed8e24394770647c (patch) | |
tree | 8a8b00b3d9b4f2ec5afadbbef2f0cc21dae592d6 /app-antivirus/clamav/files | |
parent | version bump (diff) | |
download | historical-77dbe6cfee61327255644cc2ed8e24394770647c.tar.gz historical-77dbe6cfee61327255644cc2ed8e24394770647c.tar.bz2 historical-77dbe6cfee61327255644cc2ed8e24394770647c.zip |
Multiple improvements, see ChangeLog for details. Closes #70960, #58446, #59911, #72540, #66905, #86777.
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r-- | app-antivirus/clamav/files/clamd.conf | 8 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc.new | 48 | ||||
-rw-r--r-- | app-antivirus/clamav/files/digest-clamav-0.85-r1 | 1 |
3 files changed, 52 insertions, 5 deletions
diff --git a/app-antivirus/clamav/files/clamd.conf b/app-antivirus/clamav/files/clamd.conf index 94be9e1e8408..e50660bfabbb 100644 --- a/app-antivirus/clamav/files/clamd.conf +++ b/app-antivirus/clamav/files/clamd.conf @@ -1,9 +1,7 @@ # Config file for /etc/init.d/clamd -START_CLAMD=no -CLAMD_OPTS="" -CLAMD_LOG="" +# NOTICE: Since clamav-0.85-r1, only START_CLAMD and START_FRESHCLAM settings +# are used, other are silently ignored +START_CLAMD=yes START_FRESHCLAM=yes -FRESHCLAM_OPTS="-d -c 2" -FRESHCLAM_LOG="/var/log/clam-update.log" diff --git a/app-antivirus/clamav/files/clamd.rc.new b/app-antivirus/clamav/files/clamd.rc.new new file mode 100644 index 000000000000..8a3ebb4bda76 --- /dev/null +++ b/app-antivirus/clamav/files/clamd.rc.new @@ -0,0 +1,48 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc.new,v 1.1 2005/05/14 21:31:33 ticho Exp $ + +CLAMD_SOCKET=`grep ^LocalSocket /etc/clamd.conf | cut -d\ -f 2` + +depend() { + use net + provide antivirus +} + +start() { + if [ "${START_CLAMD}" = "yes" ]; then + if [ -S "${CLAMD_SOCKET:-/tmp/clamd}" ]; then + rm -f ${CLAMD_SOCKET:-/tmp/clamd} + fi + ebegin "Starting clamd" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/clamd + eend $? "Failed to start clamd" + fi + if [ "${START_FRESHCLAM}" = "yes" ]; then + ebegin "Starting freshclam" + start-stop-daemon --start --quiet \ + --exec /usr/bin/freshclam + retcode=$? + if [ ${retcode} = 1 ]; then + eend 0 + einfo "Virus databases are already up to date." + else + eend ${retcode} "Failed to start freshclam." + fi + fi +} + +stop() { + if [ "${START_CLAMD}" = "yes" ]; then + ebegin "Stopping clamd" + start-stop-daemon --stop --quiet --name clamd + eend $? "Failed to stop clamd" + fi + if [ "${START_FRESHCLAM}" = "yes" ]; then + ebegin "Stopping freshclam" + start-stop-daemon --stop --quiet --name freshclam + eend $? "Failed to stop freshclam" + fi +} diff --git a/app-antivirus/clamav/files/digest-clamav-0.85-r1 b/app-antivirus/clamav/files/digest-clamav-0.85-r1 new file mode 100644 index 000000000000..dc72428f9d37 --- /dev/null +++ b/app-antivirus/clamav/files/digest-clamav-0.85-r1 @@ -0,0 +1 @@ +MD5 b6bf9b04d69b4e9cf917beca99d8169a clamav-0.85.tar.gz 4047244 |