diff options
Diffstat (limited to 'mail/mailman')
-rw-r--r-- | mail/mailman/Makefile | 4 | ||||
-rw-r--r-- | mail/mailman/files/mailman.sh | 31 |
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 |