summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-05-04 14:38:39 -0400
committerMike Gilbert <floppym@gentoo.org>2021-05-04 14:40:04 -0400
commite5071aceb25da10a163b0216d140f4b93d56bd64 (patch)
treee692979b4614a6391d7c9306578f0c19cf623a30 /net-p2p
parentapp-portage/gs-elpa: Drop github remote-id (diff)
downloadgentoo-e5071aceb25da10a163b0216d140f4b93d56bd64.tar.gz
gentoo-e5071aceb25da10a163b0216d140f4b93d56bd64.tar.bz2
gentoo-e5071aceb25da10a163b0216d140f4b93d56bd64.zip
net-p2p/transmission: move systemd unit behind USE=systemd
The service unit has Type=notify, which is broken if transmission-daemon is built without systemd support. Closes: https://bugs.gentoo.org/788193 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/transmission/transmission-3.00-r1.ebuild8
-rw-r--r--net-p2p/transmission/transmission-9999.ebuild8
2 files changed, 12 insertions, 4 deletions
diff --git a/net-p2p/transmission/transmission-3.00-r1.ebuild b/net-p2p/transmission/transmission-3.00-r1.ebuild
index 791afc647154..2d8e56a2b1a1 100644
--- a/net-p2p/transmission/transmission-3.00-r1.ebuild
+++ b/net-p2p/transmission/transmission-3.00-r1.ebuild
@@ -115,8 +115,12 @@ src_install() {
newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon
newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon
- systemd_dounit daemon/transmission-daemon.service
- systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
+
+ if use systemd; then
+ # Service sets Type=notify
+ systemd_dounit daemon/transmission-daemon.service
+ systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
+ fi
insinto /usr/lib/sysctl.d
doins "${FILESDIR}"/60-transmission.conf
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
index d213d6e2b609..f7a517dcc27d 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -111,8 +111,12 @@ src_install() {
newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon
newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon
- systemd_dounit daemon/transmission-daemon.service
- systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
+
+ if use systemd; then
+ # Service sets Type=notify
+ systemd_dounit daemon/transmission-daemon.service
+ systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
+ fi
insinto /usr/lib/sysctl.d
doins "${FILESDIR}"/60-transmission.conf