1 |
commit: e69294ba7087691b826ad8ed73dac52c9a3527aa |
2 |
Author: Peter Alfredsen <crabbedhaloablution <AT> icloud <DOT> com> |
3 |
AuthorDate: Tue Dec 15 11:46:03 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 8 14:53:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69294ba |
7 |
|
8 |
net-misc/chrony: enable NTS support |
9 |
|
10 |
Enabled NTS support in ebuild. Needs net-libs/gnutls and dev-libs/nettle. |
11 |
NTS is the only thing net-libs/gnutls is used for. |
12 |
|
13 |
Reported-By: Matt Whitlock <gentoo <AT> mattwhitlock.name> |
14 |
Closes: https://bugs.gentoo.org/759526 |
15 |
Signed-off-by: Peter Alfredsen <crabbedhaloablution <AT> icloud.com> |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
net-misc/chrony/chrony-9999.ebuild | 6 +++++- |
19 |
net-misc/chrony/metadata.xml | 3 ++- |
20 |
2 files changed, 7 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild |
23 |
index 81b51b9af84..650ad8c1415 100644 |
24 |
--- a/net-misc/chrony/chrony-9999.ebuild |
25 |
+++ b/net-misc/chrony/chrony-9999.ebuild |
26 |
@@ -20,12 +20,13 @@ S="${WORKDIR}/${P/_/-}" |
27 |
|
28 |
LICENSE="GPL-2" |
29 |
SLOT="0" |
30 |
-IUSE="+caps +cmdmon html ipv6 libedit +nettle nss +ntp +phc pps +refclock +rtc samba +seccomp +sechash selinux" |
31 |
+IUSE="+caps +cmdmon html ipv6 libedit +nettle nss +ntp +phc +nts pps +refclock +rtc samba +seccomp +sechash selinux" |
32 |
REQUIRED_USE=" |
33 |
sechash? ( || ( nettle nss ) ) |
34 |
nettle? ( !nss ) |
35 |
!sechash? ( !nss ) |
36 |
!sechash? ( !nts? ( !nettle ) ) |
37 |
+ nts? ( nettle ) |
38 |
" |
39 |
RESTRICT="test" |
40 |
|
41 |
@@ -43,6 +44,7 @@ DEPEND=" |
42 |
acct-user/ntp |
43 |
sys-libs/libcap |
44 |
) |
45 |
+ nts? ( net-libs/gnutls:= ) |
46 |
libedit? ( dev-libs/libedit ) |
47 |
nettle? ( dev-libs/nettle:= ) |
48 |
nss? ( dev-libs/nss:= ) |
49 |
@@ -100,6 +102,8 @@ src_configure() { |
50 |
$(usex nettle '' --without-nettle) |
51 |
$(usex nss '' --without-nss) |
52 |
$(usex ntp '' --disable-ntp) |
53 |
+ $(usex nts '' --disable-nts) |
54 |
+ $(usex nts '' --without-gnutls) |
55 |
$(usex phc '' --disable-phc) |
56 |
$(usex pps '' --disable-pps) |
57 |
$(usex refclock '' --disable-refclock) |
58 |
|
59 |
diff --git a/net-misc/chrony/metadata.xml b/net-misc/chrony/metadata.xml |
60 |
index fe7394a48bf..791c4d1271b 100644 |
61 |
--- a/net-misc/chrony/metadata.xml |
62 |
+++ b/net-misc/chrony/metadata.xml |
63 |
@@ -25,9 +25,10 @@ |
64 |
<use> |
65 |
<flag name="cmdmon">Support for command and monitoring</flag> |
66 |
<flag name="html">Install HTML documentation</flag> |
67 |
- <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for hash functions</flag> |
68 |
+ <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for hash functions or nts</flag> |
69 |
<flag name="nss">Use <pkg>dev-libs/nss</pkg> for hash functions</flag> |
70 |
<flag name="ntp">Support for the Network Time Protocol (NTP)</flag> |
71 |
+ <flag name="nts">Support for Network Time Security (NTS). Uses <pkg>net-libs/gnutls</pkg></flag> |
72 |
<flag name="phc">Support for the PTP (Precision Time Protocol) Hardware Clock (PHC) interface</flag> |
73 |
<flag name="pps">Support for the Linux Pulse Per Second (PPS) interface</flag> |
74 |
<flag name="refclock">Support for reference clocks</flag> |