Browse Source

Merge pull request #13509 from TDT-AG/pr/20200928-ddns-scripts

ddns-scripts: fix regression added by version 2.8.0
lilik-openwrt-22.03
Florian Eckert 4 years ago
committed by GitHub
parent
commit
a333d71fd0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
85 changed files with 116 additions and 104 deletions
  1. +84
    -76
      net/ddns-scripts/Makefile
  2. +21
    -20
      net/ddns-scripts/files/usr/bin/ddns.sh
  3. +6
    -7
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh
  4. +5
    -1
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh
  5. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/3322.org.json
  6. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/able.or.kr.json
  7. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/afraid.org-basicauth.json
  8. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/afraid.org-keyauth.json
  9. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/afraid.org-v2-basic.json
  10. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/afraid.org-v2-token.json
  11. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/all-inkl.com.json
  12. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/bind-nsupdate.json
  13. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/changeip.com.json
  14. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/cloudflare.com-v4.json
  15. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/cnkuai.cn.json
  16. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/core-networks.de.json
  17. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/ddns.com.br.json
  18. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/ddnss.de.json
  19. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/ddo.jp.json
  20. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/desec.io.json
  21. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dhis.org.json
  22. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/digitalocean.com-v2.json
  23. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsdynamic.org.json
  24. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsever.com.json
  25. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsexit.com.json
  26. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnshome.de.json
  27. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsmadeeasy.com.json
  28. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsmax.com.json
  29. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnsomatic.com.json
  30. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dnspark.com.json
  31. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/do.de.json
  32. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/domopoli.de.json
  33. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dtdns.com.json
  34. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/duckdns.org.json
  35. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/duiadns.net.json
  36. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dy.fi.json
  37. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dyn.com.json
  38. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dyndns.it.json
  39. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dyndns.org.json
  40. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dyndnss.net.json
  41. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dyns.net.json
  42. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dynsip.org.json
  43. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dynu.com.json
  44. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/dynv6.com.json
  45. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/easydns.com.json
  46. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/editdns.net.json
  47. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/freedns.42.pl.json
  48. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/godaddy.com-v1.json
  49. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/goip.de.json
  50. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/google.com.json
  51. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/he.net.json
  52. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/inwx.de.json
  53. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/joker.com.json
  54. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/loopia.se.json
  55. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/moniker.com.json
  56. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/mydns.ip.json
  57. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/myip.co.ua.json
  58. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/myonlineportal.net.json
  59. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/mythic-beasts.com.json
  60. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/namecheap.com.json
  61. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/nettica.com.json
  62. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json
  63. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/no-ip.pl.json
  64. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/now-dns.com.json
  65. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/nsupdate.info.json
  66. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/nubem.com.json
  67. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/opendns.com.json
  68. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/oray.com.json
  69. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/ovh.com.json
  70. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/regfish.de.json
  71. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/route53-v1.json
  72. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/schokokeks.org.json
  73. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/selfhost.de.json
  74. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/sitelutions.com.json
  75. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/spdyn.de.json
  76. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/strato.com.json
  77. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/system-ns.com.json
  78. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/thatip.com.json
  79. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/twodns.de.json
  80. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/udmedia.de.json
  81. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/variomedia.de.json
  82. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/xlhost.de.json
  83. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/zerigo.com.json
  84. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/zoneedit.com.json
  85. +0
    -0
      net/ddns-scripts/files/usr/share/ddns/default/zzzz.io.json

+ 84
- 76
net/ddns-scripts/Makefile View File

@ -7,8 +7,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ddns-scripts
PKG_VERSION:=2.8.0
PKG_RELEASE:=24
PKG_VERSION:=2.8.1
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0
@ -25,6 +25,7 @@ endef
define Package/ddns-scripts
$(call Package/ddns-scripts/Default)
TITLE:=Dynamic DNS Client scripts (with IPv6 support)
DEPENDS:=+ddns-scripts-services
endef
define Package/ddns-scripts/description
@ -46,57 +47,56 @@ define Package/ddns-scripts/conffiles
endef
define Package/ddns-scripts_service
define Package/ddns-scripts-services
$(call Package/ddns-scripts/Default)
TITLE:=Common ddns providers
DEPENDS:=ddns-scripts
endef
define Package/ddns-scripts_service/description
define Package/ddns-scripts-services/description
Dynamic DNS Client definitions for supported services
endef
define Package/ddns-scripts_cloudflare.com-v4
define Package/ddns-scripts-cloudflare
$(call Package/ddns-scripts/Default)
TITLE:=Extension for cloudflare.com API v4
DEPENDS:=ddns-scripts +curl
endef
define Package/ddns-scripts_cloudflare.com-v4/description
define Package/ddns-scripts-cloudflare/description
Dynamic DNS Client scripts extension for cloudflare.com API v4 (require curl)
endef
define Package/ddns-scripts_freedns_42_pl
define Package/ddns-scripts-freedns
$(call Package/ddns-scripts/Default)
TITLE:=Extension for freedns.42.pl
DEPENDS:=ddns-scripts +curl
endef
define Package/ddns-scripts_freedns_42_pl/description
define Package/ddns-scripts-freedns/description
Dynamic DNS Client scripts extension for "freedns.42.pl".
endef
define Package/ddns-scripts_godaddy.com-v1
define Package/ddns-scripts-godaddy
$(call Package/ddns-scripts/Default)
TITLE:=Extension for godaddy.com API v1
DEPENDS:=ddns-scripts +curl
endef
define Package/ddns-scripts_godaddy.com-v1/description
define Package/ddns-scripts-godaddy/description
Dynamic DNS Client scripts extension for "godaddy.com API v1".
endef
define Package/ddns-scripts_digitalocean.com-v2
define Package/ddns-scripts-digitalocean
$(call Package/ddns-scripts/Default)
TITLE:=Extention for digitalocean.com API v2
DEPENDS:=ddns-scripts +curl
endef
define Package/ddns-scripts_digitalocean.com-v2/description
define Package/ddns-scripts-digitalocean/description
Dynamic DNS Client scripts extension for "digitalocean.com API v2".
The script directly updates a DNS record using the DO API.
It requires:
@ -108,24 +108,24 @@ define Package/ddns-scripts_digitalocean.com-v2/description
endef
define Package/ddns-scripts_no-ip_com
define Package/ddns-scripts-noip
$(call Package/ddns-scripts/Default)
TITLE:=Extension for no-ip.com
DEPENDS:=ddns-scripts
endef
define Package/ddns-scripts_no-ip_com/description
define Package/ddns-scripts-noip/description
Dynamic DNS Client scripts extension for "no-ip.com".
endef
define Package/ddns-scripts_nsupdate
define Package/ddns-scripts-nsupdate
$(call Package/ddns-scripts/Default)
TITLE:=Extension for using bind nsupdate.
DEPENDS:=ddns-scripts +bind-client
endef
define Package/ddns-scripts_nsupdate/description
define Package/ddns-scripts-nsupdate/description
Dynamic DNS Client scripts extension for direct updates using bind nsupdate
The script directly updates a PowerDNS (or maybe bind server) via nsupdate
from bind-client package.
@ -136,13 +136,13 @@ define Package/ddns-scripts_nsupdate/description
endef
define Package/ddns-scripts_route53-v1
define Package/ddns-scripts-route53
$(call Package/ddns-scripts/Default)
TITLE:=Extension for route53 API v1
DEPENDS:=ddns-scripts +curl +openssl-util
endef
define Package/ddns-scripts_route53-v1/description
define Package/ddns-scripts-route53/description
Dynamic DNS Client scripts extension for Amazon AWS "route53 API v1".
Note: You must also install ca-certificate or ca-bundle.
It requires:
@ -152,13 +152,13 @@ define Package/ddns-scripts_route53-v1/description
endef
define Package/ddns-scripts_cnkuai_cn
define Package/ddns-scripts-cnkuai
$(call Package/ddns-scripts/Default)
TITLE:=CnKuai API
DEPENDS:=ddns-scripts +curl +giflib-utils
endef
define Package/ddns-scripts_cnkuai_cn/description
define Package/ddns-scripts-cnkuai/description
Dynamic DNS Client scripts extension for "cnkuai.cn".
It requires:
"option username" to be a valid CnKuai control panel id
@ -189,8 +189,6 @@ define Package/ddns-scripts/install
$(INSTALL_DIR) $(1)/usr/share/ddns
echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
$(INSTALL_DATA) ./files/usr/share/ddns/list \
$(1)/usr/share/ddns
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
@ -224,24 +222,34 @@ 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
define Package/ddns-scripts-services/install
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/* \
$(1)/usr/share/ddns/default
# Remove special services
rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
rm $(1)/usr/share/ddns/default/freedns.42.pl.json
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/no-ip.com.json
rm $(1)/usr/share/ddns/default/bind-nsupdate.json
rm $(1)/usr/share/ddns/default/route53-v1.json
rm $(1)/usr/share/ddns/default/cnkuai.cn.json
endef
define Package/ddns-scripts_cloudflare.com-v4/install
define Package/ddns-scripts-cloudflare/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/cloudflare.com-v4.json \
$(1)/usr/share/ddns/services/
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
$(1)/usr/share/ddns/default/
endef
define Package/ddns-scripts_cloudflare.com-v4/prerm
define Package/ddns-scripts-cloudflare/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -250,17 +258,17 @@ exit 0
endef
define Package/ddns-scripts_freedns_42_pl/install
define Package/ddns-scripts-freedns/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/freedns.42.pl.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_freedns_42_pl/prerm
define Package/ddns-scripts-freedns/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -269,17 +277,17 @@ exit 0
endef
define Package/ddns-scripts_godaddy.com-v1/install
define Package/ddns-scripts-godaddy/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/godaddy.com-v1.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_godaddy.com-v1/prerm
define Package/ddns-scripts-godaddy/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -288,17 +296,17 @@ exit 0
endef
define Package/ddns-scripts_digitalocean.com-v2/install
define Package/ddns-scripts-digitalocean/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/digitalocean.com-v2.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_digitalocean.com-v2/prerm
define Package/ddns-scripts-digitalocean/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -307,17 +315,17 @@ exit 0
endef
define Package/ddns-scripts_no-ip_com/install
define Package/ddns-scripts-noip/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/no-ip.com.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_no-ip_com/prerm
define Package/ddns-scripts-noip/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -326,17 +334,17 @@ exit 0
endef
define Package/ddns-scripts_nsupdate/install
define Package/ddns-scripts-nsupdate/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/bind-nsupdate.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_nsupdate/prerm
define Package/ddns-scripts-nsupdate/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -345,17 +353,17 @@ exit 0
endef
define Package/ddns-scripts_route53-v1/install
define Package/ddns-scripts-route53/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/route53-v1.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_route53-v1/prerm
define Package/ddns-scripts-route53/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -364,17 +372,17 @@ exit 0
endef
define Package/ddns-scripts_cnkuai_cn/install
define Package/ddns-scripts-cnkuai/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
$(1)/usr/lib/ddns
$(INSTALL_DIR) $(1)/usr/share/ddns/services
$(INSTALL_DATA) ./files/usr/share/ddns/services/cnkuai.cn.json \
$(1)/usr/share/ddns/services
$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
$(1)/usr/share/ddns/default
endef
define Package/ddns-scripts_cnkuai_cn/prerm
define Package/ddns-scripts-cnkuai/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
@ -384,12 +392,12 @@ 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))
$(eval $(call BuildPackage,ddns-scripts_digitalocean.com-v2))
$(eval $(call BuildPackage,ddns-scripts_no-ip_com))
$(eval $(call BuildPackage,ddns-scripts_nsupdate))
$(eval $(call BuildPackage,ddns-scripts_route53-v1))
$(eval $(call BuildPackage,ddns-scripts_cnkuai_cn))
$(eval $(call BuildPackage,ddns-scripts-services))
$(eval $(call BuildPackage,ddns-scripts-cloudflare))
$(eval $(call BuildPackage,ddns-scripts-freedns))
$(eval $(call BuildPackage,ddns-scripts-godaddy))
$(eval $(call BuildPackage,ddns-scripts-digitalocean))
$(eval $(call BuildPackage,ddns-scripts-noip))
$(eval $(call BuildPackage,ddns-scripts-nsupdate))
$(eval $(call BuildPackage,ddns-scripts-route53))
$(eval $(call BuildPackage,ddns-scripts-cnkuai))

+ 21
- 20
net/ddns-scripts/files/usr/bin/ddns.sh View File

@ -20,15 +20,15 @@ usage() {
echo "Usage: $(basename "$0") <command> <action> <service>"
echo ""
echo "Supported ddns <command>:"
echo " service: Command for ddns service provider"
echo " service: Command for custom ddns service providers"
echo ""
echo "Supported ddns 'service' command <action>:"
echo " update: Update local ddns service list"
echo " list-available: List all available service providers"
echo " list-installed: List all installed service providers"
echo " install <service>: Install service provider"
echo " remove <service>: Remove service provider"
echo " purge: Remove local ddns serivces"
echo " update: Update local custom ddns service list"
echo " list-available: List all available custom service providers"
echo " list-installed: List all installed custom service providers"
echo " install <service>: Install custom service provider"
echo " remove <service>: Remove custom service provider"
echo " purge: Remove local custom ddns services"
exit "$code"
}
@ -63,16 +63,16 @@ action_list_available() {
if [ -f "${DDNS_PACKAGE_DIR}/list" ]; then
cat "${DDNS_PACKAGE_DIR}/list"
else
echo "No service file found please download first"
echo "No custom service list file found. Please download first"
exit 3
fi
}
action_list_installed() {
if [ -d "${DDNS_PACKAGE_DIR}/services" ]; then
ls "${DDNS_PACKAGE_DIR}/services"
if [ -d "${DDNS_PACKAGE_DIR}/custom" ]; then
ls "${DDNS_PACKAGE_DIR}/custom"
else
echo "No services installed"
echo "No custom services installed"
exit 4
fi
}
@ -83,25 +83,26 @@ action_install() {
local url cacert
config_load ddns
config_get url global 'url' "${URL}${DDNS_PACKAGE_DIR}"
config_get url global 'url' "${URL}${DDNS_PACKAGE_DIR}/default"
config_get cacert global 'cacert' "IGNORE"
url="${url}/services/${service}.json"
url="${url}/${service}.json"
if [ -z "$service" ]; then
usage "4" "No service specified"
usage "4" "No custom service specified"
fi
mkdir -p "${DDNS_PACKAGE_DIR}/services"
mkdir -p "${DDNS_PACKAGE_DIR}/custom"
if [ "$cacert" = "IGNORE" ]; then
uclient-fetch \
--no-check-certificate \
"${url}" \
-O "${DDNS_PACKAGE_DIR}/services/${service}.json"
-O "${DDNS_PACKAGE_DIR}/custom/${service}.json"
elif [ -f "$cacert" ]; then
uclient-fetch \
--ca-certifcate="${cacert}" \
"${url}" \
-O "${DDNS_PACKAGE_DIR}/services/${service}.json"
-O "${DDNS_PACKAGE_DIR}/custom/${service}.json"
elif [ -n "$cacert" ]; then
echo "Certification file not found ($cacert)"
exit 5
@ -111,14 +112,14 @@ action_install() {
action_remove() {
local service="$1"
if [ -z "$service" ]; then
usage "4" "No service specified"
usage "4" "No custom service specified"
fi
rm "${DDNS_PACKAGE_DIR}/services/${service}.json"
rm "${DDNS_PACKAGE_DIR}/custom/${service}.json"
}
action_purge() {
rm -rf "${DDNS_PACKAGE_DIR}/services"
rm -rf "${DDNS_PACKAGE_DIR}/custom"
rm -rf "${DDNS_PACKAGE_DIR}/list"
}


+ 6
- 7
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh View File

@ -317,19 +317,18 @@ urlencode() {
}
# extract url or script for given DDNS Provider from
# directory /usr/share/ddns/services/ipv4/ for IPv4
# or from
# directory /usr/share/ddns/services/ipv6/ for IPv6
# $1 Name of the provider
# $1 Name of Variable to store url to
# $2 Name of Variable to store script to
# $3 Name of Variable to store service answer to
# $2 Provider directory
# $3 Name of Variable to store url to
# $4 Name of Variable to store script to
# $5 Name of Variable to store service answer to
get_service_data() {
local provider="$1"
shift
local dir="$1"
shift
. /usr/share/libubox/jshn.sh
local dir="/usr/share/ddns/services"
local name data url answer script
[ $# -ne 3 ] && write_log 12 "Error calling 'get_service_data()' - wrong number of parameters"


+ 5
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh View File

@ -233,7 +233,11 @@ esac
# otherwise update_url is set inside configuration (custom update url)
# or update_script is set inside configuration (custom update script)
[ -n "$service_name" ] && {
get_service_data "$service_name" update_url update_script UPD_ANSWER
# Check first if we have a custom service provider with this name
get_service_data "$service_name" "/usr/share/ddns/custom" update_url update_script UPD_ANSWER
if [ "$?" != "0" ]; then
get_service_data "$service_name" "/usr/share/ddns/default" update_url update_script UPD_ANSWER
fi
}
[ -z "$update_url" -a -z "$update_script" ] && write_log 14 "No update_url found/defined or no update_script found/defined!"


net/ddns-scripts/files/usr/share/ddns/services/3322.org.json → net/ddns-scripts/files/usr/share/ddns/default/3322.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/able.or.kr.json → net/ddns-scripts/files/usr/share/ddns/default/able.or.kr.json View File


net/ddns-scripts/files/usr/share/ddns/services/afraid.org-basicauth.json → net/ddns-scripts/files/usr/share/ddns/default/afraid.org-basicauth.json View File


net/ddns-scripts/files/usr/share/ddns/services/afraid.org-keyauth.json → net/ddns-scripts/files/usr/share/ddns/default/afraid.org-keyauth.json View File


net/ddns-scripts/files/usr/share/ddns/services/afraid.org-v2-basic.json → net/ddns-scripts/files/usr/share/ddns/default/afraid.org-v2-basic.json View File


net/ddns-scripts/files/usr/share/ddns/services/afraid.org-v2-token.json → net/ddns-scripts/files/usr/share/ddns/default/afraid.org-v2-token.json View File


net/ddns-scripts/files/usr/share/ddns/services/all-inkl.com.json → net/ddns-scripts/files/usr/share/ddns/default/all-inkl.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/bind-nsupdate.json → net/ddns-scripts/files/usr/share/ddns/default/bind-nsupdate.json View File


net/ddns-scripts/files/usr/share/ddns/services/changeip.com.json → net/ddns-scripts/files/usr/share/ddns/default/changeip.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/cloudflare.com-v4.json → net/ddns-scripts/files/usr/share/ddns/default/cloudflare.com-v4.json View File


net/ddns-scripts/files/usr/share/ddns/services/cnkuai.cn.json → net/ddns-scripts/files/usr/share/ddns/default/cnkuai.cn.json View File


net/ddns-scripts/files/usr/share/ddns/services/core-networks.de.json → net/ddns-scripts/files/usr/share/ddns/default/core-networks.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/ddns.com.br.json → net/ddns-scripts/files/usr/share/ddns/default/ddns.com.br.json View File


net/ddns-scripts/files/usr/share/ddns/services/ddnss.de.json → net/ddns-scripts/files/usr/share/ddns/default/ddnss.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/ddo.jp.json → net/ddns-scripts/files/usr/share/ddns/default/ddo.jp.json View File


net/ddns-scripts/files/usr/share/ddns/services/desec.io.json → net/ddns-scripts/files/usr/share/ddns/default/desec.io.json View File


net/ddns-scripts/files/usr/share/ddns/services/dhis.org.json → net/ddns-scripts/files/usr/share/ddns/default/dhis.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/digitalocean.com-v2.json → net/ddns-scripts/files/usr/share/ddns/default/digitalocean.com-v2.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsdynamic.org.json → net/ddns-scripts/files/usr/share/ddns/default/dnsdynamic.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsever.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnsever.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsexit.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnsexit.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnshome.de.json → net/ddns-scripts/files/usr/share/ddns/default/dnshome.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsmadeeasy.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnsmadeeasy.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsmax.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnsmax.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnsomatic.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnsomatic.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dnspark.com.json → net/ddns-scripts/files/usr/share/ddns/default/dnspark.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/do.de.json → net/ddns-scripts/files/usr/share/ddns/default/do.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/domopoli.de.json → net/ddns-scripts/files/usr/share/ddns/default/domopoli.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/dtdns.com.json → net/ddns-scripts/files/usr/share/ddns/default/dtdns.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/duckdns.org.json → net/ddns-scripts/files/usr/share/ddns/default/duckdns.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/duiadns.net.json → net/ddns-scripts/files/usr/share/ddns/default/duiadns.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/dy.fi.json → net/ddns-scripts/files/usr/share/ddns/default/dy.fi.json View File


net/ddns-scripts/files/usr/share/ddns/services/dyn.com.json → net/ddns-scripts/files/usr/share/ddns/default/dyn.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dyndns.it.json → net/ddns-scripts/files/usr/share/ddns/default/dyndns.it.json View File


net/ddns-scripts/files/usr/share/ddns/services/dyndns.org.json → net/ddns-scripts/files/usr/share/ddns/default/dyndns.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/dyndnss.net.json → net/ddns-scripts/files/usr/share/ddns/default/dyndnss.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/dyns.net.json → net/ddns-scripts/files/usr/share/ddns/default/dyns.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/dynsip.org.json → net/ddns-scripts/files/usr/share/ddns/default/dynsip.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/dynu.com.json → net/ddns-scripts/files/usr/share/ddns/default/dynu.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/dynv6.com.json → net/ddns-scripts/files/usr/share/ddns/default/dynv6.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/easydns.com.json → net/ddns-scripts/files/usr/share/ddns/default/easydns.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/editdns.net.json → net/ddns-scripts/files/usr/share/ddns/default/editdns.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/freedns.42.pl.json → net/ddns-scripts/files/usr/share/ddns/default/freedns.42.pl.json View File


net/ddns-scripts/files/usr/share/ddns/services/godaddy.com-v1.json → net/ddns-scripts/files/usr/share/ddns/default/godaddy.com-v1.json View File


net/ddns-scripts/files/usr/share/ddns/services/goip.de.json → net/ddns-scripts/files/usr/share/ddns/default/goip.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/google.com.json → net/ddns-scripts/files/usr/share/ddns/default/google.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/he.net.json → net/ddns-scripts/files/usr/share/ddns/default/he.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/inwx.de.json → net/ddns-scripts/files/usr/share/ddns/default/inwx.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/joker.com.json → net/ddns-scripts/files/usr/share/ddns/default/joker.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/loopia.se.json → net/ddns-scripts/files/usr/share/ddns/default/loopia.se.json View File


net/ddns-scripts/files/usr/share/ddns/services/moniker.com.json → net/ddns-scripts/files/usr/share/ddns/default/moniker.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/mydns.ip.json → net/ddns-scripts/files/usr/share/ddns/default/mydns.ip.json View File


net/ddns-scripts/files/usr/share/ddns/services/myip.co.ua.json → net/ddns-scripts/files/usr/share/ddns/default/myip.co.ua.json View File


net/ddns-scripts/files/usr/share/ddns/services/myonlineportal.net.json → net/ddns-scripts/files/usr/share/ddns/default/myonlineportal.net.json View File


net/ddns-scripts/files/usr/share/ddns/services/mythic-beasts.com.json → net/ddns-scripts/files/usr/share/ddns/default/mythic-beasts.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/namecheap.com.json → net/ddns-scripts/files/usr/share/ddns/default/namecheap.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/nettica.com.json → net/ddns-scripts/files/usr/share/ddns/default/nettica.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/no-ip.com.json → net/ddns-scripts/files/usr/share/ddns/default/no-ip.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/no-ip.pl.json → net/ddns-scripts/files/usr/share/ddns/default/no-ip.pl.json View File


net/ddns-scripts/files/usr/share/ddns/services/now-dns.com.json → net/ddns-scripts/files/usr/share/ddns/default/now-dns.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/nsupdate.info.json → net/ddns-scripts/files/usr/share/ddns/default/nsupdate.info.json View File


net/ddns-scripts/files/usr/share/ddns/services/nubem.com.json → net/ddns-scripts/files/usr/share/ddns/default/nubem.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/opendns.com.json → net/ddns-scripts/files/usr/share/ddns/default/opendns.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/oray.com.json → net/ddns-scripts/files/usr/share/ddns/default/oray.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/ovh.com.json → net/ddns-scripts/files/usr/share/ddns/default/ovh.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/regfish.de.json → net/ddns-scripts/files/usr/share/ddns/default/regfish.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/route53-v1.json → net/ddns-scripts/files/usr/share/ddns/default/route53-v1.json View File


net/ddns-scripts/files/usr/share/ddns/services/schokokeks.org.json → net/ddns-scripts/files/usr/share/ddns/default/schokokeks.org.json View File


net/ddns-scripts/files/usr/share/ddns/services/selfhost.de.json → net/ddns-scripts/files/usr/share/ddns/default/selfhost.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/sitelutions.com.json → net/ddns-scripts/files/usr/share/ddns/default/sitelutions.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/spdyn.de.json → net/ddns-scripts/files/usr/share/ddns/default/spdyn.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/strato.com.json → net/ddns-scripts/files/usr/share/ddns/default/strato.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/system-ns.com.json → net/ddns-scripts/files/usr/share/ddns/default/system-ns.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/thatip.com.json → net/ddns-scripts/files/usr/share/ddns/default/thatip.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/twodns.de.json → net/ddns-scripts/files/usr/share/ddns/default/twodns.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/udmedia.de.json → net/ddns-scripts/files/usr/share/ddns/default/udmedia.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/variomedia.de.json → net/ddns-scripts/files/usr/share/ddns/default/variomedia.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/xlhost.de.json → net/ddns-scripts/files/usr/share/ddns/default/xlhost.de.json View File


net/ddns-scripts/files/usr/share/ddns/services/zerigo.com.json → net/ddns-scripts/files/usr/share/ddns/default/zerigo.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/zoneedit.com.json → net/ddns-scripts/files/usr/share/ddns/default/zoneedit.com.json View File


net/ddns-scripts/files/usr/share/ddns/services/zzzz.io.json → net/ddns-scripts/files/usr/share/ddns/default/zzzz.io.json View File


Loading…
Cancel
Save