Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_clamav@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit 9f9f0d843d
8 changed files with 95 additions and 0 deletions

34
etc/init.d/clamav Normal file
View File

@ -0,0 +1,34 @@
#!/bin/sh
source /etc/init.d/functions
case "$1" in
start)
echo "Starting clamd"
loadproc /usr/sbin/clamd
if [ -f /usr/sbin/clamav-milter ]; then
echo "Starting milter"
loadproc /usr/sbin/clamav-milter
fi
;;
stop)
if [ -f /usr/sbin/clamav-milter ]; then
echo "Stopping milter"
killproc /usr/sbin/clamav-milter
fi
echo "Stopping clamd"
killproc /usr/sbin/clamd
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0

View File

@ -0,0 +1,11 @@
description "clamav mail virus scanner for sendmail startup"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started clamd))
stop on stopping clamd
console output
exec /usr/sbin/clamav-milter

11
etc/init/clamd.conf Normal file
View File

@ -0,0 +1,11 @@
description "clamav virus scanner deamon startup"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started ifup))
stop on runlevel [016]
console output
exec /usr/sbin/clamd

20
init/genpkg Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
#
if [ -d /var/install/sysvinit* ]; then
WDIR=`pwd`
cd etc/init.d
chmod 755 clamav
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 2 6; do
cd rc$i.d
ln -s ../clamav K41clamav
cd ..
done
for i in 3 4 5; do
cd rc$i.d
ln -s ../clamav S59clamav
cd ..
done
cd $WDIR
fi

10
tmp/postinstall Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if ! getent group clamav >/dev/null; then
groupadd -g 30 clamav
fi
if ! getent passwd clamav >/dev/null; then
useradd -u 55 -g clamav -d /tmp clamav
fi
chown clamav:clamav /usr/share/clamav/main.cvd

8
tmp/postremove Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if getent passwd clamav >/dev/null; then
userdel clamav
fi
if getent group clamav >/dev/null; then
groupdel clamav
fi

Binary file not shown.

View File

@ -0,0 +1 @@
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*