summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <lxnay@gentoo.org>2013-10-22 08:06:43 +0000
committerFabio Erculiani <lxnay@gentoo.org>2013-10-22 08:06:43 +0000
commitec67e7b5b7e81fec81c9e337233dcfd80605a733 (patch)
tree229f9f36615b977b0806a4614e856c807905ee4a /net-mail
parentStable for sparc, wrt bug #487360 (diff)
downloadgentoo-2-ec67e7b5b7e81fec81c9e337233dcfd80605a733.tar.gz
gentoo-2-ec67e7b5b7e81fec81c9e337233dcfd80605a733.tar.bz2
gentoo-2-ec67e7b5b7e81fec81c9e337233dcfd80605a733.zip
add systemd unit to 2.1.15
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key ADC916E5)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailman/ChangeLog6
-rw-r--r--net-mail/mailman/files/mailman.service13
-rw-r--r--net-mail/mailman/mailman-2.1.15.ebuild7
3 files changed, 23 insertions, 3 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index 5147546604d2..4cf0b3351e5c 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-mail/mailman
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.136 2013/06/22 17:18:50 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.137 2013/10/22 08:06:43 lxnay Exp $
+
+ 22 Oct 2013; Fabio Erculiani <lxnay@gentoo.org> mailman-2.1.15.ebuild,
+ +files/mailman.service:
+ add systemd unit to mailman-2.1.15
22 Jun 2013; Sven Vermeulen <swift@gentoo.org> mailman-2.1.14.ebuild,
mailman-2.1.15.ebuild:
diff --git a/net-mail/mailman/files/mailman.service b/net-mail/mailman/files/mailman.service
new file mode 100644
index 000000000000..21b819565549
--- /dev/null
+++ b/net-mail/mailman/files/mailman.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=GNU Mailing List Manager
+After=network.target
+
+[Service]
+User=mailman
+ExecStart=/usr/lib/mailman/bin/mailmanctl -s start
+ExecReload=/usr/lib/mailman/bin/mailmanctl restart
+ExecStop=/usr/lib/mailman/bin/mailmanctl stop
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-mail/mailman/mailman-2.1.15.ebuild b/net-mail/mailman/mailman-2.1.15.ebuild
index 6877e2758409..a2ada24925ed 100644
--- a/net-mail/mailman/mailman-2.1.15.ebuild
+++ b/net-mail/mailman/mailman-2.1.15.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.15.ebuild,v 1.7 2013/06/22 17:18:50 swift Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.15.ebuild,v 1.8 2013/10/22 08:06:43 lxnay Exp $
EAPI="4"
PYTHON_DEPEND="2"
-inherit eutils python multilib
+inherit eutils python multilib systemd
DESCRIPTION="A python-based mailing list server with an extensive web interface"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
@@ -96,6 +96,9 @@ src_install () {
done
newinitd "${FILESDIR}/mailman.rc" mailman
+ cp "${FILESDIR}/mailman.service" "${T}/mailman.service" || die
+ sed -i "s/^User=.*/User=${MAILUSR}/" "${T}/mailman.service" || die
+ systemd_dounit "${T}/mailman.service"
keepdir ${VAR_PREFIX}/logs
keepdir ${VAR_PREFIX}/locks