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.

506 lines
13 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:=15
  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 Build/Configure
  164. endef
  165. define Build/Compile
  166. endef
  167. define Package/ddns-scripts/install
  168. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  169. $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
  170. $(1)/etc/hotplug.d/iface/95-ddns
  171. $(INSTALL_DIR) $(1)/etc/init.d
  172. $(INSTALL_BIN) ./files/etc/init.d/ddns \
  173. $(1)/etc/init.d/ddns
  174. $(INSTALL_DIR) $(1)/etc/config
  175. $(INSTALL_CONF) ./files/etc/config/ddns \
  176. $(1)/etc/config/ddns
  177. $(INSTALL_DIR) $(1)/usr/share/ddns
  178. echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
  179. $(INSTALL_DIR) $(1)/usr/lib/ddns
  180. $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
  181. $(1)/usr/lib/ddns
  182. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
  183. $(1)/usr/lib/ddns
  184. $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
  185. $(1)/usr/lib/ddns
  186. $(INSTALL_DIR) $(1)/usr/bin
  187. $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
  188. $(1)/usr/bin/ddns
  189. endef
  190. define Package/ddns-scripts/postinst
  191. #!/bin/sh
  192. if [ -z "$${IPKG_INSTROOT}" ]; then
  193. /etc/init.d/ddns enabled
  194. /etc/init.d/ddns start
  195. fi
  196. exit 0
  197. endef
  198. define Package/ddns-scripts/prerm
  199. #!/bin/sh
  200. if [ -n "$${IPKG_INSTROOT}" ]; then
  201. /etc/init.d/ddns stop
  202. /etc/init.d/ddns disable
  203. fi
  204. exit 0
  205. endef
  206. define Package/ddns-scripts-services/install
  207. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  208. $(INSTALL_DATA) ./files/usr/share/ddns/default/* \
  209. $(1)/usr/share/ddns/default
  210. # Remove special services
  211. rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
  212. rm $(1)/usr/share/ddns/default/freedns.42.pl.json
  213. rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
  214. rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
  215. rm $(1)/usr/share/ddns/default/dnspod.cn.json
  216. rm $(1)/usr/share/ddns/default/no-ip.com.json
  217. rm $(1)/usr/share/ddns/default/bind-nsupdate.json
  218. rm $(1)/usr/share/ddns/default/route53-v1.json
  219. rm $(1)/usr/share/ddns/default/cnkuai.cn.json
  220. rm $(1)/usr/share/ddns/default/gandi.net.json
  221. rm $(1)/usr/share/ddns/default/pdns.json
  222. endef
  223. define Package/ddns-scripts-cloudflare/install
  224. $(INSTALL_DIR) $(1)/usr/lib/ddns
  225. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
  226. $(1)/usr/lib/ddns
  227. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  228. $(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
  229. $(1)/usr/share/ddns/default/
  230. endef
  231. define Package/ddns-scripts-cloudflare/prerm
  232. #!/bin/sh
  233. if [ -z "$${IPKG_INSTROOT}" ]; then
  234. /etc/init.d/ddns stop
  235. fi
  236. exit 0
  237. endef
  238. define Package/ddns-scripts-freedns/install
  239. $(INSTALL_DIR) $(1)/usr/lib/ddns
  240. $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
  241. $(1)/usr/lib/ddns
  242. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  243. $(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
  244. $(1)/usr/share/ddns/default
  245. endef
  246. define Package/ddns-scripts-freedns/prerm
  247. #!/bin/sh
  248. if [ -z "$${IPKG_INSTROOT}" ]; then
  249. /etc/init.d/ddns stop
  250. fi
  251. exit 0
  252. endef
  253. define Package/ddns-scripts-godaddy/install
  254. $(INSTALL_DIR) $(1)/usr/lib/ddns
  255. $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
  256. $(1)/usr/lib/ddns
  257. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  258. $(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
  259. $(1)/usr/share/ddns/default
  260. endef
  261. define Package/ddns-scripts-godaddy/prerm
  262. #!/bin/sh
  263. if [ -z "$${IPKG_INSTROOT}" ]; then
  264. /etc/init.d/ddns stop
  265. fi
  266. exit 0
  267. endef
  268. define Package/ddns-scripts-digitalocean/install
  269. $(INSTALL_DIR) $(1)/usr/lib/ddns
  270. $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
  271. $(1)/usr/lib/ddns
  272. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  273. $(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
  274. $(1)/usr/share/ddns/default
  275. endef
  276. define Package/ddns-scripts-digitalocean/prerm
  277. #!/bin/sh
  278. if [ -z "$${IPKG_INSTROOT}" ]; then
  279. /etc/init.d/ddns stop
  280. fi
  281. exit 0
  282. endef
  283. define Package/ddns-scripts-dnspod/install
  284. $(INSTALL_DIR) $(1)/usr/lib/ddns
  285. $(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn.sh \
  286. $(1)/usr/lib/ddns
  287. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  288. $(INSTALL_DATA) ./files/usr/share/ddns/default/dnspod.cn.json \
  289. $(1)/usr/share/ddns/default/
  290. endef
  291. define Package/ddns-scripts-dnspod/prerm
  292. #!/bin/sh
  293. if [ -z "$${IPKG_INSTROOT}" ]; then
  294. /etc/init.d/ddns stop
  295. fi
  296. exit 0
  297. endef
  298. define Package/ddns-scripts-noip/install
  299. $(INSTALL_DIR) $(1)/usr/lib/ddns
  300. $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
  301. $(1)/usr/lib/ddns
  302. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  303. $(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
  304. $(1)/usr/share/ddns/default
  305. endef
  306. define Package/ddns-scripts-noip/prerm
  307. #!/bin/sh
  308. if [ -z "$${IPKG_INSTROOT}" ]; then
  309. /etc/init.d/ddns stop
  310. fi
  311. exit 0
  312. endef
  313. define Package/ddns-scripts-nsupdate/install
  314. $(INSTALL_DIR) $(1)/usr/lib/ddns
  315. $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
  316. $(1)/usr/lib/ddns
  317. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  318. $(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
  319. $(1)/usr/share/ddns/default
  320. endef
  321. define Package/ddns-scripts-nsupdate/prerm
  322. #!/bin/sh
  323. if [ -z "$${IPKG_INSTROOT}" ]; then
  324. /etc/init.d/ddns stop
  325. fi
  326. exit 0
  327. endef
  328. define Package/ddns-scripts-route53/install
  329. $(INSTALL_DIR) $(1)/usr/lib/ddns
  330. $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
  331. $(1)/usr/lib/ddns
  332. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  333. $(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
  334. $(1)/usr/share/ddns/default
  335. endef
  336. define Package/ddns-scripts-route53/prerm
  337. #!/bin/sh
  338. if [ -z "$${IPKG_INSTROOT}" ]; then
  339. /etc/init.d/ddns stop
  340. fi
  341. exit 0
  342. endef
  343. define Package/ddns-scripts-cnkuai/install
  344. $(INSTALL_DIR) $(1)/usr/lib/ddns
  345. $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
  346. $(1)/usr/lib/ddns
  347. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  348. $(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
  349. $(1)/usr/share/ddns/default
  350. endef
  351. define Package/ddns-scripts-cnkuai/prerm
  352. #!/bin/sh
  353. if [ -z "$${IPKG_INSTROOT}" ]; then
  354. /etc/init.d/ddns stop
  355. fi
  356. exit 0
  357. endef
  358. define Package/ddns-scripts-gandi/install
  359. $(INSTALL_DIR) $(1)/usr/lib/ddns
  360. $(INSTALL_BIN) ./files/usr/lib/ddns/update_gandi_net.sh \
  361. $(1)/usr/lib/ddns
  362. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  363. $(INSTALL_DATA) ./files/usr/share/ddns/default/gandi.net.json \
  364. $(1)/usr/share/ddns/default
  365. endef
  366. define Package/ddns-scripts-gandi/prerm
  367. #!/bin/sh
  368. if [ -z "$${IPKG_INSTROOT}" ]; then
  369. /etc/init.d/ddns stop
  370. fi
  371. exit 0
  372. endef
  373. define Package/ddns-scripts-pdns/install
  374. $(INSTALL_DIR) $(1)/usr/lib/ddns
  375. $(INSTALL_BIN) ./files/usr/lib/ddns/update_pdns.sh \
  376. $(1)/usr/lib/ddns
  377. $(INSTALL_DIR) $(1)/usr/share/ddns/default
  378. $(INSTALL_DATA) ./files/usr/share/ddns/default/pdns.json \
  379. $(1)/usr/share/ddns/default
  380. endef
  381. define Package/ddns-scripts-pdns/prerm
  382. #!/bin/sh
  383. if [ -z "$${IPKG_INSTROOT}" ]; then
  384. /etc/init.d/ddns stop
  385. fi
  386. exit 0
  387. endef
  388. $(eval $(call BuildPackage,ddns-scripts))
  389. $(eval $(call BuildPackage,ddns-scripts-services))
  390. $(eval $(call BuildPackage,ddns-scripts-cloudflare))
  391. $(eval $(call BuildPackage,ddns-scripts-freedns))
  392. $(eval $(call BuildPackage,ddns-scripts-godaddy))
  393. $(eval $(call BuildPackage,ddns-scripts-digitalocean))
  394. $(eval $(call BuildPackage,ddns-scripts-dnspod))
  395. $(eval $(call BuildPackage,ddns-scripts-noip))
  396. $(eval $(call BuildPackage,ddns-scripts-nsupdate))
  397. $(eval $(call BuildPackage,ddns-scripts-route53))
  398. $(eval $(call BuildPackage,ddns-scripts-cnkuai))
  399. $(eval $(call BuildPackage,ddns-scripts-gandi))
  400. $(eval $(call BuildPackage,ddns-scripts-pdns))