summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-02-03 22:44:54 +0000
committerNick Hadaway <raker@gentoo.org>2003-02-03 22:44:54 +0000
commitc51526e8863a6d2ee19f5407dbd05a4bafecd3c6 (patch)
tree6c265b44e7f5f906ff96d85cd82b8a63159ace4d /net-mail/mailman
parentchanged digest files for 1.0.11 (diff)
downloadhistorical-c51526e8863a6d2ee19f5407dbd05a4bafecd3c6.tar.gz
historical-c51526e8863a6d2ee19f5407dbd05a4bafecd3c6.tar.bz2
historical-c51526e8863a6d2ee19f5407dbd05a4bafecd3c6.zip
Added a mailman rc file as suggested by Norberto Bensa on bug #14465
Diffstat (limited to 'net-mail/mailman')
-rw-r--r--net-mail/mailman/ChangeLog6
-rw-r--r--net-mail/mailman/files/mailman.rc27
-rw-r--r--net-mail/mailman/mailman-2.1.ebuild7
3 files changed, 37 insertions, 3 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index 260ca4165893..882afa8c0eff 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,9 +1,13 @@
# ChangeLog for net-mail/mailman
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.6 2003/01/22 01:13:19 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.7 2003/02/03 22:44:54 raker Exp $
*mailman-2.1 (21 Jan 2003)
+ 03 Feb 2003; Nick Hadaway <raker@gentoo.org> mailman-2.1.ebuild,
+ files/sendmail.rc :
+ Added an rc file.
+
21 Jan 2003; Nick Hadaway <raker@gentoo.org> mailman-2.1.ebuild,
files/digest-mailman-2.1 :
Version bump. Added some logic to keep the old mm_cfg.py as requested
diff --git a/net-mail/mailman/files/mailman.rc b/net-mail/mailman/files/mailman.rc
new file mode 100644
index 000000000000..10184422265f
--- /dev/null
+++ b/net-mail/mailman/files/mailman.rc
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+ use logger
+}
+
+start() {
+ ebegin "Starting mailman"
+ su - mailman -c 'bin/mailmanctl start' >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mailman"
+ su - mailman -c 'bin/mailmanctl stop' >/dev/null 2>&1
+ eend $?
+}
+
+svc_restart() {
+ ebegin "Restarting mailman"
+ su - mailman -c 'bin/mailmanctl restart' >/dev/null 2>&1
+ eend $?
+}
+
diff --git a/net-mail/mailman/mailman-2.1.ebuild b/net-mail/mailman/mailman-2.1.ebuild
index 2a1d4c44254a..b717315e4afb 100644
--- a/net-mail/mailman/mailman-2.1.ebuild
+++ b/net-mail/mailman/mailman-2.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.ebuild,v 1.1 2003/01/22 01:13:19 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.ebuild,v 1.2 2003/02/03 22:44:54 raker Exp $
S=${WORKDIR}/${P}
DESCRIPTION="GNU Mailman, the mailing list server with webinterface"
@@ -62,7 +62,10 @@ src_install () {
einfo "Your old config has been saved."
einfo "A new config has been installed as mm_cfg.py.dist"
fi
-}
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/mailman.rc mailman
+ }
pkg_postinst() {
cd ${INSTALLDIR}