summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-07-02 16:58:46 +0200
committerMarek Szuba <marecki@gentoo.org>2020-07-02 16:58:46 +0200
commitf3feaa11fd12f8d7b1caa99004ad1607e0e42985 (patch)
tree54daa9ffa4e55f9ec334337857b7ebd735ef9e65 /net-misc
parentnet-misc/dhcpcd: Bump to version 9.1.3 (diff)
downloadgentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.tar.gz
gentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.tar.bz2
gentoo-f3feaa11fd12f8d7b1caa99004ad1607e0e42985.zip
net-misc/linuxptp: add systemd unit for timemaster
Invoking maintainer time-out. Closes: https://bugs.gentoo.org/708614 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/linuxptp/files/timemaster.service12
-rw-r--r--net-misc/linuxptp/linuxptp-2.0-r1.ebuild (renamed from net-misc/linuxptp/linuxptp-2.0.ebuild)4
2 files changed, 15 insertions, 1 deletions
diff --git a/net-misc/linuxptp/files/timemaster.service b/net-misc/linuxptp/files/timemaster.service
new file mode 100644
index 00000000000..f8cbae76500
--- /dev/null
+++ b/net-misc/linuxptp/files/timemaster.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=LinuxPTP NTP timemaster
+Conflicts=chronyd.service ntpd.service
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/timemaster -f /etc/timemaster.conf
+ProtectHome=yes
+ProtectSystem=full
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-misc/linuxptp/linuxptp-2.0.ebuild b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild
index 3569ecc3c66..60e25c5dd15 100644
--- a/net-misc/linuxptp/linuxptp-2.0.ebuild
+++ b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit linux-info toolchain-funcs
+inherit linux-info systemd toolchain-funcs
DESCRIPTION="The Linux Precision Time Protocol (PTP) implementation"
HOMEPAGE="http://linuxptp.sourceforge.net/"
@@ -38,5 +38,7 @@ src_install() {
libdir="${D}"/usr/$(get_libdir) \
install
+ systemd_dounit "${FILESDIR}"/timemaster.service
+
dodoc README.org
}