1 |
commit: f3feaa11fd12f8d7b1caa99004ad1607e0e42985 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 14:58:46 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 14:58:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3feaa11 |
7 |
|
8 |
net-misc/linuxptp: add systemd unit for timemaster |
9 |
|
10 |
Invoking maintainer time-out. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/708614 |
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
net-misc/linuxptp/files/timemaster.service | 12 ++++++++++++ |
16 |
.../linuxptp/{linuxptp-2.0.ebuild => linuxptp-2.0-r1.ebuild} | 4 +++- |
17 |
2 files changed, 15 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/net-misc/linuxptp/files/timemaster.service b/net-misc/linuxptp/files/timemaster.service |
20 |
new file mode 100644 |
21 |
index 00000000000..f8cbae76500 |
22 |
--- /dev/null |
23 |
+++ b/net-misc/linuxptp/files/timemaster.service |
24 |
@@ -0,0 +1,12 @@ |
25 |
+[Unit] |
26 |
+Description=LinuxPTP NTP timemaster |
27 |
+Conflicts=chronyd.service ntpd.service |
28 |
+ |
29 |
+[Service] |
30 |
+Type=simple |
31 |
+ExecStart=/usr/sbin/timemaster -f /etc/timemaster.conf |
32 |
+ProtectHome=yes |
33 |
+ProtectSystem=full |
34 |
+ |
35 |
+[Install] |
36 |
+WantedBy=multi-user.target |
37 |
|
38 |
diff --git a/net-misc/linuxptp/linuxptp-2.0.ebuild b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild |
39 |
similarity index 90% |
40 |
rename from net-misc/linuxptp/linuxptp-2.0.ebuild |
41 |
rename to net-misc/linuxptp/linuxptp-2.0-r1.ebuild |
42 |
index 3569ecc3c66..60e25c5dd15 100644 |
43 |
--- a/net-misc/linuxptp/linuxptp-2.0.ebuild |
44 |
+++ b/net-misc/linuxptp/linuxptp-2.0-r1.ebuild |
45 |
@@ -3,7 +3,7 @@ |
46 |
|
47 |
EAPI=7 |
48 |
|
49 |
-inherit linux-info toolchain-funcs |
50 |
+inherit linux-info systemd toolchain-funcs |
51 |
|
52 |
DESCRIPTION="The Linux Precision Time Protocol (PTP) implementation" |
53 |
HOMEPAGE="http://linuxptp.sourceforge.net/" |
54 |
@@ -38,5 +38,7 @@ src_install() { |
55 |
libdir="${D}"/usr/$(get_libdir) \ |
56 |
install |
57 |
|
58 |
+ systemd_dounit "${FILESDIR}"/timemaster.service |
59 |
+ |
60 |
dodoc README.org |
61 |
} |