net-p2p/syncthing: add systemd unit files (fixes bug 574186)
authorDirkjan Ochtman <djc@gentoo.org>
Wed, 10 Feb 2016 18:12:48 +0000 (19:12 +0100)
committerDirkjan Ochtman <djc@gentoo.org>
Wed, 10 Feb 2016 18:13:33 +0000 (19:13 +0100)
Package-Manager: portage-2.2.26

net-p2p/syncthing/syncthing-0.12.18.ebuild

index ee3fa53fe52ced6efbe768d34ef7e5325a4cb175..f56efca26ee5834d0f38a1bc61d30227b91d5c9d 100644 (file)
@@ -7,7 +7,7 @@ EAPI=5
 EGO_PN="github.com/syncthing/syncthing"
 EGIT_COMMIT=v${PV}
 
-inherit golang-vcs-snapshot
+inherit golang-vcs-snapshot systemd
 
 DESCRIPTION="Syncthing is an open, trustworthy and decentralized cloud storage system"
 HOMEPAGE="http://syncthing.net"
@@ -37,4 +37,6 @@ src_install() {
        cd src/${EGO_PN}
        dobin bin/*
        dodoc README.md AUTHORS  CONTRIBUTING.md
+       systemd_dounit "${S}"/etc/linux-systemd/system/${PN}@.service
+       systemd_douserunit "${S}"/etc/linux-systemd/user/${PN}.service
 }