summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-06 03:27:48 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-06 03:27:48 +0000
commit06468f17cf2527bd0b436a1d32d09b87445bba33 (patch)
treef8c8a37d24de96ae9d1dddef282574fda4066989 /net-mail/spamass-milter
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-06468f17cf2527bd0b436a1d32d09b87445bba33.tar.gz
gentoo-2-06468f17cf2527bd0b436a1d32d09b87445bba33.tar.bz2
gentoo-2-06468f17cf2527bd0b436a1d32d09b87445bba33.zip
we license under gpl2, not gpl2 or later
Diffstat (limited to 'net-mail/spamass-milter')
-rw-r--r--net-mail/spamass-milter/files/spamass-milter.conf8
-rw-r--r--net-mail/spamass-milter/files/spamass-milter.rc43
2 files changed, 21 insertions, 30 deletions
diff --git a/net-mail/spamass-milter/files/spamass-milter.conf b/net-mail/spamass-milter/files/spamass-milter.conf
index d36316c7f866..5b9d487e4e81 100644
--- a/net-mail/spamass-milter/files/spamass-milter.conf
+++ b/net-mail/spamass-milter/files/spamass-milter.conf
@@ -1,10 +1,8 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Config file for /etc/init.d/spamass-milter
-# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.conf,v 1.1 2003/07/16 22:03:20 raker Exp $
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.conf,v 1.2 2004/03/06 03:24:04 vapier Exp $
DAEMON=/usr/sbin/spamass-milter
SOCKET=/var/run/spamass-milter.sock
PIDFILE=/var/run/spamass-milter.pid
DESC="Sendmail milter plugin for SpamAssassin"
-
diff --git a/net-mail/spamass-milter/files/spamass-milter.rc b/net-mail/spamass-milter/files/spamass-milter.rc
index cbb51484e391..8e1fef68f269 100644
--- a/net-mail/spamass-milter/files/spamass-milter.rc
+++ b/net-mail/spamass-milter/files/spamass-milter.rc
@@ -1,37 +1,30 @@
#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Sample init script for Gentoo Linux
-# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.rc,v 1.2 2004/01/19 02:59:31 vapier Exp $
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.rc,v 1.3 2004/03/06 03:24:04 vapier Exp $
# NB: Config is in /etc/conf.d/spamass-milter
-#DAEMON=/usr/sbin/spamass-milter
-#SOCKET=/var/run/spamass-milter.sock
-#PIDFILE=/var/run/spamass-milter.pid
-#DESC="Sendmail milter plugin for SpamAssassin"
depend() {
- need net spamd
- use logger
- before sendmail
+ need net spamd
+ use logger
+ before sendmail
}
start() {
- ebegin "Starting $DESC"
- start-stop-daemon --start --quiet --make-pidfile --pidfile ${PIDFILE}\
- --exec ${DAEMON} -- -p ${SOCKET} -f
- eend $? "Failed to start ${DAEMON}"
+ ebegin "Starting $DESC"
+ start-stop-daemon --start --quiet --make-pidfile --pidfile ${PIDFILE}\
+ --exec ${DAEMON} -- -p ${SOCKET} -f
+ eend $? "Failed to start ${DAEMON}"
}
stop() {
- ebegin "Stopping $DESC"
- {
- killall ${DAEMON}
- /bin/sleep 5s
- /bin/rm -f ${SOCKET}
- /bin/rm -f ${PIDFILE}
- } \
- && kill -1 `head -n 1 /var/run/sendmail.pid`
- eend $? "Failed to stop ${DAEMON}"
+ ebegin "Stopping $DESC"
+ {
+ killall ${DAEMON}
+ /bin/sleep 5s
+ /bin/rm -f ${SOCKET}
+ /bin/rm -f ${PIDFILE}
+ } && kill -1 `head -n 1 /var/run/sendmail.pid`
+ eend $? "Failed to stop ${DAEMON}"
}
-