1 |
commit: a0afd56d1ce1f0d09006e62f182646657fb0f7b0 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 25 10:32:58 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 25 10:36:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0afd56d |
7 |
|
8 |
net-misc/sntpd: fix creation of pidfile |
9 |
|
10 |
Also added missing systemd inherit. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/738870 |
13 |
Closes: https://bugs.gentoo.org/738894 |
14 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
15 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
16 |
|
17 |
net-misc/sntpd/files/sntpd.initd-r1 | 14 ++++++++++++++ |
18 |
net-misc/sntpd/sntpd-3.0-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 49 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/sntpd/files/sntpd.initd-r1 b/net-misc/sntpd/files/sntpd.initd-r1 |
22 |
new file mode 100644 |
23 |
index 00000000000..ebe857af4af |
24 |
--- /dev/null |
25 |
+++ b/net-misc/sntpd/files/sntpd.initd-r1 |
26 |
@@ -0,0 +1,14 @@ |
27 |
+#!/sbin/openrc-run |
28 |
+# Copyright 1999-2020 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+name="sntpd" |
32 |
+pidfile="/run/sntpd.pid" |
33 |
+ |
34 |
+command="/usr/sbin/sntpd" |
35 |
+command_args="-n ${SNTPD_OPTS}" |
36 |
+command_background="true" |
37 |
+ |
38 |
+depend() { |
39 |
+ use net dns logger |
40 |
+} |
41 |
|
42 |
diff --git a/net-misc/sntpd/sntpd-3.0-r1.ebuild b/net-misc/sntpd/sntpd-3.0-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..5edf61d7f02 |
45 |
--- /dev/null |
46 |
+++ b/net-misc/sntpd/sntpd-3.0-r1.ebuild |
47 |
@@ -0,0 +1,35 @@ |
48 |
+# Copyright 1999-2020 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=7 |
52 |
+ |
53 |
+inherit systemd |
54 |
+ |
55 |
+DESCRIPTION="A NTP (RFC-1305 and RFC-4330) client and server for unix-alike systems" |
56 |
+HOMEPAGE="https://github.com/troglobit/sntpd" |
57 |
+SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.gz" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
62 |
+IUSE="adjtimex systemd" |
63 |
+ |
64 |
+RDEPEND="systemd? ( sys-apps/systemd )" |
65 |
+DEPEND="${RDEPEND}" |
66 |
+ |
67 |
+src_configure() { |
68 |
+ local myeconfargs=( |
69 |
+ $(use_with adjtimex) |
70 |
+ $(use_with systemd systemd $(systemd_get_systemunitdir)) |
71 |
+ --with-ntpclient |
72 |
+ ) |
73 |
+ |
74 |
+ econf "${myeconfargs[@]}" |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ default |
79 |
+ |
80 |
+ newinitd "${FILESDIR}"/sntpd.initd-r1 sntpd |
81 |
+ newconfd "${FILESDIR}"/sntpd.confd sntpd |
82 |
+} |