Compare commits

...

No commits in common. "v961" and "v963" have entirely different histories.
v961 ... v963

4 changed files with 47 additions and 15 deletions

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

View File

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

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