diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2005-10-12 20:22:55 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2005-10-12 20:22:55 +0000 |
commit | 7d48156ebba112a07b7369a633928b576b761939 (patch) | |
tree | c98499b4b0fd8339240cf4e4bd054b56782c7309 /mail/dspam | |
parent | f84d5d5415e9b3d0790744be7a1a6c9a1e6a79d3 (diff) | |
download | pkgsrc-7d48156ebba112a07b7369a633928b576b761939.tar.gz |
Apply patch from Jim Bernard:
* dspam can run too early in the boot process: add REQUIRE: servers.
* dspam=YES is always assumed in rc.conf: fixed by using checkyesno $rcvar.
This closes PR pkg/31571.
Diffstat (limited to 'mail/dspam')
-rw-r--r-- | mail/dspam/files/dspam.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/dspam/files/dspam.sh b/mail/dspam/files/dspam.sh index 2bc49028f19..7f911b65e06 100644 --- a/mail/dspam/files/dspam.sh +++ b/mail/dspam/files/dspam.sh @@ -1,9 +1,10 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: dspam.sh,v 1.2 2005/04/26 15:43:26 jwise Exp $ +# $NetBSD: dspam.sh,v 1.3 2005/10/12 20:22:55 xtraeme Exp $ # # PROVIDE: dspam +# REQUIRE: SERVERS # BEFORE: DAEMON if [ -f /etc/rc.subr ]; then @@ -65,6 +66,6 @@ else esac fi -if [ "$1" != "stop" -o "$1" != "status" ]; then +if checkyesno "${rcvar}" && [ "$1" != "stop" -o "$1" != "status" ]; then echo $(check_process $command) > $pidfile fi |