summaryrefslogtreecommitdiff
path: root/mail/spamassassin/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'mail/spamassassin/patches/patch-aa')
-rw-r--r--mail/spamassassin/patches/patch-aa20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/spamassassin/patches/patch-aa b/mail/spamassassin/patches/patch-aa
new file mode 100644
index 00000000000..ab1b45d4d1b
--- /dev/null
+++ b/mail/spamassassin/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.8 2011/02/11 19:10:54 tnn Exp $
+
+Make an effort to pick up spamd_flags from the rc configuration when
+not running on NetBSD/DragonFlyBSD.
+
+--- spamd/netbsd-rc-script.sh.orig 2010-03-16 14:49:25.000000000 +0000
++++ spamd/netbsd-rc-script.sh
+@@ -118,6 +118,12 @@ if [ "${OPSYS}" = "NetBSD" -o "${OPSYS}"
+
+ else # not NetBSD or DragonFlyBSD
+
++ if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
++ load_rc_config $name
++ elif [ -f /etc/rc.conf ]; then
++ . /etc/rc.conf
++ fi
++
+ if [ -f ${pidfile} ]; then
+ the_spamd_pid=`head -1 ${pidfile}`
+ else