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.

503 lines
20 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:=17
  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_no-ip_com
  77. $(call Package/ddns-scripts/Default)
  78. TITLE:=DDNS extension for No-IP.com
  79. DEPENDS:=ddns-scripts
  80. endef
  81. define Package/ddns-scripts_no-ip_com/description
  82. Dynamic DNS Client scripts extension for No-IP.com
  83. endef
  84. ###### *************************************************************************
  85. define Package/ddns-scripts_nsupdate
  86. $(call Package/ddns-scripts/Default)
  87. TITLE:=DDNS extension using Bind nsupdate
  88. DEPENDS:=ddns-scripts +bind-client
  89. endef
  90. define Package/ddns-scripts_nsupdate/description
  91. Dynamic DNS Client scripts extension for direct updates using Bind nsupdate
  92. endef
  93. define Package/ddns-scripts_nsupdate/config
  94. help
  95. The script directly updates a PowerDNS (or maybe bind server) via nsupdate
  96. from bind-client package. It requires
  97. "option dns_server" to be set to the server to be used by nsupdate.
  98. "option username" should be set to the key name and
  99. "option password" to the base64 encoded shared secret.
  100. endef
  101. ###### *************************************************************************
  102. define Package/ddns-scripts_route53-v1
  103. $(call Package/ddns-scripts/Default)
  104. TITLE:=Amazon AWS Route 53 API v1
  105. DEPENDS:=ddns-scripts +curl +openssl-util
  106. endef
  107. define Package/ddns-scripts_route53-v1/description
  108. Dynamic DNS Client scripts extension for Amazon AWS Route53. Note: You
  109. must also install ca-certificate or ca-bundle.
  110. It requires:
  111. "option username" to be a valid AWS access key id
  112. "option password" to be the matching AWS secret key id
  113. "option domain" to contain the hosted zone ID
  114. endef
  115. ###### *************************************************************************
  116. define Package/ddns-scripts_cnkuai_cn
  117. $(call Package/ddns-scripts/Default)
  118. TITLE:=CnKuai API
  119. DEPENDS:=ddns-scripts +curl +giflib-utils
  120. endef
  121. define Package/ddns-scripts_cnkuai_cn/description
  122. Dynamic DNS Client scripts extension for CnKuai.Note: You
  123. must also install giflib-utils.
  124. It requires:
  125. "option username" to be a valid CnKuai control panel id
  126. "option password" to be the matching CnKuai control panel password
  127. "option domain" to contain the domain
  128. endef
  129. ###### *************************************************************************
  130. define Build/Configure
  131. endef
  132. define Build/Compile
  133. $(CP) ./files $(PKG_BUILD_DIR)
  134. # ensure that VERSION inside dynamic_dns_functions.sh reflect PKG_VERSION of Makefile
  135. $(SED) '/^VERSION=*/s/.*/VERSION="$(PKG_VERSION)-$(PKG_RELEASE)"/' $(PKG_BUILD_DIR)/files/dynamic_dns_functions.sh
  136. # remove comments, white spaces and empty lines
  137. for FILE in `find $(PKG_BUILD_DIR)/files -type f`; do \
  138. $(SED) 's/^[[:space:]]*//' \
  139. -e '/^#[[:space:]]\|^#$$$$/d' \
  140. -e 's/[[:space:]]#[[:space:]].*$$$$//' \
  141. -e 's/[[:space:]]*$$$$//' \
  142. -e '/^\/\/[[:space:]]/d' \
  143. -e '/^[[:space:]]*$$$$/d' $$$$FILE; \
  144. done
  145. endef
  146. define Package/ddns-scripts/conffiles
  147. /etc/config/ddns
  148. endef
  149. ###### *************************************************************************
  150. define Package/ddns-scripts/preinst
  151. #!/bin/sh
  152. # if NOT run buildroot then stop service
  153. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  154. exit 0 # suppress errors
  155. endef
  156. define Package/ddns-scripts/install
  157. $(INSTALL_DIR) $(1)/etc/uci-defaults
  158. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns
  159. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  160. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.hotplug $(1)/etc/hotplug.d/iface/95-ddns
  161. $(INSTALL_DIR) $(1)/etc/init.d
  162. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.init $(1)/etc/init.d/ddns
  163. $(INSTALL_DIR) $(1)/etc/config
  164. $(INSTALL_CONF) $(PKG_BUILD_DIR)/files/ddns.config $(1)/etc/config/ddns
  165. $(INSTALL_DIR) $(1)/etc/ddns
  166. $(INSTALL_DATA) $(PKG_BUILD_DIR)/files/services* $(1)/etc/ddns
  167. $(INSTALL_DIR) $(1)/usr/lib/ddns
  168. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/dynamic_dns_*.sh $(1)/usr/lib/ddns
  169. endef
  170. define Package/ddns-scripts/postinst
  171. #!/bin/sh
  172. # if NOT run buildroot and PKG_UPGRADE then (re)start service if enabled
  173. [ -z "$${IPKG_INSTROOT}" -a "$${PKG_UPGRADE}" = "1" ] && {
  174. [ -x /etc/uci-defaults/ddns ] && \
  175. /etc/uci-defaults/ddns && \
  176. rm -f /etc/uci-defaults/ddns >/dev/null 2>&1
  177. /etc/init.d/ddns enabled && \
  178. /etc/init.d/ddns start >/dev/null 2>&1
  179. }
  180. exit 0 # suppress errors
  181. endef
  182. define Package/ddns-scripts/prerm
  183. #!/bin/sh
  184. # if run within buildroot exit
  185. [ -n "$${IPKG_INSTROOT}" ] && exit 0
  186. # stop running scripts
  187. /etc/init.d/ddns stop
  188. /etc/init.d/ddns disable
  189. # clear LuCI indexcache
  190. rm -f /tmp/luci-indexcache >/dev/null 2>&1
  191. exit 0 # suppress errors
  192. endef
  193. ###### *************************************************************************
  194. define Package/ddns-scripts_cloudflare.com-v4/preinst
  195. #!/bin/sh
  196. # if NOT run buildroot then stop service
  197. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  198. exit 0 # suppress errors
  199. endef
  200. define Package/ddns-scripts_cloudflare.com-v4/install
  201. $(INSTALL_DIR) $(1)/etc/uci-defaults
  202. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_cloudflare.com-v4
  203. $(INSTALL_DIR) $(1)/usr/lib/ddns
  204. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_cloudflare_com_v4.sh $(1)/usr/lib/ddns
  205. endef
  206. define Package/ddns-scripts_cloudflare.com-v4/postinst
  207. #!/bin/sh
  208. # remove old services file entries
  209. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  210. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  211. # and create new
  212. printf "%s\\t%s\\n" '"cloudflare.com-v4"' '"update_cloudflare_com_v4.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  213. printf "%s\\t%s\\n" '"cloudflare.com-v4"' '"update_cloudflare_com_v4.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  214. # on real system restart service if enabled
  215. [ -z "$${IPKG_INSTROOT}" ] && {
  216. [ -x /etc/uci-defaults/ddns_cloudflare.com-v4 ] && \
  217. /etc/uci-defaults/ddns_cloudflare.com-v4 && \
  218. rm -f /etc/uci-defaults/ddns_cloudflare.com-v4 >/dev/null 2>&1
  219. /etc/init.d/ddns enabled && \
  220. /etc/init.d/ddns start >/dev/null 2>&1
  221. }
  222. exit 0 # suppress errors
  223. endef
  224. define Package/ddns-scripts_cloudflare.com-v4/prerm
  225. #!/bin/sh
  226. # if NOT run buildroot then stop service
  227. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  228. # remove services file entries
  229. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  230. /bin/sed -i '/cloudflare\.com-v4/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  231. exit 0 # suppress errors
  232. endef
  233. ###### *************************************************************************
  234. define Package/ddns-scripts_freedns_42_pl/preinst
  235. #!/bin/sh
  236. # if NOT run buildroot then stop service
  237. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  238. exit 0 # suppress errors
  239. endef
  240. define Package/ddns-scripts_freedns_42_pl/install
  241. $(INSTALL_DIR) $(1)/etc/uci-defaults
  242. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_freedns_42_pl
  243. $(INSTALL_DIR) $(1)/usr/lib/ddns
  244. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_freedns_42_pl.sh $(1)/usr/lib/ddns
  245. endef
  246. define Package/ddns-scripts_freedns_42_pl/postinst
  247. #!/bin/sh
  248. # remove old services file entries
  249. /bin/sed -i '/freedns\.42\.pl/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  250. # and create new
  251. printf "%s\\t%s\\n" '"freedns.42.pl"' '"update_freedns_42_pl.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  252. # on real system restart service if enabled
  253. [ -z "$${IPKG_INSTROOT}" ] && {
  254. [ -x /etc/uci-defaults/ddns_freedns_42_pl ] && \
  255. /etc/uci-defaults/ddns_freedns_42_pl && \
  256. rm -f /etc/uci-defaults/ddns_freedns_42_pl >/dev/null 2>&1
  257. /etc/init.d/ddns enabled && \
  258. /etc/init.d/ddns start >/dev/null 2>&1
  259. }
  260. exit 0 # suppress errors
  261. endef
  262. define Package/ddns-scripts_freedns_42_pl/prerm
  263. #!/bin/sh
  264. # if NOT run buildroot then stop service
  265. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  266. # remove services file entries
  267. /bin/sed -i '/freedns\.42\.pl/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  268. exit 0 # suppress errors
  269. endef
  270. ###### *************************************************************************
  271. define Package/ddns-scripts_godaddy.com-v1/preinst
  272. #!/bin/sh
  273. # if NOT run buildroot then stop service
  274. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  275. exit 0 # suppress errors
  276. endef
  277. define Package/ddns-scripts_godaddy.com-v1/install
  278. $(INSTALL_DIR) $(1)/etc/uci-defaults
  279. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_godaddy.com-v1
  280. $(INSTALL_DIR) $(1)/usr/lib/ddns
  281. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_godaddy_com_v1.sh $(1)/usr/lib/ddns
  282. endef
  283. define Package/ddns-scripts_godaddy.com-v1/postinst
  284. #!/bin/sh
  285. # remove old services file entries
  286. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  287. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  288. # and create new
  289. printf "%s\\t%s\\n" '"godaddy.com-v1"' '"update_godaddy_com_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  290. printf "%s\\t%s\\n" '"godaddy.com-v1"' '"update_godaddy_com_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  291. # on real system restart service if enabled
  292. [ -z "$${IPKG_INSTROOT}" ] && {
  293. [ -x /etc/uci-defaults/ddns_godaddy.com-v1 ] && \
  294. /etc/uci-defaults/ddns_godaddy.com-v1 && \
  295. rm -f /etc/uci-defaults/ddns_godaddy.com-v1 >/dev/null 2>&1
  296. /etc/init.d/ddns enabled \
  297. && /etc/init.d/ddns start >/dev/null 2>&1
  298. }
  299. exit 0 # suppress errors
  300. endef
  301. define Package/ddns-scripts_godaddy.com-v1/prerm
  302. #!/bin/sh
  303. # if NOT run buildroot then stop service
  304. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  305. # remove services file entries
  306. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  307. /bin/sed -i '/godaddy\.com-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  308. exit 0 # suppress errors
  309. endef
  310. ###### *************************************************************************
  311. define Package/ddns-scripts_no-ip_com/preinst
  312. #!/bin/sh
  313. # if NOT run buildroot then stop service
  314. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  315. exit 0 # suppress errors
  316. endef
  317. define Package/ddns-scripts_no-ip_com/install
  318. $(INSTALL_DIR) $(1)/etc/uci-defaults
  319. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_no-ip_com
  320. $(INSTALL_DIR) $(1)/usr/lib/ddns
  321. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_no-ip_com.sh $(1)/usr/lib/ddns
  322. endef
  323. define Package/ddns-scripts_no-ip_com/postinst
  324. #!/bin/sh
  325. # remove old services file entries
  326. /bin/sed -i '/no-ip\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  327. # and create new
  328. printf "%s\\t%s\\n" '"no-ip.com"' '"update_no-ip_com.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  329. # on real system restart service if enabled
  330. [ -z "$${IPKG_INSTROOT}" ] && {
  331. [ -x /etc/uci-defaults/ddns_no-ip_com ] && \
  332. /etc/uci-defaults/ddns_no-ip_com && \
  333. rm -f /etc/uci-defaults/ddns_no-ip_com >/dev/null 2>&1
  334. /etc/init.d/ddns enabled && \
  335. /etc/init.d/ddns start >/dev/null 2>&1
  336. }
  337. exit 0 # suppress errors
  338. endef
  339. define Package/ddns-scripts_no-ip_com/prerm
  340. #!/bin/sh
  341. # if NOT run buildroot then stop service
  342. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  343. # remove services file entries
  344. /bin/sed -i '/no-ip\.com/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  345. exit 0 # suppress errors
  346. endef
  347. ###### *************************************************************************
  348. define Package/ddns-scripts_nsupdate/preinst
  349. #!/bin/sh
  350. # if NOT run buildroot then stop service
  351. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  352. exit 0 # suppress errors
  353. endef
  354. define Package/ddns-scripts_nsupdate/install
  355. $(INSTALL_DIR) $(1)/etc/uci-defaults
  356. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_nsupdate
  357. $(INSTALL_DIR) $(1)/usr/lib/ddns
  358. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_nsupdate.sh $(1)/usr/lib/ddns
  359. endef
  360. define Package/ddns-scripts_nsupdate/postinst
  361. #!/bin/sh
  362. # remove old services file entries
  363. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  364. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  365. # and create new
  366. printf "%s\\t%s\\n" '"bind-nsupdate"' '"update_nsupdate.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  367. printf "%s\\t%s\\n" '"bind-nsupdate"' '"update_nsupdate.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  368. # on real system restart service if enabled
  369. [ -z "$${IPKG_INSTROOT}" ] && {
  370. [ -x /etc/uci-defaults/ddns_nsupdate ] && \
  371. /etc/uci-defaults/ddns_nsupdate && \
  372. rm -f /etc/uci-defaults/ddns_nsupdate >/dev/null 2>&1
  373. /etc/init.d/ddns enabled && \
  374. /etc/init.d/ddns start >/dev/null 2>&1
  375. }
  376. exit 0 # suppress errors
  377. endef
  378. define Package/ddns-scripts_nsupdate/prerm
  379. #!/bin/sh
  380. # if NOT run buildroot then stop service
  381. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  382. # remove services file entries
  383. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  384. /bin/sed -i '/bind-nsupdate/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  385. exit 0 # suppress errors
  386. endef
  387. ###### *************************************************************************
  388. define Package/ddns-scripts_route53-v1/preinst
  389. #!/bin/sh
  390. # if NOT run buildroot then stop service
  391. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  392. exit 0 # suppress errors
  393. endef
  394. define Package/ddns-scripts_route53-v1/install
  395. $(INSTALL_DIR) $(1)/etc/uci-defaults
  396. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_route53-v1
  397. $(INSTALL_DIR) $(1)/usr/lib/ddns
  398. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_route53_v1.sh $(1)/usr/lib/ddns
  399. endef
  400. define Package/ddns-scripts_route53-v1/postinst
  401. #!/bin/sh
  402. # remove old services file entries
  403. /bin/sed -i '/route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  404. /bin/sed -i '/route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  405. # and create new
  406. printf "%s\\t%s\\n" '"route53-v1"' '"update_route53_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  407. printf "%s\\t%s\\n" '"route53-v1"' '"update_route53_v1.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  408. # on real system restart service if enabled
  409. [ -z "$${IPKG_INSTROOT}" ] && {
  410. [ -x /etc/uci-defaults/ddns_route53-v1 ] && \
  411. /etc/uci-defaults/ddns_route53-v1 && \
  412. rm -f /etc/uci-defaults/route53.com-v1 >/dev/null 2>&1
  413. /etc/init.d/ddns enabled \
  414. && /etc/init.d/ddns start >/dev/null 2>&1
  415. }
  416. exit 0 # suppress errors
  417. endef
  418. define Package/ddns-scripts_route53-v1/prerm
  419. #!/bin/sh
  420. # if NOT run buildroot then stop service
  421. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  422. # remove services file entries
  423. /bin/sed -i 'route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  424. /bin/sed -i 'route53-v1/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  425. exit 0 # suppress errors
  426. endef
  427. ###### *************************************************************************
  428. define Package/ddns-scripts_cnkuai_cn/preinst
  429. #!/bin/sh
  430. # if NOT run buildroot then stop service
  431. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  432. exit 0 # suppress errors
  433. endef
  434. define Package/ddns-scripts_cnkuai_cn/install
  435. $(INSTALL_DIR) $(1)/etc/uci-defaults
  436. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/ddns.defaults $(1)/etc/uci-defaults/ddns_cnkuai_cn
  437. $(INSTALL_DIR) $(1)/usr/lib/ddns
  438. $(INSTALL_BIN) $(PKG_BUILD_DIR)/files/update_cnkuai_cn.sh $(1)/usr/lib/ddns
  439. endef
  440. define Package/ddns-scripts_cnkuai_cn/postinst
  441. #!/bin/sh
  442. # remove old services file entries
  443. /bin/sed -i '/cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  444. /bin/sed -i '/cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  445. # and create new
  446. printf "%s\\t%s\\n" '"cnkuai.cn"' '"update_cnkuai_cn.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services
  447. printf "%s\\t%s\\n" '"cnkuai.cn"' '"update_cnkuai_cn.sh"' >> $${IPKG_INSTROOT}/etc/ddns/services_ipv6
  448. # on real system restart service if enabled
  449. [ -z "$${IPKG_INSTROOT}" ] && {
  450. [ -x /etc/uci-defaults/ddns_cnkuai_cn ] && \
  451. /etc/uci-defaults/ddns_cnkuai_cn && \
  452. rm -f /etc/uci-defaults/cnkuai.cn >/dev/null 2>&1
  453. /etc/init.d/ddns enabled \
  454. && /etc/init.d/ddns start >/dev/null 2>&1
  455. }
  456. exit 0 # suppress errors
  457. endef
  458. define Package/ddns-scripts_cnkuai_cn/prerm
  459. #!/bin/sh
  460. # if NOT run buildroot then stop service
  461. [ -z "$${IPKG_INSTROOT}" ] && /etc/init.d/ddns stop >/dev/null 2>&1
  462. # remove services file entries
  463. /bin/sed -i 'cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services >/dev/null 2>&1
  464. /bin/sed -i 'cnkuai.cn/d' $${IPKG_INSTROOT}/etc/ddns/services_ipv6 >/dev/null 2>&1
  465. exit 0 # suppress errors
  466. endef
  467. ###### *************************************************************************
  468. $(eval $(call BuildPackage,ddns-scripts))
  469. $(eval $(call BuildPackage,ddns-scripts_cloudflare.com-v4))
  470. $(eval $(call BuildPackage,ddns-scripts_freedns_42_pl))
  471. $(eval $(call BuildPackage,ddns-scripts_godaddy.com-v1))
  472. $(eval $(call BuildPackage,ddns-scripts_no-ip_com))
  473. $(eval $(call BuildPackage,ddns-scripts_nsupdate))
  474. $(eval $(call BuildPackage,ddns-scripts_route53-v1))
  475. $(eval $(call BuildPackage,ddns-scripts_cnkuai_cn))