diff options
author | heinz <heinz@pkgsrc.org> | 2002-11-06 21:51:26 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2002-11-06 21:51:26 +0000 |
commit | 24d4f258b3b309674c517dcbb74cd00dc1ce7941 (patch) | |
tree | fbc226b8ccd401443de1dd828a882d41051129e5 /mail/spamassassin/patches | |
parent | 66985773711149490ac9a2529a31727516c40385 (diff) | |
download | pkgsrc-24d4f258b3b309674c517dcbb74cd00dc1ce7941.tar.gz |
Changed the rc.d script to account for different behaviour of
load_rc_config in NetBSD 1.6. This resolves PR pkg/18928 by Frank Cusack
(fcusack at fcusack com).
The rc.d script is now called on 'shutdown'.
Included fixes from SA CVS repository (2002-10-21) to minimize
impact of Razor2 on the environment vector, especially PATH.
Bumped PKGREVISION.
Diffstat (limited to 'mail/spamassassin/patches')
-rw-r--r-- | mail/spamassassin/patches/patch-ad | 16 | ||||
-rw-r--r-- | mail/spamassassin/patches/patch-ag | 12 | ||||
-rw-r--r-- | mail/spamassassin/patches/patch-ah | 12 |
3 files changed, 35 insertions, 5 deletions
diff --git a/mail/spamassassin/patches/patch-ad b/mail/spamassassin/patches/patch-ad index d6527076eed..bf597d76ecd 100644 --- a/mail/spamassassin/patches/patch-ad +++ b/mail/spamassassin/patches/patch-ad @@ -1,4 +1,4 @@ -$NetBSD: patch-ad,v 1.2 2002/10/20 20:09:05 heinz Exp $ +$NetBSD: patch-ad,v 1.3 2002/11/06 21:51:26 heinz Exp $ --- spamd/netbsd-rc-script.sh.orig Thu Sep 26 12:50:26 2002 +++ spamd/netbsd-rc-script.sh @@ -6,3 +6,17 @@ $NetBSD: patch-ad,v 1.2 2002/10/20 20:09:05 heinz Exp $ -#! /bin/sh +#!@RCD_SCRIPTS_SHELL@ # +@@ -13,2 +13,3 @@ + # BEFORE: mail ++# KEYWORD: shutdown + +@@ -34,6 +35,6 @@ + # default values, may be overridden by setting them in /etc/rc.conf +-spamd_flags="-H -c -a" +-spamd=NO ++spamd_flags=${spamd_flags-"-H -c -a"} ++spamd=${spamd:-NO} + +-INTERPRETER_SUPPORT=@INTERPRETER_SUPPORT@ ++INTERPRETER_SUPPORT=@INTERPRETER_SUPPORT@ # set during package build + diff --git a/mail/spamassassin/patches/patch-ag b/mail/spamassassin/patches/patch-ag index 1e3bc350d12..25b9693d99c 100644 --- a/mail/spamassassin/patches/patch-ag +++ b/mail/spamassassin/patches/patch-ag @@ -1,8 +1,16 @@ -$NetBSD: patch-ag,v 1.1 2002/10/20 20:09:06 heinz Exp $ +$NetBSD: patch-ag,v 1.2 2002/11/06 21:51:27 heinz Exp $ --- lib/Mail/SpamAssassin/Dns.pm.orig Fri Oct 4 14:54:16 2002 +++ lib/Mail/SpamAssassin/Dns.pm -@@ -389,6 +389,12 @@ +@@ -365,6 +365,7 @@ + + eval { + local ($^W) = 0; # argh, warnings in Razor ++ local %ENV; + + require Razor2::Client::Agent; + +@@ -389,6 +390,12 @@ my $objects = $rc->prepare_objects( \@msg ) or die "error in prepare_objects"; $rc->get_server_info() or die $rc->errprefix("checkit"); diff --git a/mail/spamassassin/patches/patch-ah b/mail/spamassassin/patches/patch-ah index f70ecddc3a0..f2ae07cda71 100644 --- a/mail/spamassassin/patches/patch-ah +++ b/mail/spamassassin/patches/patch-ah @@ -1,8 +1,16 @@ -$NetBSD: patch-ah,v 1.1 2002/10/20 20:09:06 heinz Exp $ +$NetBSD: patch-ah,v 1.2 2002/11/06 21:51:27 heinz Exp $ --- lib/Mail/SpamAssassin/Reporter.pm.orig Mon Oct 14 18:44:35 2002 +++ lib/Mail/SpamAssassin/Reporter.pm -@@ -151,6 +151,12 @@ +@@ -126,6 +126,7 @@ + if ( !$@ ) { + eval { + local ($^W) = 0; # argh, warnings in Razor ++ local %ENV; + + local $SIG{ALRM} = sub { die "alarm\n" }; + alarm $timeout; +@@ -151,6 +152,12 @@ my $objects = $rc->prepare_objects( \@msg ) or adie ("error in prepare_objects"); $rc->get_server_info() or adie $rc->errprefix("reportit"); |