openbsd-ports/mail/mailscanner/patches/patch-lib_kaspersky-autoupdate
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

24 lines
1.3 KiB
Plaintext

$OpenBSD: patch-lib_kaspersky-autoupdate,v 1.1.1.1 2008/02/20 03:47:18 todd Exp $
--- lib/kaspersky-autoupdate.orig Thu Jul 19 14:37:44 2007
+++ lib/kaspersky-autoupdate Sun Aug 5 04:03:26 2007
@@ -4,7 +4,7 @@ use Sys::Syslog;
# Note that there are shell bugs in the kavupdater.sh where they have used
# == instead of = for comparing numbers.
-$PackageDir = shift || "/opt/AVP";
+$PackageDir = shift || "%PREFIX%/AVP";
$KavUpdateBinary = "$PackageDir/kavupdater.sh";
$KavUpdateCommand = "cat $KavUpdateBinary | sed -e 's/==/=/g' | sh";
@@ -66,8 +66,8 @@ if (-x $KavUpdateBinary) {
$result = system($Command);
&Unlock();
if ($result) {
- Sys::Syslog::syslog('err', "Kaspersky update failed. You may need to add 'UpdatePath=http://www.kaspersky-labs.com/updates/' to your /opt/AVP/AvpUnix.ini");
- print STDERR "Kaspersky update failed. You may need to add\nUpdatePath=http://www.kaspersky-labs.com/updates/\nto your /opt/AVP/AvpUnix.ini\n";
+ Sys::Syslog::syslog('err', "Kaspersky update failed. You may need to add 'UpdatePath=http://www.kaspersky-labs.com/updates/' to your %PREFIX%/AVP/AvpUnix.ini");
+ print STDERR "Kaspersky update failed. You may need to add\nUpdatePath=http://www.kaspersky-labs.com/updates/\nto your %PREFIX%/AVP/AvpUnix.ini\n";
} else {
Sys::Syslog::syslog('info', "Kaspersky updated");
}