commit:     0233f5c3801e2efe5a8c6162d1d00740fdf854e7
Author:     Peter Alfredsen <crabbedhaloablution <AT> icloud <DOT> com>
AuthorDate: Tue Dec 15 11:48:23 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=0233f5c3

net-misc/chrony: add debug support

Added debug use-flag. Use -dd option to chronyd to get DEBUG_LOG output.
Added in 2013(!) commit 4bbc5520b8e340a08795e245784beb42c1254c0b.

Signed-off-by: Peter Alfredsen <crabbedhaloablution <AT> icloud.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/chrony/chrony-9999.ebuild | 3 ++-
 net-misc/chrony/metadata.xml       | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-misc/chrony/chrony-9999.ebuild 
b/net-misc/chrony/chrony-9999.ebuild
index 650ad8c1415..b648039d357 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -20,7 +20,7 @@ S="${WORKDIR}/${P/_/-}"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="+caps +cmdmon html ipv6 libedit +nettle nss +ntp +phc +nts pps +refclock 
+rtc samba +seccomp +sechash selinux"
+IUSE="+caps +cmdmon debug html ipv6 libedit +nettle nss +ntp +phc +nts pps 
+refclock +rtc samba +seccomp +sechash selinux"
 REQUIRED_USE="
        sechash? ( || ( nettle nss  ) )
        nettle? ( !nss )
@@ -97,6 +97,7 @@ src_configure() {
                $(use_enable seccomp scfilter)
                $(usex caps '' --disable-linuxcaps)
                $(usex cmdmon '' --disable-cmdmon)
+               $(usex debug '--enable-debug' '')
                $(usex ipv6 '' --disable-ipv6)
                $(usex libedit '' --without-editline)
                $(usex nettle '' --without-nettle)

diff --git a/net-misc/chrony/metadata.xml b/net-misc/chrony/metadata.xml
index 791c4d1271b..811f8ec399c 100644
--- a/net-misc/chrony/metadata.xml
+++ b/net-misc/chrony/metadata.xml
@@ -24,6 +24,7 @@
        </longdescription>
        <use>
                <flag name="cmdmon">Support for command and monitoring</flag>
+               <flag name="debug">Get DEBUG_LOG output from chronyd when 
passing -dd parameter</flag>
                <flag name="html">Install HTML documentation</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>

Reply via email to