summaryrefslogtreecommitdiff
path: root/mail/spamassassin/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'mail/spamassassin/patches/patch-ad')
-rw-r--r--mail/spamassassin/patches/patch-ad55
1 files changed, 55 insertions, 0 deletions
diff --git a/mail/spamassassin/patches/patch-ad b/mail/spamassassin/patches/patch-ad
new file mode 100644
index 00000000000..7389285b060
--- /dev/null
+++ b/mail/spamassassin/patches/patch-ad
@@ -0,0 +1,55 @@
+$NetBSD: patch-ad,v 1.7 2005/11/13 22:48:32 heinz Exp $
+
+--- spamd/netbsd-rc-script.sh.orig Sat Oct 23 01:39:18 2004
++++ spamd/netbsd-rc-script.sh
+@@ -9,7 +9,7 @@
+ # @PREFIX@/share/doc/spamassassin/spamd/README.spamd
+ # especially the section about security.
+
+-## only for NetBSD
++## only for DragonFlyBSD/NetBSD
+ # PROVIDE: spamd
+ # REQUIRE: LOGIN
+ # BEFORE: mail
+@@ -34,15 +34,17 @@ command_args="-d -r ${pidfile}"
+ extra_commands="reload"
+ sig_reload="HUP"
+
+-# default values, may be overridden on NetBSD by setting them in /etc/rc.conf
++# default values, may be overridden on NetBSD/DragonFlyBSD by setting them
++# in /etc/rc.conf
+ spamd_flags=${spamd_flags-"-H -c"}
+ spamd=${spamd:-NO}
+ spamd_fdlimit=${spamd_fdlimit-"128"}
+
+-OPSYS=@OPSYS@ # set during package build
+-INTERPRETER_SUPPORT=@INTERPRETER_SUPPORT@ # set during package build
++# both set during package build
++OPSYS=@OPSYS@
++_INTERPRETER_SUPPORT=@_INTERPRETER_SUPPORT@
+
+-# A default limit of 64 (at least on NetBSD) may be too low for many
++# A default limit of 64 on NetBSD may be too low for many
+ # people (eg with addional RBL rules)
+ SOFT_FDLIMIT=`ulimit -S -n`
+ HARD_FDLIMIT=`ulimit -H -n`
+@@ -96,8 +98,8 @@ spamd_reload()
+ kill -${sig_reload} ${the_spamd_pid}
+ }
+
+-if [ "${OPSYS}" = "NetBSD" ]; then
+- if checkyesno INTERPRETER_SUPPORT; then
++if [ "${OPSYS}" = "NetBSD" -o "${OPSYS}" = "DragonFly" ]; then
++ if checkyesno _INTERPRETER_SUPPORT; then
+ : # support for 'command_interpreter' was added in NetBSD 1.6
+ else
+ start_cmd="spamd_start"
+@@ -110,7 +112,7 @@ if [ "${OPSYS}" = "NetBSD" ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+
+-else # not NetBSD
++else # not NetBSD or DragonFlyBSD
+
+ if [ -f ${pidfile} ]; then
+ the_spamd_pid=`head -1 ${pidfile}`