diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-07-02 16:58:46 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-07-02 16:58:46 +0200 |
commit | f3feaa11fd12f8d7b1caa99004ad1607e0e42985 (patch) | |
tree | 54daa9ffa4e55f9ec334337857b7ebd735ef9e65 /net-misc/linuxptp | |
parent | net-misc/dhcpcd: Bump to version 9.1.3 (diff) | |
download | gentoo-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/linuxptp')
-rw-r--r-- | net-misc/linuxptp/files/timemaster.service | 12 | ||||
-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 000000000000..f8cbae76500d --- /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 3569ecc3c668..60e25c5dd150 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 } |