Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/
Date: Mon, 08 Feb 2021 14:54:18
Message-Id: 1612796041.26acfdd1f862b2419bb6b1914a0208645e35a192.sam@gentoo
1 commit: 26acfdd1f862b2419bb6b1914a0208645e35a192
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 8 13:57:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 8 14:54:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26acfdd1
7
8 net-misc/chrony: add dev-libs/libtomcrypt support
9
10 Used for different hashes than MD5.
11
12 Package-Manager: Portage-3.0.14, Repoman-3.0.2
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-misc/chrony/chrony-4.0-r1.ebuild | 12 ++++++------
16 net-misc/chrony/metadata.xml | 1 +
17 2 files changed, 7 insertions(+), 6 deletions(-)
18
19 diff --git a/net-misc/chrony/chrony-4.0-r1.ebuild b/net-misc/chrony/chrony-4.0-r1.ebuild
20 index 21e864d92e0..29a5fe41d5f 100644
21 --- a/net-misc/chrony/chrony-4.0-r1.ebuild
22 +++ b/net-misc/chrony/chrony-4.0-r1.ebuild
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 +# Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=7
29 @@ -20,14 +20,14 @@ S="${WORKDIR}/${P/_/-}"
30
31 LICENSE="GPL-2"
32 SLOT="0"
33 -IUSE="+caps +cmdmon debug html ipv6 libedit +nettle nss +ntp +phc +nts pps +refclock +rtc samba +seccomp +sechash selinux"
34 +IUSE="+caps +cmdmon debug html ipv6 libedit +nettle nss +ntp +phc +nts pps +refclock +rtc samba +seccomp +sechash selinux libtomcrypt"
35 REQUIRED_USE="
36 - sechash? ( || ( nettle nss ) )
37 + sechash? ( || ( nettle nss libtomcrypt ) )
38 nettle? ( !nss )
39 !sechash? ( !nss )
40 !sechash? ( !nts? ( !nettle ) )
41 nts? ( nettle )
42 - "
43 +"
44 RESTRICT="test"
45
46 BDEPEND="nettle? ( virtual/pkgconfig )"
47 @@ -110,7 +110,7 @@ src_configure() {
48 $(usex rtc '' --disable-rtc)
49 $(usex samba --enable-ntp-signd '')
50 $(usex sechash '' --disable-sechash)
51 - ${EXTRA_ECONF}
52 + $(usex libtomcrypt '' --disable-tomcrypt)
53 --chronysockdir="${EPREFIX}/run/chrony"
54 --docdir="${EPREFIX}/usr/share/doc/${PF}"
55 --mandir="${EPREFIX}/usr/share/man"
56 @@ -118,7 +118,7 @@ src_configure() {
57 --sysconfdir="${EPREFIX}/etc/chrony"
58 --with-hwclockfile="${EPREFIX}/etc/adjtime"
59 --with-pidfile="${EPREFIX}/run/chrony/chronyd.pid"
60 - --without-tomcrypt
61 + ${EXTRA_ECONF}
62 )
63
64 # print the ./configure call
65
66 diff --git a/net-misc/chrony/metadata.xml b/net-misc/chrony/metadata.xml
67 index 811f8ec399c..e43d7873661 100644
68 --- a/net-misc/chrony/metadata.xml
69 +++ b/net-misc/chrony/metadata.xml
70 @@ -35,6 +35,7 @@
71 <flag name="refclock">Support for reference clocks</flag>
72 <flag name="rtc">Support for the Linux Real Time Clock interface</flag>
73 <flag name="sechash">Enable support for hashes other than MD5</flag>
74 + <flag name="libtomcrypt">Support different hashes via <pkg>dev-libs/libtomcrypt</pkg></flag>
75 </use>
76 <upstream>
77 <remote-id type="cpe">cpe:/a:chrony_project:chrony</remote-id>