blob: 67f13a6dc4a1e87622a74612b492042ddae3d7f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$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
|