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.

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