Jul 16

if you get something like this:

error: Bad exit status from /var/tmp/rpm-tmp.64195 (%build)

i found a solution:

go to /usr/src/redhat/SOURCES/ and you will find:

-rw-r–r– 1 root root 196944 2006-11-10 02:14 simscan-1.3.1.tar.bz2
-rw-r–r– 1 root root 256 2007-01-12 02:22 simscan-1.3.x-clamav.patch.bz2

unpack simscan-1.3.1.tar.bz2 to a directory, unpack simscan-1.3.x-clamav.patch.bz2 to the same directory and apply patch:

patch -p 0 < simscan-1.3.x-clamav.patch now let's compile by hand: #./configure --enable-user=clamav --enable-clamav=y --enable-spam=y --enable-spam-passthru=n --enable-per-domain=y --enable-ripmime --enable-attach=y --enable-received=y --enable-clamdscan=/usr/bin/clamdscan --enable-clamavdb-path=/usr/share/clamav/ --enable-custom-smtp-reject=y --enable-spam-hits=20 --enable-workdir=/var/qmail/simscan/ --enable-controldir=/var/qmail/control/ --enable-received=y #make #make install-strip #cd /var/qmail/control/; touch simcontrol; edit file simcontrol and add: :clam=yes,spam=yes,spam_hits=10,attach=.mp3:.src:.bat:.pif:.exe #chown clamav.root simcontrol #qmailctl cdb and now you must have in /var/qmail/control/ this files: -rw-r--r-- 1 clamav root 64 2008-07-16 14:05 simcontrol -rw-r--r-- 1 root root 2134 2008-07-16 14:05 simcontrol.cdb -rw-r--r-- 1 root root 2164 2008-07-16 14:05 simversions.cdb and in /var/qmail/bin/: -rws--x--x 1 clamav root 27032 2008-07-16 17:03 /var/qmail/bin/simscan -rwxr-xr-x 1 root root 13120 2008-07-16 17:03 /var/qmail/bin/simscanmk I hope this is ok!

written by MG \\ tags: