pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/mailman Provide rc.d script wrapper to mailmanctl



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dfab4e124b00
branches:  trunk
changeset: 480326:dfab4e124b00
user:      lukem <lukem%pkgsrc.org@localhost>
date:      Mon Sep 06 06:29:42 2004 +0000

description:
Provide rc.d script wrapper to mailmanctl

diffstat:

 mail/mailman/Makefile         |   4 +++-
 mail/mailman/files/mailman.sh |  31 +++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r 6dd0f0c3033a -r dfab4e124b00 mail/mailman/Makefile
--- a/mail/mailman/Makefile     Mon Sep 06 04:12:46 2004 +0000
+++ b/mail/mailman/Makefile     Mon Sep 06 06:29:42 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/09/06 04:12:46 lukem Exp $
+# $NetBSD: Makefile,v 1.13 2004/09/06 06:29:42 lukem Exp $
 
 DISTNAME=      mailman-2.1.4
 PKGREVISION=   1
@@ -59,6 +59,8 @@
 CONF_FILES+=           ${EGDIR}/mailman.conf ${PKG_SYSCONFDIR}/mailman.conf
 CONF_FILES+=           ${EXECDIR}/Mailman/mm_cfg.py.dist ${EXECDIR}/Mailman/mm_cfg.py
 
+RCD_SCRIPTS=           mailman
+
 PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth 21 21pth
 PYTHON_PATCH_SCRIPTS+= Mailman/Archiver/pipermail.py
 PYTHON_PATCH_SCRIPTS+= Mailman/Post.py
diff -r 6dd0f0c3033a -r dfab4e124b00 mail/mailman/files/mailman.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailman/files/mailman.sh     Mon Sep 06 06:29:42 2004 +0000
@@ -0,0 +1,31 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: mailman.sh,v 1.1 2004/09/06 06:29:42 lukem Exp $
+#
+# PROVIDE: mailman
+# REQUIRE: mail
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]
+then
+       . /etc/rc.subr
+fi
+
+name="mailman"
+rcvar=$name
+ctl_command="@PREFIX@/lib/mailman/bin/mailmanctl"
+start_cmd="mailman_doit start"
+stop_cmd="mailman_doit stop"
+restart_cmd="mailman_doit restart"
+
+mailman_doit ()
+{
+       ${ctl_command} $1
+}
+
+if [ -f /etc/rc.subr ]; then
+       load_rc_config $name
+       run_rc_command "$1"
+else
+       mailman_doit "$1"
+fi



Home | Main Index | Thread Index | Old Index