summaryrefslogtreecommitdiff
path: root/net-misc/linuxptp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-07-04 14:05:23 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-07-04 14:05:23 +0100
commit05b8b0e0af1d72e51a3ee61522941bf7605cd01c (patch)
tree43b0410e62aba677b4b256bc3ffe3fd333d28dbe /net-misc/linuxptp
parent90c88731bd036e5698b281fbc0a5f3aa4c9983ac (diff)
gentoo resync : 04.07.2020
Diffstat (limited to 'net-misc/linuxptp')
-rw-r--r--net-misc/linuxptp/Manifest3
-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
3 files changed, 17 insertions, 2 deletions
diff --git a/net-misc/linuxptp/Manifest b/net-misc/linuxptp/Manifest
index 6194799c21c0..7d3670d8d894 100644
--- a/net-misc/linuxptp/Manifest
+++ b/net-misc/linuxptp/Manifest
@@ -1,3 +1,4 @@
+AUX timemaster.service 234 BLAKE2B c59cfb10a85db09dc48830b166e6c3338949a2f12b4170a00d0f5b44f118fff5a56dd2fb74fecead5068f8b345399bb27dfef1e382fa27a777e9ddc65b7b92a9 SHA512 d3b1f7fb31ca0b233575bc491ba52700be8d586ead5657facda3b84141cd1467b55c52f4cafea972f13d1c647cc8b3bb1092bca580fd0b0d135688d00a641a82
DIST linuxptp-2.0.tgz 184942 BLAKE2B 79ef9d3c379769a71e652a77f05ab661db444a76a339e72106055cf900de9cabfe303c48760f11701fefe5e641d07b73fc5a250078bedf7faa3ae995ace24da3 SHA512 c33487a803f8cc461f790d9a137d5cf8b35cb6d292bdd2cf7a16aa666359d8c5e24667473be843182bef1e9f8d5c6af8aab8918978f10bf08257dd408bba66d6
-EBUILD linuxptp-2.0.ebuild 882 BLAKE2B 41e6f6c8999e290e3c574582cca7254c728a75496935d5458e3eb3b69a2c0f3237068bb587ac7289ffa429fa08cb223fed457eff3996506b84771b5d0e852cdc SHA512 16dab620bf44d59006907dfa41be1db8032af0e541008979e54d73e8ed659da65efe460f5a54445511a41953e1ff671315f129c10d661738884f7ddc74dfacf9
+EBUILD linuxptp-2.0-r1.ebuild 940 BLAKE2B b5dc69b6bcbd537c1e74623594812878691af84fa5da361302ec2290e7ddf75cd2af92d81d2d7ccba145317f758ed29b0558213eecb3dc23661523ae3f314ddf SHA512 d96b4a9e586478704fad4dc125533db1d9d88510fd161ffb04209c0fefac40c5709b6139ff7114ee7de4f7724d7137ef12c5bbe1075dcc631f3fc8c0da5d4f01
MISC metadata.xml 445 BLAKE2B abfb043154cd84cb3a40212f54d9be67e89bfda3f83cdb9a8d65d8032b8d1f0a0b8dcfb4fdbaa5ed303dfa65f35715ee714a84026b730c26964a1e06a41b32e2 SHA512 6016bb962e61088156d9f2b78d8dfc0f4b07e6a22016d7d591459b8254ef42798c902a2cdfe183972703d3c1911ab48d7b3c95a0bc1b470a4dcc1a34ea66d232
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
}