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.

395 lines
10 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
  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. PKG_VERSION:=2.8.0
  9. PKG_RELEASE:=24
  10. PKG_LICENSE:=GPL-2.0
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/ddns-scripts/Default
  13. SECTION:=net
  14. CATEGORY:=Network
  15. SUBMENU:=IP Addresses and Names
  16. PKGARCH:=all
  17. endef
  18. define Package/ddns-scripts
  19. $(call Package/ddns-scripts/Default)
  20. TITLE:=Dynamic DNS Client scripts (with IPv6 support)
  21. endef
  22. define Package/ddns-scripts/description
  23. Dynamic DNS Client scripts (with IPv6 support)
  24. A highly configurable set of scripts for doing dynamic dns updates.
  25. - IPv6 support
  26. - DNS server support
  27. - Glue Record support (require BIND host or KNOT host)
  28. - DNS requests via TCP
  29. - Proxy server support
  30. - log file support
  31. - support to run once
  32. Version: $(PKG_VERSION)-$(PKG_RELEASE)
  33. Info : https://openwrt.org/docs/guide-user/services/ddns/client
  34. endef
  35. define Package/ddns-scripts/conffiles
  36. /etc/config/ddns
  37. endef
  38. define Package/ddns-scripts-services
  39. $(call Package/ddns-scripts/Default)
  40. TITLE:=Common ddns providers
  41. DEPENDS:=ddns-scripts
  42. endef
  43. define Package/ddns-scripts-services/description
  44. Dynamic DNS Client definitions for supported services
  45. endef
  46. define Package/ddns-scripts-cloudflare
  47. $(call Package/ddns-scripts/Default)
  48. TITLE:=Extension for cloudflare.com API v4
  49. DEPENDS:=ddns-scripts +curl
  50. endef
  51. define Package/ddns-scripts-cloudflare/description
  52. Dynamic DNS Client scripts extension for cloudflare.com API v4 (require curl)
  53. endef
  54. define Package/ddns-scripts-freedns
  55. $(call Package/ddns-scripts/Default)
  56. TITLE:=Extension for freedns.42.pl
  57. DEPENDS:=ddns-scripts +curl
  58. endef
  59. define Package/ddns-scripts-freedns/description
  60. Dynamic DNS Client scripts extension for "freedns.42.pl".
  61. endef
  62. define Package/ddns-scripts-godaddy
  63. $(call Package/ddns-scripts/Default)
  64. TITLE:=Extension for godaddy.com API v1
  65. DEPENDS:=ddns-scripts +curl
  66. endef
  67. define Package/ddns-scripts-godaddy/description
  68. Dynamic DNS Client scripts extension for "godaddy.com API v1".
  69. endef
  70. define Package/ddns-scripts-digitalocean
  71. $(call Package/ddns-scripts/Default)
  72. TITLE:=Extention for digitalocean.com API v2
  73. DEPENDS:=ddns-scripts +curl
  74. endef
  75. define Package/ddns-scripts-digitalocean/description
  76. Dynamic DNS Client scripts extension for "digitalocean.com API v2".
  77. The script directly updates a DNS record using the DO API.
  78. It requires:
  79. "option dns_server" to be set to the server to be used by nsupdate.
  80. "option domain" the dns domain to update the record for (eg. A-record: home.<example.com>)
  81. "option username" the dns record name to update (eg. A-record: <home>.example.com)
  82. "option param_opt" the id of the dns record to update (check using chrome inspector in the DO dns tab)
  83. "option password" the api token generated in the DO panel
  84. endef
  85. define Package/ddns-scripts-noip
  86. $(call Package/ddns-scripts/Default)
  87. TITLE:=Extension for no-ip.com
  88. DEPENDS:=ddns-scripts
  89. endef
  90. define Package/ddns-scripts-noip/description
  91. Dynamic DNS Client scripts extension for "no-ip.com".
  92. endef
  93. define Package/ddns-scripts-nsupdate
  94. $(call Package/ddns-scripts/Default)
  95. TITLE:=Extension for using bind nsupdate.
  96. DEPENDS:=ddns-scripts +bind-client
  97. endef
  98. define Package/ddns-scripts-nsupdate/description
  99. Dynamic DNS Client scripts extension for direct updates using bind nsupdate
  100. The script directly updates a PowerDNS (or maybe bind server) via nsupdate
  101. from bind-client package.
  102. It requires:
  103. "option dns_server" to be set to the server to be used by nsupdate.
  104. "option username" should be set to the key name and
  105. "option password" to the base64 encoded shared secret.
  106. endef
  107. define Package/ddns-scripts_route53-v1
  108. $(call Package/ddns-scripts/Default)
  109. TITLE:=Extension for route53 API v1
  110. DEPENDS:=ddns-scripts +curl +openssl-util
  111. endef
  112. define Package/ddns-scripts_route53-v1/description
  113. Dynamic DNS Client scripts extension for Amazon AWS "route53 API v1".
  114. Note: You must also install ca-certificate or ca-bundle.
  115. It requires:
  116. "option username" to be a valid AWS access key id
  117. "option password" to be the matching AWS secret key id
  118. "option domain" to contain the hosted zone ID
  119. endef
  120. define Package/ddns-scripts_cnkuai_cn
  121. $(call Package/ddns-scripts/Default)
  122. TITLE:=CnKuai API
  123. DEPENDS:=ddns-scripts +curl +giflib-utils
  124. endef
  125. define Package/ddns-scripts_cnkuai_cn/description
  126. Dynamic DNS Client scripts extension for "cnkuai.cn".
  127. It requires:
  128. "option username" to be a valid CnKuai control panel id
  129. "option password" to be the matching CnKuai control panel password
  130. "option domain" to contain the domain
  131. endef
  132. define Build/Configure
  133. endef
  134. define Build/Compile
  135. endef
  136. define Package/ddns-scripts/install
  137. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  138. $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
  139. $(1)/etc/hotplug.d/iface/95-ddns
  140. $(INSTALL_DIR) $(1)/etc/init.d
  141. $(INSTALL_BIN) ./files/etc/init.d/ddns \
  142. $(1)/etc/init.d/ddns
  143. $(INSTALL_DIR) $(1)/etc/config
  144. $(INSTALL_CONF) ./files/etc/config/ddns \
  145. $(1)/etc/config/ddns
  146. $(INSTALL_DIR) $(1)/usr/share/ddns
  147. echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
  148. $(INSTALL_DATA) ./files/usr/share/ddns/list \
  149. $(1)/usr/share/ddns
  150. $(INSTALL_DIR) $(1)/usr/lib/ddns
  151. $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
  152. $(1)/usr/lib/ddns
  153. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
  154. $(1)/usr/lib/ddns
  155. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
  156. $(1)/usr/lib/ddns
  157. $(INSTALL_DIR) $(1)/usr/bin
  158. $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
  159. $(1)/usr/bin/ddns
  160. endef
  161. define Package/ddns-scripts/postinst
  162. #!/bin/sh
  163. if [ -z "$${IPKG_INSTROOT}" ]; then
  164. /etc/init.d/ddns enabled
  165. /etc/init.d/ddns start
  166. fi
  167. exit 0
  168. endef
  169. define Package/ddns-scripts/prerm
  170. #!/bin/sh
  171. if [ -n "$${IPKG_INSTROOT}" ]; then
  172. /etc/init.d/ddns stop
  173. /etc/init.d/ddns disable
  174. fi
  175. exit 0
  176. endef
  177. define Package/ddns-scripts-services/install
  178. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  179. $(INSTALL_DATA) ./files/usr/share/ddns/services/* \
  180. $(1)/usr/share/ddns/services
  181. endef
  182. define Package/ddns-scripts-cloudflare/install
  183. $(INSTALL_DIR) $(1)/usr/lib/ddns
  184. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
  185. $(1)/usr/lib/ddns
  186. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  187. $(INSTALL_DATA) ./files/usr/share/ddns/services/cloudflare.com-v4.json \
  188. $(1)/usr/share/ddns/services/
  189. endef
  190. define Package/ddns-scripts-cloudflare/prerm
  191. #!/bin/sh
  192. if [ -z "$${IPKG_INSTROOT}" ]; then
  193. /etc/init.d/ddns stop
  194. fi
  195. exit 0
  196. endef
  197. define Package/ddns-scripts-freedns/install
  198. $(INSTALL_DIR) $(1)/usr/lib/ddns
  199. $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
  200. $(1)/usr/lib/ddns
  201. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  202. $(INSTALL_DATA) ./files/usr/share/ddns/services/freedns.42.pl.json \
  203. $(1)/usr/share/ddns/services
  204. endef
  205. define Package/ddns-scripts-freedns/prerm
  206. #!/bin/sh
  207. if [ -z "$${IPKG_INSTROOT}" ]; then
  208. /etc/init.d/ddns stop
  209. fi
  210. exit 0
  211. endef
  212. define Package/ddns-scripts-godaddy/install
  213. $(INSTALL_DIR) $(1)/usr/lib/ddns
  214. $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
  215. $(1)/usr/lib/ddns
  216. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  217. $(INSTALL_DATA) ./files/usr/share/ddns/services/godaddy.com-v1.json \
  218. $(1)/usr/share/ddns/services
  219. endef
  220. define Package/ddns-scripts-godaddy/prerm
  221. #!/bin/sh
  222. if [ -z "$${IPKG_INSTROOT}" ]; then
  223. /etc/init.d/ddns stop
  224. fi
  225. exit 0
  226. endef
  227. define Package/ddns-scripts-digitalocean/install
  228. $(INSTALL_DIR) $(1)/usr/lib/ddns
  229. $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
  230. $(1)/usr/lib/ddns
  231. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  232. $(INSTALL_DATA) ./files/usr/share/ddns/services/digitalocean.com-v2.json \
  233. $(1)/usr/share/ddns/services
  234. endef
  235. define Package/ddns-scripts-digitalocean/prerm
  236. #!/bin/sh
  237. if [ -z "$${IPKG_INSTROOT}" ]; then
  238. /etc/init.d/ddns stop
  239. fi
  240. exit 0
  241. endef
  242. define Package/ddns-scripts-noip/install
  243. $(INSTALL_DIR) $(1)/usr/lib/ddns
  244. $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
  245. $(1)/usr/lib/ddns
  246. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  247. $(INSTALL_DATA) ./files/usr/share/ddns/services/no-ip.com.json \
  248. $(1)/usr/share/ddns/services
  249. endef
  250. define Package/ddns-scripts-noip/prerm
  251. #!/bin/sh
  252. if [ -z "$${IPKG_INSTROOT}" ]; then
  253. /etc/init.d/ddns stop
  254. fi
  255. exit 0
  256. endef
  257. define Package/ddns-scripts-nsupdate/install
  258. $(INSTALL_DIR) $(1)/usr/lib/ddns
  259. $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
  260. $(1)/usr/lib/ddns
  261. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  262. $(INSTALL_DATA) ./files/usr/share/ddns/services/bind-nsupdate.json \
  263. $(1)/usr/share/ddns/services
  264. endef
  265. define Package/ddns-scripts-nsupdate/prerm
  266. #!/bin/sh
  267. if [ -z "$${IPKG_INSTROOT}" ]; then
  268. /etc/init.d/ddns stop
  269. fi
  270. exit 0
  271. endef
  272. define Package/ddns-scripts_route53-v1/install
  273. $(INSTALL_DIR) $(1)/usr/lib/ddns
  274. $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
  275. $(1)/usr/lib/ddns
  276. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  277. $(INSTALL_DATA) ./files/usr/share/ddns/services/route53-v1.json \
  278. $(1)/usr/share/ddns/services
  279. endef
  280. define Package/ddns-scripts_route53-v1/prerm
  281. #!/bin/sh
  282. if [ -z "$${IPKG_INSTROOT}" ]; then
  283. /etc/init.d/ddns stop
  284. fi
  285. exit 0
  286. endef
  287. define Package/ddns-scripts_cnkuai_cn/install
  288. $(INSTALL_DIR) $(1)/usr/lib/ddns
  289. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
  290. $(1)/usr/lib/ddns
  291. $(INSTALL_DIR) $(1)/usr/share/ddns/services
  292. $(INSTALL_DATA) ./files/usr/share/ddns/services/cnkuai.cn.json \
  293. $(1)/usr/share/ddns/services
  294. endef
  295. define Package/ddns-scripts_cnkuai_cn/prerm
  296. #!/bin/sh
  297. if [ -z "$${IPKG_INSTROOT}" ]; then
  298. /etc/init.d/ddns stop
  299. fi
  300. exit 0
  301. endef
  302. $(eval $(call BuildPackage,ddns-scripts))
  303. $(eval $(call BuildPackage,ddns-scripts-services))
  304. $(eval $(call BuildPackage,ddns-scripts-cloudflare))
  305. $(eval $(call BuildPackage,ddns-scripts-freedns))
  306. $(eval $(call BuildPackage,ddns-scripts-godaddy))
  307. $(eval $(call BuildPackage,ddns-scripts-digitalocean))
  308. $(eval $(call BuildPackage,ddns-scripts-noip))
  309. $(eval $(call BuildPackage,ddns-scripts-nsupdate))
  310. $(eval $(call BuildPackage,ddns-scripts_route53-v1))
  311. $(eval $(call BuildPackage,ddns-scripts_cnkuai_cn))