Browse Source

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 <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 4 years ago
parent
commit
42696aa162
1 changed files with 19 additions and 4 deletions
  1. +19
    -4
      net/ddns-scripts/Makefile

+ 19
- 4
net/ddns-scripts/Makefile View 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))


Loading…
Cancel
Save