31 lines
857 B
Plaintext
31 lines
857 B
Plaintext
$NetBSD: patch-aa,v 1.9 2013/02/25 18:41:46 gdt Exp $
|
|
|
|
Make an effort to pick up spamd_flags from the rc configuration when
|
|
not running on NetBSD/DragonFlyBSD.
|
|
Adjust comment for renamed file.
|
|
|
|
--- spamd/netbsd-rc-script.sh.orig 2011-06-07 01:59:19.000000000 +0200
|
|
+++ spamd/netbsd-rc-script.sh 2013-02-25 17:56:03.000000000 +0100
|
|
@@ -10,7 +10,7 @@
|
|
# of spam
|
|
#
|
|
# PLEASE read the file
|
|
-# @PREFIX@/share/doc/spamassassin/spamd/README.spamd
|
|
+# @PREFIX@/share/doc/spamassassin/spamd/README
|
|
# especially the section about security.
|
|
|
|
## only for DragonFlyBSD/NetBSD
|
|
@@ -118,6 +118,12 @@
|
|
|
|
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
|