You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

568 lines
23 KiB

ddns-scripts: Update to Version 2.0.1-1 Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
10 years ago
ddns-scripts: Update to Version 2.0.1-1 Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
10 years ago
ddns-scripts: Update to Version 2.0.1-1 Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
10 years ago
ddns-scripts: Update to Version 2.0.1-1 Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
10 years ago
ddns-scripts: Update to Version 2.0.1-1 Squashed commit of the following: commit fc1d42f069ff930180c5f067c2eb88c9e9df7003 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 18:01:43 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 commit 731f9b4df00a8f29df2c17f102356c4d6980918a Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:59:25 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 personal helper script to create hashes for CA-Certificates for Wget and cURL using https protocol without errors. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit df8f6c9d5d31fde24fe1d673949d272d887505e1 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:56:05 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 50cdf5acb9caecfd9b65ab79696c40fb2bc7037b Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:54:40 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 rewritten Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit b1d650a345fb06402c1eac01138cbafcca123a8c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:52:52 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 not needed in this version Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 9532114b03d428a3162b16e06706d3aa50e601bb Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:51:39 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 same function as existing services file but used for IPv6 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit a636bc25c62e23694c009886c13253c9cecc548c Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:46:56 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 New file explaining availible parameters. Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com> commit 52332354fc245861e17c898aa6b806f6c174e9a5 Author: Christian Schoenebeck <christian.schoenebeck@gmail.com> Date: Sun Sep 21 17:44:45 2014 +0200 [ddns-scripts] Update to Version 2.0.1-1 Sorry GitHub web interface only supports single commits that will be summarized into one pull request. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
10 years ago
  1. #
  2. # Copyright (C) 2008-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=ddns-scripts
  8. # Version == major.minor.patch
  9. # increase on new functionality (minor) or patches (patch)
  10. PKG_VERSION:=2.7.8
  11. # Release == build
  12. # increase on changes of services files or tld_names.dat
  13. PKG_RELEASE:=21
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_MAINTAINER:=
  16. include $(INCLUDE_DIR)/package.mk
  17. # no default dependencies
  18. PKG_DEFAULT_DEPENDS=
  19. define Package/ddns-scripts/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=IP Addresses and Names
  23. PKGARCH:=all
  24. endef
  25. ###### *************************************************************************
  26. define Package/ddns-scripts
  27. $(call Package/ddns-scripts/Default)
  28. TITLE:=Dynamic DNS Client scripts (with IPv6 support)
  29. endef
  30. # shown in LuCI package description
  31. define Package/ddns-scripts/description
  32. Dynamic DNS Client scripts (with IPv6 support) - Info: https://openwrt.org/docs/guide-user/services/ddns/client
  33. endef
  34. # shown in menuconfig <Help>
  35. define Package/ddns-scripts/config
  36. help
  37. A highly configurable set of scripts for doing dynamic dns updates.
  38. - IPv6 support
  39. - DNS server support
  40. - Glue Record support (require BIND host or KNOT host)
  41. - DNS requests via TCP
  42. - Proxy server support
  43. - log file support
  44. - support to run once
  45. Version: $(PKG_VERSION)-$(PKG_RELEASE)
  46. Info : https://openwrt.org/docs/guide-user/services/ddns/client
  47. endef
  48. ###### *************************************************************************
  49. define Package/ddns-scripts_cloudflare.com-v4
  50. $(call Package/ddns-scripts/Default)
  51. TITLE:=CloudFlare.com API v4 (requires cURL)
  52. DEPENDS:=ddns-scripts +curl
  53. endef
  54. define Package/ddns-scripts_cloudflare.com-v4/description
  55. Dynamic DNS Client scripts extension for CloudFlare.com API-v4 (require/install cURL)
  56. endef
  57. ###### *************************************************************************
  58. define Package/ddns-scripts_freedns_42_pl
  59. $(call Package/ddns-scripts/Default)
  60. TITLE:=DDNS extension for FreeDNS.42.pl (requires cURL)
  61. DEPENDS:=ddns-scripts +curl
  62. endef
  63. define Package/ddns-scripts_freedns_42_pl/description
  64. Dynamic DNS Client scripts extension for freedns.42.pl
  65. endef
  66. ###### *************************************************************************
  67. define Package/ddns-scripts_godaddy.com-v1
  68. $(call Package/ddns-scripts/Default)
  69. TITLE:=GoDaddy.com (require cURL)
  70. DEPENDS:=ddns-scripts +curl
  71. endef
  72. define Package/ddns-scripts_godaddy.com-v1/description
  73. Dynamic DNS Client scripts extension for GoDaddy.com (require/install cURL)
  74. endef
  75. ###### *************************************************************************
  76. define Package/ddns-scripts_digitalocean.com-v2
  77. $(call Package/ddns-scripts/Default)
  78. TITLE:=digitalocean.com (require cURL)
  79. DEPENDS:=ddns-scripts +curl
  80. endef
  81. define Package/ddns-scripts_digitalocean.com-v2/description
  82. Dynamic DNS Client scripts extension for digitalocean.com (require/install cURL)
  83. endef
  84. define Package/ddns-scripts_digitalocean.com-v2/config
  85. help
  86. The script directly updates a DNS record using the DO API. It requires
  87. "option dns_server" to be set to the server to be used by nsupdate.
  88. "option domain" the dns domain to update the record for (eg. A-record: home.<example.com>)
  89. "option username" the dns record name to update (eg. A-record: <home>.example.com)
  90. "option param_opt" the id of the dns record to update (check using chrome inspector in the DO dns tab)
  91. "option password" the api token generated in the DO panel
  92. endef
  93. ###### *************************************************************************
  94. define Package/ddns-scripts_no-ip_com
  95. $(call Package/ddns-scripts/Default)
  96. TITLE:=DDNS extension for No-IP.com
  97. DEPENDS:=ddns-scripts
  98. endef
  99. define Package/ddns-scripts_no-ip_com/description
  100. Dynamic DNS Client scripts extension for No-IP.com
  101. endef
  102. ###### *************************************************************************
  103. define Package/ddns-scripts_nsupdate
  104. $(call Package/ddns-scripts/Default)
  105. TITLE:=DDNS extension using Bind nsupdate
  106. DEPENDS:=ddns-scripts +bind-client
  107. endef
  108. define Package/ddns-scripts_nsupdate/description
  109. Dynamic DNS Client scripts extension for direct updates using Bind nsupdate
  110. endef
  111. define Package/ddns-scripts_nsupdate/config
  112. help
  113. The script directly updates a PowerDNS (or maybe bind server) via nsupdate
  114. from bind-client package. It requires
  115. "option dns_server" to be set to the server to be used by nsupdate.
  116. "option username" should be set to the key name and
  117. "option password" to the base64 encoded shared secret.
  118. endef
  119. ###### *************************************************************************
  120. define Package/ddns-scripts_route53-v1
  121. $(call Package/ddns-scripts/Default)
  122. TITLE:=Amazon AWS Route 53 API v1
  123. DEPENDS:=ddns-scripts +curl +openssl-util
  124. endef
  125. define Package/ddns-scripts_route53-v1/description
  126. Dynamic DNS Client scripts extension for Amazon AWS Route53. Note: You
  127. must also install ca-certificate or ca-bundle.
  128. It requires:
  129. "option username" to be a valid AWS access key id
  130. "option password" to be the matching AWS secret key id
  131. "option domain" to contain the hosted zone ID
  132. endef
  133. ###### *************************************************************************
  134. define Package/ddns-scripts_cnkuai_cn
  135. $(call Package/ddns-scripts/Default)
  136. TITLE:=CnKuai API
  137. DEPENDS:=ddns-scripts +curl +giflib-utils
  138. endef
  139. define Package/ddns-scripts_cnkuai_cn/description
  140. Dynamic DNS Client scripts extension for CnKuai.Note: You
  141. must also install giflib-utils.
  142. It requires:
  143. "option username" to be a valid CnKuai control panel id
  144. "option password" to be the matching CnKuai control panel password
  145. "option domain" to contain the domain
  146. endef
  147. ###### *************************************************************************
  148. define Build/Configure
  149. endef
  150. define Build/Compile
  151. $(CP) ./files $(PKG_BUILD_DIR)
  152. # ensure that VERSION inside dynamic_dns_functions.sh reflect PKG_VERSION of Makefile
  153. $(SED) '/^VERSION=*/s/.*/VERSION="$(PKG_VERSION)-$(PKG_RELEASE)"/' $(PKG_BUILD_DIR)/files/dynamic_dns_functions.sh
  154. # remove comments, white spaces and empty lines
  155. for FILE in `find $(PKG_BUILD_DIR)/files -type f`; do \
  156. $(SED) 's/^[[:space:]]*//' \
  157. -e '/^#[[:space:]]\|^#$$$$/d' \
  158. -e 's/[[:space:]]#[[:space:]].*$$$$//' \
  159. -e 's/[[:space:]]*$$$$//' \
  160. -e '/^\/\/[[:space:]]/d' \
  161. -e '/^[[:space:]]*$$$$/d' $$$$FILE; \
  162. done
  163. endef
  164. define Package/ddns-scripts/conffiles
  165. /etc/config/ddns
  166. endef
  167. ###### *************************************************************************
  168. define Package/ddns-scripts/preinst
  169. #!/bin/sh
  170. # if NOT run buildroot then stop service
  171. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  172. exit 0 # suppress errors
  173. endef
  174. define Package/ddns-scripts/install
  175. $(INSTALL_DIR) $(1)/etc/uci-defaults
  176. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns
  177. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  178. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.hotplug $(1)/etc/hotplug.d/iface/95-ddns
  179. $(INSTALL_DIR) $(1)/etc/init.d
  180. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.init $(1)/etc/init.d/ddns
  181. $(INSTALL_DIR) $(1)/etc/config
  182. $(INSTALL_CONF) $(PKG_BUILD_DIR)/files/ddns.config $(1)/etc/config/ddns
  183. $(INSTALL_DIR) $(1)/etc/ddns
  184. $(INSTALL_DATA) $(PKG_BUILD_DIR)/files/services* $(1)/etc/ddns
  185. $(INSTALL_DIR) $(1)/usr/lib/ddns
  186. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/dynamic_dns_*.sh $(1)/usr/lib/ddns
  187. endef
  188. define Package/ddns-scripts/postinst
  189. #!/bin/sh
  190. # if NOT run buildroot and PKG_UPGRADE then (re)start service if enabled
  191. [ -z "$${IPKG_INSTROOT}" -a "$${PKG_UPGRADE}" = "1" ] && {
  192. [ -x /etc/uci-defaults/ddns ] && \
  193. /etc/uci-defaults/ddns && \
  194. rm -f /etc/uci-defaults/ddns >/dev/null 2>&1
  195. /etc/init.d/ddns enabled && \
  196. /etc/init.d/ddns start >/dev/null 2>&1
  197. }
  198. exit 0 # suppress errors
  199. endef
  200. define Package/ddns-scripts/prerm
  201. #!/bin/sh
  202. # if run within buildroot exit
  203. [ -n "$${IPKG_INSTROOT}" ] && exit 0
  204. # stop running scripts
  205. /etc/init.d/ddns stop
  206. /etc/init.d/ddns disable
  207. # clear LuCI indexcache
  208. rm -f /tmp/luci-indexcache >/dev/null 2>&1
  209. exit 0 # suppress errors
  210. endef
  211. ###### *************************************************************************
  212. define Package/ddns-scripts_cloudflare.com-v4/preinst
  213. #!/bin/sh
  214. # if NOT run buildroot then stop service
  215. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  216. exit 0 # suppress errors
  217. endef
  218. define Package/ddns-scripts_cloudflare.com-v4/install
  219. $(INSTALL_DIR) $(1)/etc/uci-defaults
  220. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_cloudflare.com-v4
  221. $(INSTALL_DIR) $(1)/usr/lib/ddns
  222. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_cloudflare_com_v4.sh $(1)/usr/lib/ddns
  223. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_cloudflare_com_v4_token.sh $(1)/usr/lib/ddns
  224. endef
  225. define Package/ddns-scripts_cloudflare.com-v4/postinst
  226. #!/bin/sh
  227. # remove old services file entries
  228. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  229. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  230. # and create new
  231. printf "%s\\t%s\\n" '"cloudflare.com-v4"' '"update_cloudflare_com_v4.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  232. printf "%s\\t%s\\n" '"cloudflare.com-v4"' '"update_cloudflare_com_v4.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  233. printf "%s\\t%s\\n" '"cloudflare.com-v4-token"' '"update_cloudflare_com_v4_token.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  234. printf "%s\\t%s\\n" '"cloudflare.com-v4-token"' '"update_cloudflare_com_v4_token.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  235. # on real system restart service if enabled
  236. [ -z "$${IPKG_INSTROOT}" ] && {
  237. [ -x /etc/uci-defaults/ddns_cloudflare.com-v4 ] && \
  238. /etc/uci-defaults/ddns_cloudflare.com-v4 && \
  239. rm -f /etc/uci-defaults/ddns_cloudflare.com-v4 >/dev/null 2>&1
  240. /etc/init.d/ddns enabled && \
  241. /etc/init.d/ddns start >/dev/null 2>&1
  242. }
  243. exit 0 # suppress errors
  244. endef
  245. define Package/ddns-scripts_cloudflare.com-v4/prerm
  246. #!/bin/sh
  247. # if NOT run buildroot then stop service
  248. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  249. # remove services file entries
  250. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  251. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  252. exit 0 # suppress errors
  253. endef
  254. ###### *************************************************************************
  255. define Package/ddns-scripts_freedns_42_pl/preinst
  256. #!/bin/sh
  257. # if NOT run buildroot then stop service
  258. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  259. exit 0 # suppress errors
  260. endef
  261. define Package/ddns-scripts_freedns_42_pl/install
  262. $(INSTALL_DIR) $(1)/etc/uci-defaults
  263. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_freedns_42_pl
  264. $(INSTALL_DIR) $(1)/usr/lib/ddns
  265. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_freedns_42_pl.sh $(1)/usr/lib/ddns
  266. endef
  267. define Package/ddns-scripts_freedns_42_pl/postinst
  268. #!/bin/sh
  269. # remove old services file entries
  270. /bin/sed -i '/freedns\.42\.pl/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  271. # and create new
  272. printf "%s\\t%s\\n" '"freedns.42.pl"' '"update_freedns_42_pl.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  273. # on real system restart service if enabled
  274. [ -z "$${IPKG_INSTROOT}" ] && {
  275. [ -x /etc/uci-defaults/ddns_freedns_42_pl ] && \
  276. /etc/uci-defaults/ddns_freedns_42_pl && \
  277. rm -f /etc/uci-defaults/ddns_freedns_42_pl >/dev/null 2>&1
  278. /etc/init.d/ddns enabled && \
  279. /etc/init.d/ddns start >/dev/null 2>&1
  280. }
  281. exit 0 # suppress errors
  282. endef
  283. define Package/ddns-scripts_freedns_42_pl/prerm
  284. #!/bin/sh
  285. # if NOT run buildroot then stop service
  286. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  287. # remove services file entries
  288. /bin/sed -i '/freedns\.42\.pl/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  289. exit 0 # suppress errors
  290. endef
  291. ###### *************************************************************************
  292. define Package/ddns-scripts_godaddy.com-v1/preinst
  293. #!/bin/sh
  294. # if NOT run buildroot then stop service
  295. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  296. exit 0 # suppress errors
  297. endef
  298. define Package/ddns-scripts_godaddy.com-v1/install
  299. $(INSTALL_DIR) $(1)/etc/uci-defaults
  300. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_godaddy.com-v1
  301. $(INSTALL_DIR) $(1)/usr/lib/ddns
  302. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_godaddy_com_v1.sh $(1)/usr/lib/ddns
  303. endef
  304. define Package/ddns-scripts_godaddy.com-v1/postinst
  305. #!/bin/sh
  306. # remove old services file entries
  307. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  308. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  309. # and create new
  310. printf "%s\\t%s\\n" '"godaddy.com-v1"' '"update_godaddy_com_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  311. printf "%s\\t%s\\n" '"godaddy.com-v1"' '"update_godaddy_com_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  312. # on real system restart service if enabled
  313. [ -z "$${IPKG_INSTROOT}" ] && {
  314. [ -x /etc/uci-defaults/ddns_godaddy.com-v1 ] && \
  315. /etc/uci-defaults/ddns_godaddy.com-v1 && \
  316. rm -f /etc/uci-defaults/ddns_godaddy.com-v1 >/dev/null 2>&1
  317. /etc/init.d/ddns enabled \
  318. && /etc/init.d/ddns start >/dev/null 2>&1
  319. }
  320. exit 0 # suppress errors
  321. endef
  322. define Package/ddns-scripts_godaddy.com-v1/prerm
  323. #!/bin/sh
  324. # if NOT run buildroot then stop service
  325. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  326. # remove services file entries
  327. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  328. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  329. exit 0 # suppress errors
  330. endef
  331. ###### *************************************************************************
  332. define Package/ddns-scripts_digitalocean.com-v2/preinst
  333. #!/bin/sh
  334. # if NOT run buildroot then stop service
  335. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  336. exit 0 # suppress errors
  337. endef
  338. define Package/ddns-scripts_digitalocean.com-v2/install
  339. $(INSTALL_DIR) $(1)/etc/uci-defaults
  340. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_digtalocean.com-v2
  341. $(INSTALL_DIR) $(1)/usr/lib/ddns
  342. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_digitalocean_com_v2.sh $(1)/usr/lib/ddns
  343. endef
  344. define Package/ddns-scripts_digitalocean.com-v2/postinst
  345. #!/bin/sh
  346. # remove old services file entries
  347. /bin/sed -i '/digitalocean\.com-v2/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  348. /bin/sed -i '/digitalocean\.com-v2/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  349. # and create new
  350. printf "%s\\t%s\\n" '"digitalocean.com-v2"' '"update_digitalocean_com_v2.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  351. printf "%s\\t%s\\n" '"digitalocean.com-v2"' '"update_digitalocean_com_v2.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  352. # on real system restart service if enabled
  353. [ -z "$${IPKG_INSTROOT}" ] && {
  354. [ -x /etc/uci-defaults/ddns_digitalocean.com-v2 ] && \
  355. /etc/uci-defaults/ddns_digitalocean.com-v2 && \
  356. rm -f /etc/uci-defaults/ddns_digitalocean.com-v2 >/dev/null 2>&1
  357. /etc/init.d/ddns enabled \
  358. && /etc/init.d/ddns start >/dev/null 2>&1
  359. }
  360. exit 0 # suppress errors
  361. endef
  362. define Package/ddns-scripts_digitalocean.com-v2/prerm
  363. #!/bin/sh
  364. # if NOT run buildroot then stop service
  365. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  366. # remove services file entries
  367. /bin/sed -i '/digitalocean\.com-v2/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  368. /bin/sed -i '/digitalocean\.com-v2/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  369. exit 0 # suppress errors
  370. endef
  371. ###### *************************************************************************
  372. define Package/ddns-scripts_no-ip_com/preinst
  373. #!/bin/sh
  374. # if NOT run buildroot then stop service
  375. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  376. exit 0 # suppress errors
  377. endef
  378. define Package/ddns-scripts_no-ip_com/install
  379. $(INSTALL_DIR) $(1)/etc/uci-defaults
  380. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_no-ip_com
  381. $(INSTALL_DIR) $(1)/usr/lib/ddns
  382. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_no-ip_com.sh $(1)/usr/lib/ddns
  383. endef
  384. define Package/ddns-scripts_no-ip_com/postinst
  385. #!/bin/sh
  386. # remove old services file entries
  387. /bin/sed -i '/no-ip\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  388. # and create new
  389. printf "%s\\t%s\\n" '"no-ip.com"' '"update_no-ip_com.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  390. # on real system restart service if enabled
  391. [ -z "$${IPKG_INSTROOT}" ] && {
  392. [ -x /etc/uci-defaults/ddns_no-ip_com ] && \
  393. /etc/uci-defaults/ddns_no-ip_com && \
  394. rm -f /etc/uci-defaults/ddns_no-ip_com >/dev/null 2>&1
  395. /etc/init.d/ddns enabled && \
  396. /etc/init.d/ddns start >/dev/null 2>&1
  397. }
  398. exit 0 # suppress errors
  399. endef
  400. define Package/ddns-scripts_no-ip_com/prerm
  401. #!/bin/sh
  402. # if NOT run buildroot then stop service
  403. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  404. # remove services file entries
  405. /bin/sed -i '/no-ip\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  406. exit 0 # suppress errors
  407. endef
  408. ###### *************************************************************************
  409. define Package/ddns-scripts_nsupdate/preinst
  410. #!/bin/sh
  411. # if NOT run buildroot then stop service
  412. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  413. exit 0 # suppress errors
  414. endef
  415. define Package/ddns-scripts_nsupdate/install
  416. $(INSTALL_DIR) $(1)/etc/uci-defaults
  417. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_nsupdate
  418. $(INSTALL_DIR) $(1)/usr/lib/ddns
  419. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_nsupdate.sh $(1)/usr/lib/ddns
  420. endef
  421. define Package/ddns-scripts_nsupdate/postinst
  422. #!/bin/sh
  423. # remove old services file entries
  424. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  425. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  426. # and create new
  427. printf "%s\\t%s\\n" '"bind-nsupdate"' '"update_nsupdate.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  428. printf "%s\\t%s\\n" '"bind-nsupdate"' '"update_nsupdate.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  429. # on real system restart service if enabled
  430. [ -z "$${IPKG_INSTROOT}" ] && {
  431. [ -x /etc/uci-defaults/ddns_nsupdate ] && \
  432. /etc/uci-defaults/ddns_nsupdate && \
  433. rm -f /etc/uci-defaults/ddns_nsupdate >/dev/null 2>&1
  434. /etc/init.d/ddns enabled && \
  435. /etc/init.d/ddns start >/dev/null 2>&1
  436. }
  437. exit 0 # suppress errors
  438. endef
  439. define Package/ddns-scripts_nsupdate/prerm
  440. #!/bin/sh
  441. # if NOT run buildroot then stop service
  442. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  443. # remove services file entries
  444. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  445. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  446. exit 0 # suppress errors
  447. endef
  448. ###### *************************************************************************
  449. define Package/ddns-scripts_route53-v1/preinst
  450. #!/bin/sh
  451. # if NOT run buildroot then stop service
  452. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  453. exit 0 # suppress errors
  454. endef
  455. define Package/ddns-scripts_route53-v1/install
  456. $(INSTALL_DIR) $(1)/etc/uci-defaults
  457. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_route53-v1
  458. $(INSTALL_DIR) $(1)/usr/lib/ddns
  459. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_route53_v1.sh $(1)/usr/lib/ddns
  460. endef
  461. define Package/ddns-scripts_route53-v1/postinst
  462. #!/bin/sh
  463. # remove old services file entries
  464. /bin/sed -i '/route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  465. /bin/sed -i '/route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  466. # and create new
  467. printf "%s\\t%s\\n" '"route53-v1"' '"update_route53_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  468. printf "%s\\t%s\\n" '"route53-v1"' '"update_route53_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  469. # on real system restart service if enabled
  470. [ -z "$${IPKG_INSTROOT}" ] && {
  471. [ -x /etc/uci-defaults/ddns_route53-v1 ] && \
  472. /etc/uci-defaults/ddns_route53-v1 && \
  473. rm -f /etc/uci-defaults/route53.com-v1 >/dev/null 2>&1
  474. /etc/init.d/ddns enabled \
  475. && /etc/init.d/ddns start >/dev/null 2>&1
  476. }
  477. exit 0 # suppress errors
  478. endef
  479. define Package/ddns-scripts_route53-v1/prerm
  480. #!/bin/sh
  481. # if NOT run buildroot then stop service
  482. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  483. # remove services file entries
  484. /bin/sed -i 'route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  485. /bin/sed -i 'route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  486. exit 0 # suppress errors
  487. endef
  488. ###### *************************************************************************
  489. define Package/ddns-scripts_cnkuai_cn/preinst
  490. #!/bin/sh
  491. # if NOT run buildroot then stop service
  492. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  493. exit 0 # suppress errors
  494. endef
  495. define Package/ddns-scripts_cnkuai_cn/install
  496. $(INSTALL_DIR) $(1)/etc/uci-defaults
  497. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_cnkuai_cn
  498. $(INSTALL_DIR) $(1)/usr/lib/ddns
  499. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_cnkuai_cn.sh $(1)/usr/lib/ddns
  500. endef
  501. define Package/ddns-scripts_cnkuai_cn/postinst
  502. #!/bin/sh
  503. # remove old services file entries
  504. /bin/sed -i '/cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  505. /bin/sed -i '/cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  506. # and create new
  507. printf "%s\\t%s\\n" '"cnkuai.cn"' '"update_cnkuai_cn.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  508. printf "%s\\t%s\\n" '"cnkuai.cn"' '"update_cnkuai_cn.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  509. # on real system restart service if enabled
  510. [ -z "$${IPKG_INSTROOT}" ] && {
  511. [ -x /etc/uci-defaults/ddns_cnkuai_cn ] && \
  512. /etc/uci-defaults/ddns_cnkuai_cn && \
  513. rm -f /etc/uci-defaults/cnkuai.cn >/dev/null 2>&1
  514. /etc/init.d/ddns enabled \
  515. && /etc/init.d/ddns start >/dev/null 2>&1
  516. }
  517. exit 0 # suppress errors
  518. endef
  519. define Package/ddns-scripts_cnkuai_cn/prerm
  520. #!/bin/sh
  521. # if NOT run buildroot then stop service
  522. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  523. # remove services file entries
  524. /bin/sed -i 'cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  525. /bin/sed -i 'cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  526. exit 0 # suppress errors
  527. endef
  528. ###### *************************************************************************
  529. $(eval $(call BuildPackage,ddns-scripts))
  530. $(eval $(call BuildPackage,ddns-scripts_cloudflare.com-v4))
  531. $(eval $(call BuildPackage,ddns-scripts_freedns_42_pl))
  532. $(eval $(call BuildPackage,ddns-scripts_godaddy.com-v1))
  533. $(eval $(call BuildPackage,ddns-scripts_digitalocean.com-v2))
  534. $(eval $(call BuildPackage,ddns-scripts_no-ip_com))
  535. $(eval $(call BuildPackage,ddns-scripts_nsupdate))
  536. $(eval $(call BuildPackage,ddns-scripts_route53-v1))
  537. $(eval $(call BuildPackage,ddns-scripts_cnkuai_cn))