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.

438 lines
11 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.2
  9. PKG_RELEASE:=4
  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. DEPENDS:=+ddns-scripts-services
  22. endef
  23. define Package/ddns-scripts/description
  24. Dynamic DNS Client scripts (with IPv6 support)
  25. A highly configurable set of scripts for doing dynamic dns updates.
  26. - IPv6 support
  27. - DNS server support
  28. - Glue Record support (require BIND host or KNOT host)
  29. - DNS requests via TCP
  30. - Proxy server support
  31. - log file support
  32. - support to run once
  33. Version: $(PKG_VERSION)-$(PKG_RELEASE)
  34. Info : https://openwrt.org/docs/guide-user/services/ddns/client
  35. endef
  36. define Package/ddns-scripts/conffiles
  37. /etc/config/ddns
  38. endef
  39. define Package/ddns-scripts-services
  40. $(call Package/ddns-scripts/Default)
  41. TITLE:=Common ddns providers
  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
  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/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
  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/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 Package/ddns-scripts-gandi
  133. $(call Package/ddns-scripts/Default)
  134. TITLE:=Gandi API
  135. DEPENDS:=ddns-scripts +curl
  136. endef
  137. define Package/ddns-scripts-gandi/description
  138. Dynamic DNS Client scripts extension for "gandi.net".
  139. It requires:
  140. "option username" to be a valid subdomain for gandi.net
  141. "option password" to be a valid API key for ganid.net
  142. endef
  143. define Build/Configure
  144. endef
  145. define Build/Compile
  146. endef
  147. define Package/ddns-scripts/install
  148. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  149. $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
  150. $(1)/etc/hotplug.d/iface/95-ddns
  151. $(INSTALL_DIR) $(1)/etc/init.d
  152. $(INSTALL_BIN) ./files/etc/init.d/ddns \
  153. $(1)/etc/init.d/ddns
  154. $(INSTALL_DIR) $(1)/etc/config
  155. $(INSTALL_CONF) ./files/etc/config/ddns \
  156. $(1)/etc/config/ddns
  157. $(INSTALL_DIR) $(1)/usr/share/ddns
  158. echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
  159. $(INSTALL_DIR) $(1)/usr/lib/ddns
  160. $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
  161. $(1)/usr/lib/ddns
  162. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
  163. $(1)/usr/lib/ddns
  164. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
  165. $(1)/usr/lib/ddns
  166. $(INSTALL_DIR) $(1)/usr/bin
  167. $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
  168. $(1)/usr/bin/ddns
  169. endef
  170. define Package/ddns-scripts/postinst
  171. #!/bin/sh
  172. if [ -z "$${IPKG_INSTROOT}" ]; then
  173. /etc/init.d/ddns enabled
  174. /etc/init.d/ddns start
  175. fi
  176. exit 0
  177. endef
  178. define Package/ddns-scripts/prerm
  179. #!/bin/sh
  180. if [ -n "$${IPKG_INSTROOT}" ]; then
  181. /etc/init.d/ddns stop
  182. /etc/init.d/ddns disable
  183. fi
  184. exit 0
  185. endef
  186. define Package/ddns-scripts-services/install
  187. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  188. $(INSTALL_DATA) ./files/usr/share/ddns/default/* \
  189. $(1)/usr/share/ddns/default
  190. # Remove special services
  191. rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
  192. rm $(1)/usr/share/ddns/default/freedns.42.pl.json
  193. rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
  194. rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
  195. rm $(1)/usr/share/ddns/default/no-ip.com.json
  196. rm $(1)/usr/share/ddns/default/bind-nsupdate.json
  197. rm $(1)/usr/share/ddns/default/route53-v1.json
  198. rm $(1)/usr/share/ddns/default/cnkuai.cn.json
  199. rm $(1)/usr/share/ddns/default/gandi.net.json
  200. endef
  201. define Package/ddns-scripts-cloudflare/install
  202. $(INSTALL_DIR) $(1)/usr/lib/ddns
  203. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
  204. $(1)/usr/lib/ddns
  205. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  206. $(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
  207. $(1)/usr/share/ddns/default/
  208. endef
  209. define Package/ddns-scripts-cloudflare/prerm
  210. #!/bin/sh
  211. if [ -z "$${IPKG_INSTROOT}" ]; then
  212. /etc/init.d/ddns stop
  213. fi
  214. exit 0
  215. endef
  216. define Package/ddns-scripts-freedns/install
  217. $(INSTALL_DIR) $(1)/usr/lib/ddns
  218. $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
  219. $(1)/usr/lib/ddns
  220. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  221. $(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
  222. $(1)/usr/share/ddns/default
  223. endef
  224. define Package/ddns-scripts-freedns/prerm
  225. #!/bin/sh
  226. if [ -z "$${IPKG_INSTROOT}" ]; then
  227. /etc/init.d/ddns stop
  228. fi
  229. exit 0
  230. endef
  231. define Package/ddns-scripts-godaddy/install
  232. $(INSTALL_DIR) $(1)/usr/lib/ddns
  233. $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
  234. $(1)/usr/lib/ddns
  235. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  236. $(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
  237. $(1)/usr/share/ddns/default
  238. endef
  239. define Package/ddns-scripts-godaddy/prerm
  240. #!/bin/sh
  241. if [ -z "$${IPKG_INSTROOT}" ]; then
  242. /etc/init.d/ddns stop
  243. fi
  244. exit 0
  245. endef
  246. define Package/ddns-scripts-digitalocean/install
  247. $(INSTALL_DIR) $(1)/usr/lib/ddns
  248. $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
  249. $(1)/usr/lib/ddns
  250. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  251. $(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
  252. $(1)/usr/share/ddns/default
  253. endef
  254. define Package/ddns-scripts-digitalocean/prerm
  255. #!/bin/sh
  256. if [ -z "$${IPKG_INSTROOT}" ]; then
  257. /etc/init.d/ddns stop
  258. fi
  259. exit 0
  260. endef
  261. define Package/ddns-scripts-noip/install
  262. $(INSTALL_DIR) $(1)/usr/lib/ddns
  263. $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
  264. $(1)/usr/lib/ddns
  265. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  266. $(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
  267. $(1)/usr/share/ddns/default
  268. endef
  269. define Package/ddns-scripts-noip/prerm
  270. #!/bin/sh
  271. if [ -z "$${IPKG_INSTROOT}" ]; then
  272. /etc/init.d/ddns stop
  273. fi
  274. exit 0
  275. endef
  276. define Package/ddns-scripts-nsupdate/install
  277. $(INSTALL_DIR) $(1)/usr/lib/ddns
  278. $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
  279. $(1)/usr/lib/ddns
  280. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  281. $(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
  282. $(1)/usr/share/ddns/default
  283. endef
  284. define Package/ddns-scripts-nsupdate/prerm
  285. #!/bin/sh
  286. if [ -z "$${IPKG_INSTROOT}" ]; then
  287. /etc/init.d/ddns stop
  288. fi
  289. exit 0
  290. endef
  291. define Package/ddns-scripts-route53/install
  292. $(INSTALL_DIR) $(1)/usr/lib/ddns
  293. $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
  294. $(1)/usr/lib/ddns
  295. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  296. $(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
  297. $(1)/usr/share/ddns/default
  298. endef
  299. define Package/ddns-scripts-route53/prerm
  300. #!/bin/sh
  301. if [ -z "$${IPKG_INSTROOT}" ]; then
  302. /etc/init.d/ddns stop
  303. fi
  304. exit 0
  305. endef
  306. define Package/ddns-scripts-cnkuai/install
  307. $(INSTALL_DIR) $(1)/usr/lib/ddns
  308. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
  309. $(1)/usr/lib/ddns
  310. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  311. $(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
  312. $(1)/usr/share/ddns/default
  313. endef
  314. define Package/ddns-scripts-cnkuai/prerm
  315. #!/bin/sh
  316. if [ -z "$${IPKG_INSTROOT}" ]; then
  317. /etc/init.d/ddns stop
  318. fi
  319. exit 0
  320. endef
  321. define Package/ddns-scripts-gandi/install
  322. $(INSTALL_DIR) $(1)/usr/lib/ddns
  323. $(INSTALL_BIN) ./files/usr/lib/ddns/update_gandi_net.sh \
  324. $(1)/usr/lib/ddns
  325. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  326. $(INSTALL_DATA) ./files/usr/share/ddns/default/gandi.net.json \
  327. $(1)/usr/share/ddns/default
  328. endef
  329. define Package/ddns-scripts-gandi/prerm
  330. #!/bin/sh
  331. if [ -z "$${IPKG_INSTROOT}" ]; then
  332. /etc/init.d/ddns stop
  333. fi
  334. exit 0
  335. endef
  336. $(eval $(call BuildPackage,ddns-scripts))
  337. $(eval $(call BuildPackage,ddns-scripts-services))
  338. $(eval $(call BuildPackage,ddns-scripts-cloudflare))
  339. $(eval $(call BuildPackage,ddns-scripts-freedns))
  340. $(eval $(call BuildPackage,ddns-scripts-godaddy))
  341. $(eval $(call BuildPackage,ddns-scripts-digitalocean))
  342. $(eval $(call BuildPackage,ddns-scripts-noip))
  343. $(eval $(call BuildPackage,ddns-scripts-nsupdate))
  344. $(eval $(call BuildPackage,ddns-scripts-route53))
  345. $(eval $(call BuildPackage,ddns-scripts-cnkuai))
  346. $(eval $(call BuildPackage,ddns-scripts-gandi))