openbsd-ports/mail/mailscanner/patches/patch-lib_clamav-wrapper
todd 67e704c90d import MailScanner 4.66.5-3, a virus/spam scanning framework
MailScanner is a complete e-mail security system designed for use on
e-mail gateways. It protects against viruses, and detects attacks
against e-mail client packages (such as Outlook, Outlook Express,
Eudora). It can also detect almost all unsolicited commercial e-mail
(spam) passing through it and respond to all incidents in a wide variety
of ways.

..see http://www.mailscanner.info/ for more details.

I have included a generic spam scanner that if enabled uses dspam, as an
alternative to SpamAssassin.

Thanks to Brad Smith for helping get this ready for import.  This has been
a few years in the making.
2008-02-20 03:47:18 +00:00

42 lines
1.7 KiB
Plaintext

$OpenBSD: patch-lib_clamav-wrapper,v 1.1.1.1 2008/02/20 03:47:18 todd Exp $
--- lib/clamav-wrapper.orig Tue Jun 6 12:03:41 2006
+++ lib/clamav-wrapper Mon Feb 18 01:38:02 2008
@@ -51,7 +51,7 @@
# You may want to check this script for bash-isms
-TempDir="/tmp/clamav.$$"
+TempDir="`mktemp -d /var/spool/MailScanner/clamav.XXXXXXXXXXXXXXX`"
ClamUser="clamav"
ClamGroup="clamav"
@@ -98,23 +98,23 @@ ExtraScanOptions="$ExtraScanOptions --deb"
# LESS COMMON unpackers, which probably aren't installed by default
# (hence disabled)
# Uncomment ONE of the following lines if you have unrar installed
-#ExtraScanOptions="$ExtraScanOptions --unrar"
+ExtraScanOptions="$ExtraScanOptions --unrar"
#ExtraScanOptions="$ExtraScanOptions --unrar=/path/to/unrar"
# Uncomment ONE of the following lines if you have unarj installed
-#ExtraScanOptions="$ExtraScanOptions --unarj"
+ExtraScanOptions="$ExtraScanOptions --unarj"
#ExtraScanOptions="$ExtraScanOptions --unarj=/path/to/unarj"
# Uncomment ONE of the following lines if you have unace installed
-#ExtraScanOptions="$ExtraScanOptions --unace"
+ExtraScanOptions="$ExtraScanOptions --unace"
#ExtraScanOptions="$ExtraScanOptions --unace=/path/to/unace"
# Uncomment ONE of the following lines if you have lha installed
-#ExtraScanOptions="$ExtraScanOptions --lha"
+ExtraScanOptions="$ExtraScanOptions --lha"
#ExtraScanOptions="$ExtraScanOptions --lha=/path/to/lha"
# Uncomment ONE of the following lines if you have zoo installed
-#ExtraScanOptions="$ExtraScanOptions --zoo"
+ExtraScanOptions="$ExtraScanOptions --zoo"
#ExtraScanOptions="$ExtraScanOptions --zoo=/path/to/unzoo"
# Now increase the allowed expansion size of zip files