chrony: add provides logic to Makefile

This satisfies other packages which might depend on either chrony variant.

Should another package dependency request 'chrony', the default will be non-NTS
chrony via DEFAULT_VARIANT:=1 (mlichvar comment:  to avoid pulling its large
dependencies).

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2025-10-29 15:48:57 +01:00
committed by Tianling Shen
parent bbaa539fbc
commit 505f3a0e17

View File

@@ -40,6 +40,7 @@ define Package/chrony
$(call Package/chrony/Default)
TITLE+= (without NTS)
VARIANT:=normal
DEFAULT_VARIANT:=1
CONFLICTS:=chrony-nts
endef
@@ -48,6 +49,7 @@ $(call Package/chrony/Default)
TITLE+= (with NTS)
DEPENDS+= +PACKAGE_chrony-nts:libgnutls +PACKAGE_chrony-nts:ca-bundle
VARIANT:=with-nts
PROVIDES:=chrony
endef
define Package/chrony/description