ddns-scripts: and new ddns-scripts_service package
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Sep 2020 10:53:17 +0000 (12:53 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 21 Sep 2020 08:17:01 +0000 (10:17 +0200)
Move all ddns service description into the package to shrik the size of
the ddns-scripts base package.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/ddns-scripts/Makefile

index 8f7251a940b73d0b5d334c9cee4b0d2201b4984e..52a0e3c4c79ca7c801c53d30132bbe81fea89afd 100644 (file)
@@ -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))