mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
12
net-misc/linuxptp/files/timemaster.service
Normal file
12
net-misc/linuxptp/files/timemaster.service
Normal file
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user