pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/dspam/files Apply patch from Jim Bernard:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81095fc48ae7
branches:  trunk
changeset: 500761:81095fc48ae7
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Oct 12 20:22:55 2005 +0000

description:
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:

 mail/dspam/files/dspam.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 9f0f32e15740 -r 81095fc48ae7 mail/dspam/files/dspam.sh
--- a/mail/dspam/files/dspam.sh Wed Oct 12 20:19:30 2005 +0000
+++ b/mail/dspam/files/dspam.sh Wed Oct 12 20:22:55 2005 +0000
@@ -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 @@
                esac
 fi
 
-if [ "$1" != "stop" -o "$1" != "status" ]; then
+if checkyesno "${rcvar}" && [ "$1" != "stop" -o "$1" != "status" ]; then
        echo $(check_process $command) > $pidfile
 fi



Home | Main Index | Thread Index | Old Index