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.

614 lines
16 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:=25
  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 gandi.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 Package/ddns-scripts-one
  190. $(call Package/ddns-scripts/Default)
  191. TITLE:=Extension for one.com Control Panel
  192. DEPENDS:=ddns-scripts +curl
  193. endef
  194. define Package/ddns-scrtips-one/description
  195. Dynamic DNS Client scripts extension for "one.com".
  196. It requires:
  197. "option username" to be a valid Email for one.com Control Panel
  198. "option password" to be the matching one.com Control Panel password
  199. "option domain" to contain the domain / subdomain
  200. endef
  201. define Build/Configure
  202. endef
  203. define Build/Compile
  204. endef
  205. define Package/ddns-scripts/install
  206. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  207. $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
  208. $(1)/etc/hotplug.d/iface/95-ddns
  209. $(INSTALL_DIR) $(1)/etc/init.d
  210. $(INSTALL_BIN) ./files/etc/init.d/ddns \
  211. $(1)/etc/init.d/ddns
  212. $(INSTALL_DIR) $(1)/etc/config
  213. $(INSTALL_CONF) ./files/etc/config/ddns \
  214. $(1)/etc/config/ddns
  215. $(INSTALL_DIR) $(1)/usr/share/ddns
  216. echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
  217. $(INSTALL_DIR) $(1)/usr/lib/ddns
  218. $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
  219. $(1)/usr/lib/ddns
  220. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
  221. $(1)/usr/lib/ddns
  222. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
  223. $(1)/usr/lib/ddns
  224. $(INSTALL_DIR) $(1)/usr/bin
  225. $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
  226. $(1)/usr/bin/ddns
  227. endef
  228. define Package/ddns-scripts/postinst
  229. #!/bin/sh
  230. if [ -z "$${IPKG_INSTROOT}" ]; then
  231. /etc/init.d/ddns enabled
  232. /etc/init.d/ddns start
  233. fi
  234. exit 0
  235. endef
  236. define Package/ddns-scripts/prerm
  237. #!/bin/sh
  238. if [ -n "$${IPKG_INSTROOT}" ]; then
  239. /etc/init.d/ddns stop
  240. /etc/init.d/ddns disable
  241. fi
  242. exit 0
  243. endef
  244. define Package/ddns-scripts-services/install
  245. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  246. $(INSTALL_DATA) ./files/usr/share/ddns/default/* \
  247. $(1)/usr/share/ddns/default
  248. # Remove special services
  249. rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
  250. rm $(1)/usr/share/ddns/default/freedns.42.pl.json
  251. rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
  252. rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
  253. rm $(1)/usr/share/ddns/default/dnspod.cn.json
  254. rm $(1)/usr/share/ddns/default/no-ip.com.json
  255. rm $(1)/usr/share/ddns/default/bind-nsupdate.json
  256. rm $(1)/usr/share/ddns/default/route53-v1.json
  257. rm $(1)/usr/share/ddns/default/cnkuai.cn.json
  258. rm $(1)/usr/share/ddns/default/gandi.net.json
  259. rm $(1)/usr/share/ddns/default/pdns.json
  260. rm $(1)/usr/share/ddns/default/transip.nl.json
  261. rm $(1)/usr/share/ddns/default/ns1.com.json
  262. rm $(1)/usr/share/ddns/default/one.com.json
  263. endef
  264. define Package/ddns-scripts-cloudflare/install
  265. $(INSTALL_DIR) $(1)/usr/lib/ddns
  266. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
  267. $(1)/usr/lib/ddns
  268. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  269. $(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
  270. $(1)/usr/share/ddns/default/
  271. endef
  272. define Package/ddns-scripts-cloudflare/prerm
  273. #!/bin/sh
  274. if [ -z "$${IPKG_INSTROOT}" ]; then
  275. /etc/init.d/ddns stop
  276. fi
  277. exit 0
  278. endef
  279. define Package/ddns-scripts-freedns/install
  280. $(INSTALL_DIR) $(1)/usr/lib/ddns
  281. $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
  282. $(1)/usr/lib/ddns
  283. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  284. $(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
  285. $(1)/usr/share/ddns/default
  286. endef
  287. define Package/ddns-scripts-freedns/prerm
  288. #!/bin/sh
  289. if [ -z "$${IPKG_INSTROOT}" ]; then
  290. /etc/init.d/ddns stop
  291. fi
  292. exit 0
  293. endef
  294. define Package/ddns-scripts-godaddy/install
  295. $(INSTALL_DIR) $(1)/usr/lib/ddns
  296. $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
  297. $(1)/usr/lib/ddns
  298. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  299. $(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
  300. $(1)/usr/share/ddns/default
  301. endef
  302. define Package/ddns-scripts-godaddy/prerm
  303. #!/bin/sh
  304. if [ -z "$${IPKG_INSTROOT}" ]; then
  305. /etc/init.d/ddns stop
  306. fi
  307. exit 0
  308. endef
  309. define Package/ddns-scripts-digitalocean/install
  310. $(INSTALL_DIR) $(1)/usr/lib/ddns
  311. $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
  312. $(1)/usr/lib/ddns
  313. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  314. $(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
  315. $(1)/usr/share/ddns/default
  316. endef
  317. define Package/ddns-scripts-digitalocean/prerm
  318. #!/bin/sh
  319. if [ -z "$${IPKG_INSTROOT}" ]; then
  320. /etc/init.d/ddns stop
  321. fi
  322. exit 0
  323. endef
  324. define Package/ddns-scripts-dnspod/install
  325. $(INSTALL_DIR) $(1)/usr/lib/ddns
  326. $(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn.sh \
  327. $(1)/usr/lib/ddns
  328. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  329. $(INSTALL_DATA) ./files/usr/share/ddns/default/dnspod.cn.json \
  330. $(1)/usr/share/ddns/default/
  331. endef
  332. define Package/ddns-scripts-dnspod/prerm
  333. #!/bin/sh
  334. if [ -z "$${IPKG_INSTROOT}" ]; then
  335. /etc/init.d/ddns stop
  336. fi
  337. exit 0
  338. endef
  339. define Package/ddns-scripts-noip/install
  340. $(INSTALL_DIR) $(1)/usr/lib/ddns
  341. $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
  342. $(1)/usr/lib/ddns
  343. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  344. $(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
  345. $(1)/usr/share/ddns/default
  346. endef
  347. define Package/ddns-scripts-noip/prerm
  348. #!/bin/sh
  349. if [ -z "$${IPKG_INSTROOT}" ]; then
  350. /etc/init.d/ddns stop
  351. fi
  352. exit 0
  353. endef
  354. define Package/ddns-scripts-ns1/install
  355. $(INSTALL_DIR) $(1)/usr/lib/ddns
  356. $(INSTALL_BIN) ./files/usr/lib/ddns/update_ns1_com.sh \
  357. $(1)/usr/lib/ddns
  358. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  359. $(INSTALL_DATA) ./files/usr/share/ddns/default/ns1.com.json \
  360. $(1)/usr/share/ddns/default
  361. endef
  362. define Package/ddns-scripts-ns1/prerm
  363. #!/bin/sh
  364. if [ -z "$${IPKG_INSTROOT}" ]; then
  365. /etc/init.d/ddns stop
  366. fi
  367. exit 0
  368. endef
  369. define Package/ddns-scripts-nsupdate/install
  370. $(INSTALL_DIR) $(1)/usr/lib/ddns
  371. $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
  372. $(1)/usr/lib/ddns
  373. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  374. $(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
  375. $(1)/usr/share/ddns/default
  376. endef
  377. define Package/ddns-scripts-nsupdate/prerm
  378. #!/bin/sh
  379. if [ -z "$${IPKG_INSTROOT}" ]; then
  380. /etc/init.d/ddns stop
  381. fi
  382. exit 0
  383. endef
  384. define Package/ddns-scripts-route53/install
  385. $(INSTALL_DIR) $(1)/usr/lib/ddns
  386. $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
  387. $(1)/usr/lib/ddns
  388. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  389. $(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
  390. $(1)/usr/share/ddns/default
  391. endef
  392. define Package/ddns-scripts-route53/prerm
  393. #!/bin/sh
  394. if [ -z "$${IPKG_INSTROOT}" ]; then
  395. /etc/init.d/ddns stop
  396. fi
  397. exit 0
  398. endef
  399. define Package/ddns-scripts-cnkuai/install
  400. $(INSTALL_DIR) $(1)/usr/lib/ddns
  401. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
  402. $(1)/usr/lib/ddns
  403. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  404. $(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
  405. $(1)/usr/share/ddns/default
  406. endef
  407. define Package/ddns-scripts-cnkuai/prerm
  408. #!/bin/sh
  409. if [ -z "$${IPKG_INSTROOT}" ]; then
  410. /etc/init.d/ddns stop
  411. fi
  412. exit 0
  413. endef
  414. define Package/ddns-scripts-gandi/install
  415. $(INSTALL_DIR) $(1)/usr/lib/ddns
  416. $(INSTALL_BIN) ./files/usr/lib/ddns/update_gandi_net.sh \
  417. $(1)/usr/lib/ddns
  418. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  419. $(INSTALL_DATA) ./files/usr/share/ddns/default/gandi.net.json \
  420. $(1)/usr/share/ddns/default
  421. endef
  422. define Package/ddns-scripts-gandi/prerm
  423. #!/bin/sh
  424. if [ -z "$${IPKG_INSTROOT}" ]; then
  425. /etc/init.d/ddns stop
  426. fi
  427. exit 0
  428. endef
  429. define Package/ddns-scripts-pdns/install
  430. $(INSTALL_DIR) $(1)/usr/lib/ddns
  431. $(INSTALL_BIN) ./files/usr/lib/ddns/update_pdns.sh \
  432. $(1)/usr/lib/ddns
  433. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  434. $(INSTALL_DATA) ./files/usr/share/ddns/default/pdns.json \
  435. $(1)/usr/share/ddns/default
  436. endef
  437. define Package/ddns-scripts-pdns/prerm
  438. #!/bin/sh
  439. if [ -z "$${IPKG_INSTROOT}" ]; then
  440. /etc/init.d/ddns stop
  441. fi
  442. exit 0
  443. endef
  444. define Package/ddns-scripts-transip/install
  445. $(INSTALL_DIR) $(1)/usr/lib/ddns
  446. $(INSTALL_BIN) ./files/usr/lib/ddns/update_transip_nl.sh \
  447. $(1)/usr/lib/ddns
  448. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  449. $(INSTALL_DATA) ./files/usr/share/ddns/default/transip.nl.json \
  450. $(1)/usr/share/ddns/default
  451. endef
  452. define Package/ddns-scripts-transip/prerm
  453. #!/bin/sh
  454. if [ -z "$${IPKG_INSTROOT}" ]; then
  455. /etc/init.d/ddns stop
  456. fi
  457. exit 0
  458. endef
  459. define Package/ddns-scripts-one/install
  460. $(INSTALL_DIR) $(1)/usr/lib/ddns
  461. $(INSTALL_BIN) ./files/usr/lib/ddns/update_one_com.sh \
  462. $(1)/usr/lib/ddns
  463. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  464. $(INSTALL_DATA) ./files/usr/share/ddns/default/one.com.json \
  465. $(1)/usr/share/ddns/default
  466. endef
  467. define Package/ddns-scripts-one/prerm
  468. #!/bin/sh
  469. if [-z "${IPKG_INSTROOT}" ]; then
  470. /etc/init.d/ddns stop
  471. fi
  472. exit 0
  473. endef
  474. $(eval $(call BuildPackage,ddns-scripts))
  475. $(eval $(call BuildPackage,ddns-scripts-services))
  476. $(eval $(call BuildPackage,ddns-scripts-cloudflare))
  477. $(eval $(call BuildPackage,ddns-scripts-freedns))
  478. $(eval $(call BuildPackage,ddns-scripts-godaddy))
  479. $(eval $(call BuildPackage,ddns-scripts-digitalocean))
  480. $(eval $(call BuildPackage,ddns-scripts-dnspod))
  481. $(eval $(call BuildPackage,ddns-scripts-noip))
  482. $(eval $(call BuildPackage,ddns-scripts-nsupdate))
  483. $(eval $(call BuildPackage,ddns-scripts-route53))
  484. $(eval $(call BuildPackage,ddns-scripts-cnkuai))
  485. $(eval $(call BuildPackage,ddns-scripts-gandi))
  486. $(eval $(call BuildPackage,ddns-scripts-pdns))
  487. $(eval $(call BuildPackage,ddns-scripts-transip))
  488. $(eval $(call BuildPackage,ddns-scripts-ns1))
  489. $(eval $(call BuildPackage,ddns-scripts-one))