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.

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