summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-13 11:48:26 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-13 11:48:26 +0000
commit43cd8c77431645fd3af9801841350f245003052c (patch)
tree7af90c503adf27d2ff44973529a9841c2e3bc543 /mail-mta/postfix
parentadd x86 arch (diff)
downloadgentoo-2-43cd8c77431645fd3af9801841350f245003052c.tar.gz
gentoo-2-43cd8c77431645fd3af9801841350f245003052c.tar.bz2
gentoo-2-43cd8c77431645fd3af9801841350f245003052c.zip
Install unit file (#466228)
(Portage version: 2.1.12.11/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'mail-mta/postfix')
-rw-r--r--mail-mta/postfix/ChangeLog6
-rw-r--r--mail-mta/postfix/files/postfix.service13
-rw-r--r--mail-mta/postfix/postfix-2.10.1.ebuild6
3 files changed, 22 insertions, 3 deletions
diff --git a/mail-mta/postfix/ChangeLog b/mail-mta/postfix/ChangeLog
index fe90707c2e50..6e191227756f 100644
--- a/mail-mta/postfix/ChangeLog
+++ b/mail-mta/postfix/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/postfix
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.446 2013/06/25 05:59:51 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.447 2013/07/13 11:48:26 pacho Exp $
+
+ 13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/postfix.service,
+ postfix-2.10.1.ebuild:
+ Install unit file (#466228)
*postfix-2.11_pre20130623 (25 Jun 2013)
*postfix-2.10.1 (25 Jun 2013)
diff --git a/mail-mta/postfix/files/postfix.service b/mail-mta/postfix/files/postfix.service
new file mode 100644
index 000000000000..d3d4804138b9
--- /dev/null
+++ b/mail-mta/postfix/files/postfix.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Postfix Mail Transport Agent
+After=network.target
+
+[Service]
+Type=forking
+ExecStartPre=-/usr/bin/newaliases
+ExecStart=/usr/sbin/postfix start
+ExecStop=/usr/sbin/postfix stop
+ExecReload=/usr/sbin/postfix reload
+
+[Install]
+WantedBy=multi-user.target
diff --git a/mail-mta/postfix/postfix-2.10.1.ebuild b/mail-mta/postfix/postfix-2.10.1.ebuild
index 3944a2529896..39330059ce0b 100644
--- a/mail-mta/postfix/postfix-2.10.1.ebuild
+++ b/mail-mta/postfix/postfix-2.10.1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10.1.ebuild,v 1.1 2013/06/25 05:59:51 eras Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.10.1.ebuild,v 1.2 2013/07/13 11:48:26 pacho Exp $
EAPI=5
-inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator
+inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam user versionator systemd
MY_PV="${PV/_pre/-}"
MY_SRC="${PN}-${MY_PV}"
@@ -255,6 +255,8 @@ src_install () {
# Remove unnecessary files
rm -f "${D}"/etc/postfix/{*LICENSE,access,aliases,canonical,generic}
rm -f "${D}"/etc/postfix/{header_checks,relocated,transport,virtual}
+
+ systemd_dounit "${FILESDIR}/${PN}.service"
}
pkg_preinst() {