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:
commit
9f9f0d843d
34
etc/init.d/clamav
Normal file
34
etc/init.d/clamav
Normal 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
|
11
etc/init/clamav-milter.conf
Normal file
11
etc/init/clamav-milter.conf
Normal 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
11
etc/init/clamd.conf
Normal 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
20
init/genpkg
Normal 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
10
tmp/postinstall
Normal 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
8
tmp/postremove
Normal 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
|
BIN
usr/share/doc/clamav/clamdoc.pdf
Normal file
BIN
usr/share/doc/clamav/clamdoc.pdf
Normal file
Binary file not shown.
1
usr/share/doc/clamav/dummyvirus/eicar.com
Normal file
1
usr/share/doc/clamav/dummyvirus/eicar.com
Normal file
@ -0,0 +1 @@
|
|||||||
|
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
|
Loading…
Reference in New Issue
Block a user