clamav howto - update

	noramaler weise:
	./configure
	make
	make install
	/etc/init.d/clamd stop
	/etc/init.d/clamd start

	seit dem bug im C-compiler, welchen clam bemaengelt:

    ./configure CFLAGS=-O0
	make
	make install
	/etc/init.d/clamd stop
	freshclam
	/etc/init.d/clamd start

	das init script /etc/init.d/clamd :

#!/bin/sh
#
# Startup script to implement /usr/local/sbin/clamd
#
# chkconfig: 2345 08 92
#
# description: Automates starting of clamd daemon
#
# Script Author:	me
#

# Source 'em up
. /etc/init.d/functions

CLAMD="nice -n +19 /usr/local/sbin/clamd -c /etc/clamd.conf"
PIDF=/var/run/clamd/clamd.pid
PSDEAMON=clamd

if [ ! -x /usr/local/sbin/clamd ]; then
	exit 0
fi

check_process_from_pidfile () {
	if [ -f $PIDF ]; then
	   PID=`cat $PIDF`
           ps -edaf --width 2000 | grep $PID | grep clamd 2>/dev/null 1>&2
     	   retcode=$?
	   if [ $retcode -eq 0 ]; then
		 echo $PID
	         return 1
	   else
	      rm -f $PIDF
           fi
	fi
	echo 0
        return 0
} # check_process_from_pidfile ()

start() {
	[ -f $PIDF ] && chown clamav.clamav $PIDF >/dev/null 2>&1
	$CLAMD
	echo "clamd started"
}

stop() {
	killall $PSDEAMON || killall $CLAMD
}

case "$1" in
  start)
	start
	;;

  stop)
	stop
	;;

  restart)
	stop
	sleep 2
	start
	;;

  status)
  	if [ ! -f $PIDF ]; then
	    echo "PIDFile $PIDF not found - seems to be stopped"
	    exit 0
	else
            procnum=`check_process_from_pidfile`
	    echo "clamd: process $procnum is running"
	fi
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status}"
	exit 1
esac

exit 0