Skip to content

Commit

Permalink
Merge pull request openwrt#22303 from perrin4869/ddns-scripts/add-sam…
Browse files Browse the repository at this point in the history
…ples-to-package

ddns-scripts: add samples to package
  • Loading branch information
feckert authored Oct 9, 2023
2 parents 08e3c43 + 565fda4 commit a2653fe
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion net/ddns-scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit a2653fe

Please sign in to comment.