Skip to content

Commit

Permalink
ddns-scripts: Add dnspod.cn-v3
Browse files Browse the repository at this point in the history
Signed-off-by: FriesI23 <FriesI23@outlook.com>
  • Loading branch information
FriesI23 committed Dec 26, 2024
1 parent 3a8f49d commit 1175e3a
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 1 deletion.
34 changes: 33 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:=52
PKG_RELEASE:=53

PKG_LICENSE:=GPL-2.0

Expand Down Expand Up @@ -155,6 +155,17 @@ define Package/ddns-scripts-dnspod/description
endef


define Package/ddns-scripts-dnspod-v3
$(call Package/ddns-scripts/Default)
TITLE:=Extension for dnspod.tencentcloudapi.com (aka: dnspod.cn) API v3
DEPENDS:=ddns-scripts +curl
endef

define Package/ddns-scripts-dnspod-v3/description
Dynamic DNS Client scripts extension for dnspod.tencentcloudapi.com API v3 (require curl)
endef


define Package/ddns-scripts-noip
$(call Package/ddns-scripts/Default)
TITLE:=Extension for no-ip.com
Expand Down Expand Up @@ -385,6 +396,7 @@ define Package/ddns-scripts-services/install
rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
rm $(1)/usr/share/ddns/default/dnspod.cn.json
rm $(1)/usr/share/ddns/default/dnspod.cn-v3.json
rm $(1)/usr/share/ddns/default/no-ip.com.json
rm $(1)/usr/share/ddns/default/bind-nsupdate.json
rm $(1)/usr/share/ddns/default/route53-v1.json
Expand Down Expand Up @@ -541,6 +553,25 @@ exit 0
endef


define Package/ddns-scripts-dnspod-v3/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn_v3.sh \
$(1)/usr/lib/ddns

$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/dnspod.cn-v3.json \
$(1)/usr/share/ddns/default/
endef

define Package/ddns-scripts-dnspod-v3/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
fi
exit 0
endef


define Package/ddns-scripts-noip/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
Expand Down Expand Up @@ -760,6 +791,7 @@ $(eval $(call BuildPackage,ddns-scripts-freedns))
$(eval $(call BuildPackage,ddns-scripts-godaddy))
$(eval $(call BuildPackage,ddns-scripts-digitalocean))
$(eval $(call BuildPackage,ddns-scripts-dnspod))
$(eval $(call BuildPackage,ddns-scripts-dnspod-v3))
$(eval $(call BuildPackage,ddns-scripts-noip))
$(eval $(call BuildPackage,ddns-scripts-nsupdate))
$(eval $(call BuildPackage,ddns-scripts-route53))
Expand Down
Loading

0 comments on commit 1175e3a

Please sign in to comment.