summaryrefslogtreecommitdiff
path: root/mail/mailman
diff options
context:
space:
mode:
authorlukem <lukem@pkgsrc.org>2004-09-06 06:29:42 +0000
committerlukem <lukem@pkgsrc.org>2004-09-06 06:29:42 +0000
commit477c024617b76487fdb8caa66f3f974854c0bd70 (patch)
treed885f7ae09182a2bce37f69764233e55f515d739 /mail/mailman
parentce7b33aeacc0ed97de76e0c80f8ff98ff4c409d3 (diff)
downloadpkgsrc-477c024617b76487fdb8caa66f3f974854c0bd70.tar.gz
Provide rc.d script wrapper to mailmanctl
Diffstat (limited to 'mail/mailman')
-rw-r--r--mail/mailman/Makefile4
-rw-r--r--mail/mailman/files/mailman.sh31
2 files changed, 34 insertions, 1 deletions
diff --git a/mail/mailman/Makefile b/mail/mailman/Makefile
index dda9f1c28ad..b4860729de3 100644
--- a/mail/mailman/Makefile
+++ b/mail/mailman/Makefile
@@ -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 @@ MAKE_DIRS_PERMS+= ${MAILMAN_DATADIR}/spam ${MAILMAN_USER} ${MAILMAN_GROUP} 775
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 --git a/mail/mailman/files/mailman.sh b/mail/mailman/files/mailman.sh
new file mode 100644
index 00000000000..25f697dabfe
--- /dev/null
+++ b/mail/mailman/files/mailman.sh
@@ -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