diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2016-02-21 19:15:44 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-03-09 17:13:41 +0000 |
commit | eaf88ca2f25f3a9480cd27b9ae27bd3cf984cc37 (patch) | |
tree | 26e90277cb8c4ae5803a953492e2942b4ae5f3d7 /net-irc | |
parent | net-irc/irker: Add missing die on sed (diff) | |
download | gentoo-eaf88ca2f25f3a9480cd27b9ae27bd3cf984cc37.tar.gz gentoo-eaf88ca2f25f3a9480cd27b9ae27bd3cf984cc37.tar.bz2 gentoo-eaf88ca2f25f3a9480cd27b9ae27bd3cf984cc37.zip |
net-irc/irker: Install systemd service on every system.
Makefile uses `pkg-config --variable=systemdsystemunitdir systemd` to
determine in which directory systemd service file should be installed.
It can be empty if building host has no systemd installed but OpenRC.
Rely on systemd eclass.
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/irker/irker-2.15.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net-irc/irker/irker-2.15.ebuild b/net-irc/irker/irker-2.15.ebuild index d1498e527fc3..762c4ccb8c0d 100644 --- a/net-irc/irker/irker-2.15.ebuild +++ b/net-irc/irker/irker-2.15.ebuild @@ -6,7 +6,7 @@ EAPI=5 PYTHON_COMPAT=( python{2_7,3_3,3_4} ) PYTHON_REQ_USE="ssl" -inherit python-single-r1 eutils +inherit python-single-r1 systemd eutils DESCRIPTION="Submission tools for IRC notifications" HOMEPAGE="http://www.catb.org/esr/irker/" @@ -26,6 +26,10 @@ src_prepare() { epatch "${FILESDIR}/2.7-irkerhook-Remove-file-listing.patch" + # Rely on systemd eclass for systemd service install + sed -i -e "/^SYSTEMDSYSTEMUNITDIR/d" Makefile \ + || die "sed failed" + # Prefix support sed -i -e "/^ExecStart=/ s:=/:=${EROOT}:" irkerd.service \ || die "sed failed" @@ -41,6 +45,8 @@ src_install() { newinitd "${FILESDIR}/irkerd.initd" irkerd newconfd "${FILESDIR}/irkerd.confd" irkerd + systemd_dounit irkerd.service + dodoc NEWS README hacking.txt security.txt dohtml irkerd.html irkerhook.html |