From 57c111ba81b46a8a5d8eb5b1e80eb0aca9c1cb23 Mon Sep 17 00:00:00 2001 From: sergei Date: Wed, 20 Oct 2004 14:40:22 +0000 Subject: - Fix the script for updating AntiVir signatures: it failed to fetch the newest virus definitions PR: ports/72908 Submitted by: Jan-Peter Koopmann (maintainer) --- mail/mailscanner/Makefile | 1 + mail/mailscanner/files/patch-lib:antivir-autoupdate | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 mail/mailscanner/files/patch-lib:antivir-autoupdate (limited to 'mail') diff --git a/mail/mailscanner/Makefile b/mail/mailscanner/Makefile index 2360050..2eba1e2 100644 --- a/mail/mailscanner/Makefile +++ b/mail/mailscanner/Makefile @@ -7,6 +7,7 @@ PORTNAME= MailScanner PORTVERSION= 4.34.8 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/ DISTNAME= ${PORTNAME}-install-${PORTVERSION}-${PATCHLEVEL} diff --git a/mail/mailscanner/files/patch-lib:antivir-autoupdate b/mail/mailscanner/files/patch-lib:antivir-autoupdate new file mode 100644 index 0000000..f0df809 --- /dev/null +++ b/mail/mailscanner/files/patch-lib:antivir-autoupdate @@ -0,0 +1,21 @@ +--- ../MailScanner-install-4.34.8.orig/lib/antivir-autoupdate Wed Oct 20 08:09:38 2004 ++++ lib/antivir-autoupdate Wed Oct 20 08:10:10 2004 +@@ -9,7 +9,8 @@ + + $PackageDir = shift || "/usr/lib/AntiVir"; + +-$AntiVirUpdateCommand = "$PackageDir/antivir --update"; ++$AntiVirCommand = "$PackageDir/antivir"; ++$AntiVirUpdateCommand = "$AntiVirCommand --update"; + + $LockFile = "/tmp/AntiVirBusy.lock"; + +@@ -24,7 +25,7 @@ + BailOut("Installation dir \"$PackageDir\" does not exist!") + unless $PackageDir ne "" && -d $PackageDir; + +-if (-x $AntiVirUpdateCommand) { ++if (-x $AntiVirCommand) { + # Timeout prevention + $SIG{ALRM} = sub { die "timeout"}; + -- cgit v1.1