summaryrefslogtreecommitdiff
path: root/net/chrony
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar0@gmail.com>2020-10-09 15:00:37 +0200
committerMiroslav Lichvar <mlichvar0@gmail.com>2020-10-09 16:52:30 +0200
commit65d37343587cd5c23ed8fff765f210773293750e (patch)
tree418b38a546b5030985c9d763ce325e52a1f8f55f /net/chrony
parentfcbb1f9fc4db230c07614e53b4a77430a7394c1e (diff)
chrony: add NTS option
Signed-off-by: Miroslav Lichvar <mlichvar0@gmail.com>
Diffstat (limited to 'net/chrony')
-rw-r--r--net/chrony/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index 8b73425d1..f69be16fe 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -22,18 +22,29 @@ PKG_CPE_ID:=cpe:/a:tuxfamily:chrony
PKG_BUILD_DEPENDS:=pps-tools
+PKG_CONFIG_DEPENDS:= \
+ CONFIG_CHRONY_NTS
+
include $(INCLUDE_DIR)/package.mk
define Package/chrony
SUBMENU:=Time Synchronization
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libcap +libpthread
+ DEPENDS:=+libcap +libpthread +CHRONY_NTS:libgnutls +CHRONY_NTS:ca-bundle
USERID:=chrony=323:chrony=323
TITLE:=A versatile NTP client and server
URL:=http://chrony.tuxfamily.org/
endef
+define Package/chrony/config
+ if PACKAGE_chrony
+ config CHRONY_NTS
+ bool "Enable NTS support"
+ default n
+ endif
+endef
+
define Package/chrony/description
An NTP client and server designed to perform well in a wide range
of conditions. It can synchronize the system clock with NTP servers,
@@ -52,7 +63,7 @@ CONFIGURE_ARGS+= \
--sysconfdir=/etc/chrony \
--prefix=/usr \
--chronyrundir=/var/run/chrony \
- --disable-nts \
+ $(if $(CONFIG_CHRONY_NTS),,--disable-nts) \
--disable-readline \
--disable-rtc \
--disable-sechash \