When you need to dig deep into NTP sync status.

Signed-off-by: Bruno Thomsen <[email protected]>
---
Changes since version 2:
- Revert to ptx/ifdef from version 1 of patch.
- Minor help text update.

Changes since version 1:
- Fixed yoda style subject line.
- Replace ptx/ifdef with ptx/endis for explicit options.
  This outputs unrecognized options, but we still get expected result.
  Unrecognized option :  --disable-debug
  Unrecognized option :  --enable-cmdmon

 rules/chrony.in   | 7 +++++++
 rules/chrony.make | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/chrony.in b/rules/chrony.in
index 16b730199..e83013f68 100644
--- a/rules/chrony.in
+++ b/rules/chrony.in
@@ -29,6 +29,13 @@ config CHRONY_USE_NETTLE
          Use nettle crypto library for stronger keys than MD5 in
          NTP authentication.
 
+config CHRONY_ADVANCED_COMMAND
+       bool
+       prompt "Enable advanced monitoring command"
+       help
+         This allows getting advanced NTP time synchronization
+         status monitoring from the service.
+
 comment "install options   ---"
 
 config CHRONY_INSTALL_CHRONY_COMMAND
diff --git a/rules/chrony.make b/rules/chrony.make
index 51141059c..d28ff4d28 100644
--- a/rules/chrony.make
+++ b/rules/chrony.make
@@ -48,7 +48,8 @@ CHRONY_CONF_OPT               := \
        $(call ptx/ifdef, PTXCONF_CHRONY_USE_NETTLE,,--without-nettle) \
        --without-nss \
        --without-tomcrypt \
-       --disable-cmdmon \
+       $(call ptx/ifdef, PTXCONF_CHRONY_ADVANCED_COMMAND,,--disable-cmdmon) \
+       $(call ptx/ifdef, PTXCONF_CHRONY_ADVANCED_COMMAND,--enable-debug,) \
        --disable-refclock \
        --disable-phc \
        --disable-pps \
-- 
2.26.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to