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.

545 lines
14 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:=19
  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-dnspod
  86. $(call Package/ddns-scripts/Default)
  87. TITLE:=Extension for dnspod.cn API
  88. DEPENDS:=ddns-scripts +curl
  89. endef
  90. define Package/ddns-scripts-dnspod/description
  91. Dynamic DNS Client scripts extension for dnspod.cn API (require curl)
  92. endef
  93. define Package/ddns-scripts-noip
  94. $(call Package/ddns-scripts/Default)
  95. TITLE:=Extension for no-ip.com
  96. DEPENDS:=ddns-scripts
  97. endef
  98. define Package/ddns-scripts-noip/description
  99. Dynamic DNS Client scripts extension for "no-ip.com".
  100. endef
  101. define Package/ddns-scripts-nsupdate
  102. $(call Package/ddns-scripts/Default)
  103. TITLE:=Extension for using bind nsupdate.
  104. DEPENDS:=ddns-scripts +bind-client
  105. endef
  106. define Package/ddns-scripts-nsupdate/description
  107. Dynamic DNS Client scripts extension for direct updates using bind nsupdate
  108. The script directly updates a PowerDNS (or maybe bind server) via nsupdate
  109. from bind-client package.
  110. It requires:
  111. "option dns_server" to be set to the server to be used by nsupdate.
  112. "option username" should be set to the key name and
  113. "option password" to the base64 encoded shared secret.
  114. endef
  115. define Package/ddns-scripts-route53
  116. $(call Package/ddns-scripts/Default)
  117. TITLE:=Extension for route53 API v1
  118. DEPENDS:=ddns-scripts +curl +openssl-util
  119. endef
  120. define Package/ddns-scripts-route53/description
  121. Dynamic DNS Client scripts extension for Amazon AWS "route53 API v1".
  122. Note: You must also install ca-certificate or ca-bundle.
  123. It requires:
  124. "option username" to be a valid AWS access key id
  125. "option password" to be the matching AWS secret key id
  126. "option domain" to contain the hosted zone ID
  127. endef
  128. define Package/ddns-scripts-cnkuai
  129. $(call Package/ddns-scripts/Default)
  130. TITLE:=CnKuai API
  131. DEPENDS:=ddns-scripts +curl +giflib-utils
  132. endef
  133. define Package/ddns-scripts-cnkuai/description
  134. Dynamic DNS Client scripts extension for "cnkuai.cn".
  135. It requires:
  136. "option username" to be a valid CnKuai control panel id
  137. "option password" to be the matching CnKuai control panel password
  138. "option domain" to contain the domain
  139. endef
  140. define Package/ddns-scripts-gandi
  141. $(call Package/ddns-scripts/Default)
  142. TITLE:=Gandi API
  143. DEPENDS:=ddns-scripts +curl
  144. endef
  145. define Package/ddns-scripts-gandi/description
  146. Dynamic DNS Client scripts extension for "gandi.net".
  147. It requires:
  148. "option username" to be a valid subdomain for gandi.net
  149. "option password" to be a valid API key for ganid.net
  150. endef
  151. define Package/ddns-scripts-pdns
  152. $(call Package/ddns-scripts/Default)
  153. TITLE:=PowerDNS API
  154. DEPENDS:=ddns-scripts +curl
  155. endef
  156. define Package/ddns-scripts-pdns/description
  157. Dynamic DNS Client scripts extension for "PowerDNS" via API.
  158. It requires:
  159. "option param_opt(Optional Parameter)" to be a valid root URL for the PowerDNS webserver
  160. "option username" to be a valid subdomain for the PowerDNS domain
  161. "option password" to be a valid API key for the PowerDNS webserver
  162. endef
  163. define Package/ddns-scripts-transip
  164. $(call Package/ddns-scripts/Default)
  165. TITLE:=Extension for TransIP API
  166. DEPENDS:=ddns-scripts +curl +openssl-util +!BUSYBOX_CONFIG_MKTEMP:coreutils-mktemp
  167. endef
  168. define Package/ddns-scripts-transip/description
  169. Dynamic DNS Client scripts extension for "transip.nl".
  170. Note: You must also install ca-certificate or ca-bundle.
  171. It requires:
  172. "option username" to be a valid username for transip.nl
  173. "option password" to be a valid matching private key
  174. "option domain" to contain the base domain
  175. "option param_enc" to contain the name of the DNS record to update
  176. "option param_opt" to contain the TTL of the DNS record to update
  177. endef
  178. define Build/Configure
  179. endef
  180. define Build/Compile
  181. endef
  182. define Package/ddns-scripts/install
  183. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  184. $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
  185. $(1)/etc/hotplug.d/iface/95-ddns
  186. $(INSTALL_DIR) $(1)/etc/init.d
  187. $(INSTALL_BIN) ./files/etc/init.d/ddns \
  188. $(1)/etc/init.d/ddns
  189. $(INSTALL_DIR) $(1)/etc/config
  190. $(INSTALL_CONF) ./files/etc/config/ddns \
  191. $(1)/etc/config/ddns
  192. $(INSTALL_DIR) $(1)/usr/share/ddns
  193. echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
  194. $(INSTALL_DIR) $(1)/usr/lib/ddns
  195. $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
  196. $(1)/usr/lib/ddns
  197. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
  198. $(1)/usr/lib/ddns
  199. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
  200. $(1)/usr/lib/ddns
  201. $(INSTALL_DIR) $(1)/usr/bin
  202. $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
  203. $(1)/usr/bin/ddns
  204. endef
  205. define Package/ddns-scripts/postinst
  206. #!/bin/sh
  207. if [ -z "$${IPKG_INSTROOT}" ]; then
  208. /etc/init.d/ddns enabled
  209. /etc/init.d/ddns start
  210. fi
  211. exit 0
  212. endef
  213. define Package/ddns-scripts/prerm
  214. #!/bin/sh
  215. if [ -n "$${IPKG_INSTROOT}" ]; then
  216. /etc/init.d/ddns stop
  217. /etc/init.d/ddns disable
  218. fi
  219. exit 0
  220. endef
  221. define Package/ddns-scripts-services/install
  222. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  223. $(INSTALL_DATA) ./files/usr/share/ddns/default/* \
  224. $(1)/usr/share/ddns/default
  225. # Remove special services
  226. rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
  227. rm $(1)/usr/share/ddns/default/freedns.42.pl.json
  228. rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
  229. rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
  230. rm $(1)/usr/share/ddns/default/dnspod.cn.json
  231. rm $(1)/usr/share/ddns/default/no-ip.com.json
  232. rm $(1)/usr/share/ddns/default/bind-nsupdate.json
  233. rm $(1)/usr/share/ddns/default/route53-v1.json
  234. rm $(1)/usr/share/ddns/default/cnkuai.cn.json
  235. rm $(1)/usr/share/ddns/default/gandi.net.json
  236. rm $(1)/usr/share/ddns/default/pdns.json
  237. rm $(1)/usr/share/ddns/default/transip.nl.json
  238. endef
  239. define Package/ddns-scripts-cloudflare/install
  240. $(INSTALL_DIR) $(1)/usr/lib/ddns
  241. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
  242. $(1)/usr/lib/ddns
  243. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  244. $(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
  245. $(1)/usr/share/ddns/default/
  246. endef
  247. define Package/ddns-scripts-cloudflare/prerm
  248. #!/bin/sh
  249. if [ -z "$${IPKG_INSTROOT}" ]; then
  250. /etc/init.d/ddns stop
  251. fi
  252. exit 0
  253. endef
  254. define Package/ddns-scripts-freedns/install
  255. $(INSTALL_DIR) $(1)/usr/lib/ddns
  256. $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
  257. $(1)/usr/lib/ddns
  258. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  259. $(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
  260. $(1)/usr/share/ddns/default
  261. endef
  262. define Package/ddns-scripts-freedns/prerm
  263. #!/bin/sh
  264. if [ -z "$${IPKG_INSTROOT}" ]; then
  265. /etc/init.d/ddns stop
  266. fi
  267. exit 0
  268. endef
  269. define Package/ddns-scripts-godaddy/install
  270. $(INSTALL_DIR) $(1)/usr/lib/ddns
  271. $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
  272. $(1)/usr/lib/ddns
  273. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  274. $(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
  275. $(1)/usr/share/ddns/default
  276. endef
  277. define Package/ddns-scripts-godaddy/prerm
  278. #!/bin/sh
  279. if [ -z "$${IPKG_INSTROOT}" ]; then
  280. /etc/init.d/ddns stop
  281. fi
  282. exit 0
  283. endef
  284. define Package/ddns-scripts-digitalocean/install
  285. $(INSTALL_DIR) $(1)/usr/lib/ddns
  286. $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
  287. $(1)/usr/lib/ddns
  288. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  289. $(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
  290. $(1)/usr/share/ddns/default
  291. endef
  292. define Package/ddns-scripts-digitalocean/prerm
  293. #!/bin/sh
  294. if [ -z "$${IPKG_INSTROOT}" ]; then
  295. /etc/init.d/ddns stop
  296. fi
  297. exit 0
  298. endef
  299. define Package/ddns-scripts-dnspod/install
  300. $(INSTALL_DIR) $(1)/usr/lib/ddns
  301. $(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn.sh \
  302. $(1)/usr/lib/ddns
  303. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  304. $(INSTALL_DATA) ./files/usr/share/ddns/default/dnspod.cn.json \
  305. $(1)/usr/share/ddns/default/
  306. endef
  307. define Package/ddns-scripts-dnspod/prerm
  308. #!/bin/sh
  309. if [ -z "$${IPKG_INSTROOT}" ]; then
  310. /etc/init.d/ddns stop
  311. fi
  312. exit 0
  313. endef
  314. define Package/ddns-scripts-noip/install
  315. $(INSTALL_DIR) $(1)/usr/lib/ddns
  316. $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
  317. $(1)/usr/lib/ddns
  318. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  319. $(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
  320. $(1)/usr/share/ddns/default
  321. endef
  322. define Package/ddns-scripts-noip/prerm
  323. #!/bin/sh
  324. if [ -z "$${IPKG_INSTROOT}" ]; then
  325. /etc/init.d/ddns stop
  326. fi
  327. exit 0
  328. endef
  329. define Package/ddns-scripts-nsupdate/install
  330. $(INSTALL_DIR) $(1)/usr/lib/ddns
  331. $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
  332. $(1)/usr/lib/ddns
  333. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  334. $(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
  335. $(1)/usr/share/ddns/default
  336. endef
  337. define Package/ddns-scripts-nsupdate/prerm
  338. #!/bin/sh
  339. if [ -z "$${IPKG_INSTROOT}" ]; then
  340. /etc/init.d/ddns stop
  341. fi
  342. exit 0
  343. endef
  344. define Package/ddns-scripts-route53/install
  345. $(INSTALL_DIR) $(1)/usr/lib/ddns
  346. $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
  347. $(1)/usr/lib/ddns
  348. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  349. $(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
  350. $(1)/usr/share/ddns/default
  351. endef
  352. define Package/ddns-scripts-route53/prerm
  353. #!/bin/sh
  354. if [ -z "$${IPKG_INSTROOT}" ]; then
  355. /etc/init.d/ddns stop
  356. fi
  357. exit 0
  358. endef
  359. define Package/ddns-scripts-cnkuai/install
  360. $(INSTALL_DIR) $(1)/usr/lib/ddns
  361. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
  362. $(1)/usr/lib/ddns
  363. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  364. $(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
  365. $(1)/usr/share/ddns/default
  366. endef
  367. define Package/ddns-scripts-cnkuai/prerm
  368. #!/bin/sh
  369. if [ -z "$${IPKG_INSTROOT}" ]; then
  370. /etc/init.d/ddns stop
  371. fi
  372. exit 0
  373. endef
  374. define Package/ddns-scripts-gandi/install
  375. $(INSTALL_DIR) $(1)/usr/lib/ddns
  376. $(INSTALL_BIN) ./files/usr/lib/ddns/update_gandi_net.sh \
  377. $(1)/usr/lib/ddns
  378. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  379. $(INSTALL_DATA) ./files/usr/share/ddns/default/gandi.net.json \
  380. $(1)/usr/share/ddns/default
  381. endef
  382. define Package/ddns-scripts-gandi/prerm
  383. #!/bin/sh
  384. if [ -z "$${IPKG_INSTROOT}" ]; then
  385. /etc/init.d/ddns stop
  386. fi
  387. exit 0
  388. endef
  389. define Package/ddns-scripts-pdns/install
  390. $(INSTALL_DIR) $(1)/usr/lib/ddns
  391. $(INSTALL_BIN) ./files/usr/lib/ddns/update_pdns.sh \
  392. $(1)/usr/lib/ddns
  393. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  394. $(INSTALL_DATA) ./files/usr/share/ddns/default/pdns.json \
  395. $(1)/usr/share/ddns/default
  396. endef
  397. define Package/ddns-scripts-pdns/prerm
  398. #!/bin/sh
  399. if [ -z "$${IPKG_INSTROOT}" ]; then
  400. /etc/init.d/ddns stop
  401. fi
  402. exit 0
  403. endef
  404. define Package/ddns-scripts-transip/install
  405. $(INSTALL_DIR) $(1)/usr/lib/ddns
  406. $(INSTALL_BIN) ./files/usr/lib/ddns/update_transip_nl.sh \
  407. $(1)/usr/lib/ddns
  408. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  409. $(INSTALL_DATA) ./files/usr/share/ddns/default/transip.nl.json \
  410. $(1)/usr/share/ddns/default
  411. endef
  412. define Package/ddns-scripts-transip/prerm
  413. #!/bin/sh
  414. if [ -z "$${IPKG_INSTROOT}" ]; then
  415. /etc/init.d/ddns stop
  416. fi
  417. exit 0
  418. endef
  419. $(eval $(call BuildPackage,ddns-scripts))
  420. $(eval $(call BuildPackage,ddns-scripts-services))
  421. $(eval $(call BuildPackage,ddns-scripts-cloudflare))
  422. $(eval $(call BuildPackage,ddns-scripts-freedns))
  423. $(eval $(call BuildPackage,ddns-scripts-godaddy))
  424. $(eval $(call BuildPackage,ddns-scripts-digitalocean))
  425. $(eval $(call BuildPackage,ddns-scripts-dnspod))
  426. $(eval $(call BuildPackage,ddns-scripts-noip))
  427. $(eval $(call BuildPackage,ddns-scripts-nsupdate))
  428. $(eval $(call BuildPackage,ddns-scripts-route53))
  429. $(eval $(call BuildPackage,ddns-scripts-cnkuai))
  430. $(eval $(call BuildPackage,ddns-scripts-gandi))
  431. $(eval $(call BuildPackage,ddns-scripts-pdns))
  432. $(eval $(call BuildPackage,ddns-scripts-transip))