V961 Tree Umbau

git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_clamav@4238 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2008-05-03 16:58:44 +00:00
commit 168e831d92
5 changed files with 63 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

18
init/genpkg Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
#
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

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

Binary file not shown.

View File

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