From 565fda4105017a08b7c818c60a930ebb8252eeb9 Mon Sep 17 00:00:00 2001 From: Julian Grinblat Date: Thu, 5 Oct 2023 03:02:50 +0900 Subject: [PATCH] ddns-scripts: add ddns-scripts-utils package The samples in the repo are useful for configuring cenrtain aspects of ddns, and their inclusion is hinted at within their source code Signed-off-by: Julian Grinblat --- net/ddns-scripts/Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index a4c79b06b5..e37da9a746 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.8.2 -PKG_RELEASE:=39 +PKG_RELEASE:=40 PKG_LICENSE:=GPL-2.0 @@ -57,6 +57,16 @@ define Package/ddns-scripts-services/description Dynamic DNS Client definitions for supported services endef +define Package/ddns-scripts-utils + $(call Package/ddns-scripts/Default) + TITLE:=Utility scripts for ddns configs + DEPENDS:=ddns-scripts +endef + +define Package/ddns-scripts-utils/description + Dynamic DNS Client utility scripts for config files +endef + define Package/ddns-scripts-luadns $(call Package/ddns-scripts/Default) @@ -362,6 +372,15 @@ define Package/ddns-scripts-services/install endef +define Package/ddns-scripts-utils/install + $(INSTALL_DIR) $(1)/usr/lib/ddns + $(INSTALL_BIN) ./samples/slaac_sample.sh \ + $(1)/usr/lib/ddns/slaac.sh + $(INSTALL_BIN) ./samples/getlocalip_sample.sh \ + $(1)/usr/lib/ddns/getlocalip.sh +endef + + define Package/ddns-scripts-luadns/install $(INSTALL_DIR) $(1)/usr/lib/ddns $(INSTALL_BIN) ./files/usr/lib/ddns/update_luadns_v1.sh \ @@ -668,6 +687,7 @@ endef $(eval $(call BuildPackage,ddns-scripts)) $(eval $(call BuildPackage,ddns-scripts-services)) +$(eval $(call BuildPackage,ddns-scripts-utils)) $(eval $(call BuildPackage,ddns-scripts-luadns)) $(eval $(call BuildPackage,ddns-scripts-cloudflare)) $(eval $(call BuildPackage,ddns-scripts-gcp)) -- 2.30.2