commit: e69294ba7087691b826ad8ed73dac52c9a3527aa Author: Peter Alfredsen <crabbedhaloablution <AT> icloud <DOT> com> AuthorDate: Tue Dec 15 11:46:03 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 8 14:53:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e69294ba
net-misc/chrony: enable NTS support Enabled NTS support in ebuild. Needs net-libs/gnutls and dev-libs/nettle. NTS is the only thing net-libs/gnutls is used for. Reported-By: Matt Whitlock <gentoo <AT> mattwhitlock.name> Closes: https://bugs.gentoo.org/759526 Signed-off-by: Peter Alfredsen <crabbedhaloablution <AT> icloud.com> Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/chrony/chrony-9999.ebuild | 6 +++++- net-misc/chrony/metadata.xml | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild index 81b51b9af84..650ad8c1415 100644 --- a/net-misc/chrony/chrony-9999.ebuild +++ b/net-misc/chrony/chrony-9999.ebuild @@ -20,12 +20,13 @@ S="${WORKDIR}/${P/_/-}" LICENSE="GPL-2" SLOT="0" -IUSE="+caps +cmdmon html ipv6 libedit +nettle nss +ntp +phc pps +refclock +rtc samba +seccomp +sechash selinux" +IUSE="+caps +cmdmon html ipv6 libedit +nettle nss +ntp +phc +nts pps +refclock +rtc samba +seccomp +sechash selinux" REQUIRED_USE=" sechash? ( || ( nettle nss ) ) nettle? ( !nss ) !sechash? ( !nss ) !sechash? ( !nts? ( !nettle ) ) + nts? ( nettle ) " RESTRICT="test" @@ -43,6 +44,7 @@ DEPEND=" acct-user/ntp sys-libs/libcap ) + nts? ( net-libs/gnutls:= ) libedit? ( dev-libs/libedit ) nettle? ( dev-libs/nettle:= ) nss? ( dev-libs/nss:= ) @@ -100,6 +102,8 @@ src_configure() { $(usex nettle '' --without-nettle) $(usex nss '' --without-nss) $(usex ntp '' --disable-ntp) + $(usex nts '' --disable-nts) + $(usex nts '' --without-gnutls) $(usex phc '' --disable-phc) $(usex pps '' --disable-pps) $(usex refclock '' --disable-refclock) diff --git a/net-misc/chrony/metadata.xml b/net-misc/chrony/metadata.xml index fe7394a48bf..791c4d1271b 100644 --- a/net-misc/chrony/metadata.xml +++ b/net-misc/chrony/metadata.xml @@ -25,9 +25,10 @@ <use> <flag name="cmdmon">Support for command and monitoring</flag> <flag name="html">Install HTML documentation</flag> - <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for hash functions</flag> + <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> for hash functions or nts</flag> <flag name="nss">Use <pkg>dev-libs/nss</pkg> for hash functions</flag> <flag name="ntp">Support for the Network Time Protocol (NTP)</flag> + <flag name="nts">Support for Network Time Security (NTS). Uses <pkg>net-libs/gnutls</pkg></flag> <flag name="phc">Support for the PTP (Precision Time Protocol) Hardware Clock (PHC) interface</flag> <flag name="pps">Support for the Linux Pulse Per Second (PPS) interface</flag> <flag name="refclock">Support for reference clocks</flag>
