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:
commit
168e831d92
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
|
18
init/genpkg
Normal file
18
init/genpkg
Normal 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
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
|
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