From: Florian Eckert Date: Thu, 17 Sep 2020 10:53:17 +0000 (+0200) Subject: ddns-scripts: and new ddns-scripts_service package X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=42696aa16234b466de54cde77fbef0220e5c3fff;p=feed%2Fpackages.git ddns-scripts: and new ddns-scripts_service package Move all ddns service description into the package to shrik the size of the ddns-scripts base package. Signed-off-by: Florian Eckert --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 8f7251a940..52a0e3c4c7 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -46,6 +46,17 @@ define Package/ddns-scripts/conffiles endef +define Package/ddns-scripts_service + $(call Package/ddns-scripts/Default) + TITLE:=Common ddns providers + DEPENDS:=ddns-scripts +endef + +define Package/ddns-scripts_service/description + Dynamic DNS Client definitions for supported services +endef + + define Package/ddns-scripts_cloudflare.com-v4 $(call Package/ddns-scripts/Default) TITLE:=Extension for cloudflare.com API v4 @@ -179,10 +190,6 @@ define Package/ddns-scripts/install $(INSTALL_DIR) $(1)/usr/share/ddns echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version - $(INSTALL_DIR) $(1)/usr/share/ddns/services - $(INSTALL_DATA) ./files/usr/share/ddns/services/* \ - $(1)/usr/share/ddns/services/ - $(INSTALL_DIR) $(1)/usr/lib/ddns $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \ $(1)/usr/lib/ddns @@ -211,6 +218,13 @@ exit 0 endef +define Package/ddns-scripts_service/install + $(INSTALL_DIR) $(1)/usr/share/ddns/services + $(INSTALL_DATA) ./files/usr/share/ddns/services/* \ + $(1)/usr/share/ddns/services +endef + + define Package/ddns-scripts_cloudflare.com-v4/install $(INSTALL_DIR) $(1)/usr/lib/ddns $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \ @@ -364,6 +378,7 @@ endef $(eval $(call BuildPackage,ddns-scripts)) +$(eval $(call BuildPackage,ddns-scripts_service)) $(eval $(call BuildPackage,ddns-scripts_cloudflare.com-v4)) $(eval $(call BuildPackage,ddns-scripts_freedns_42_pl)) $(eval $(call BuildPackage,ddns-scripts_godaddy.com-v1))