rtty: update to 8.1.2
[feed/packages.git] / net / ddns-scripts / Makefile
1 #
2 # Copyright (C) 2008-2018 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 #
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ddns-scripts
10 PKG_VERSION:=2.8.2
11 PKG_RELEASE:=43
12
13 PKG_LICENSE:=GPL-2.0
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/ddns-scripts/Default
18 SECTION:=net
19 CATEGORY:=Network
20 SUBMENU:=IP Addresses and Names
21 PKGARCH:=all
22 endef
23
24
25 define Package/ddns-scripts
26 $(call Package/ddns-scripts/Default)
27 TITLE:=Dynamic DNS Client scripts (with IPv6 support)
28 DEPENDS:=+ddns-scripts-services
29 endef
30
31 define Package/ddns-scripts/description
32 Dynamic DNS Client scripts (with IPv6 support)
33 A highly configurable set of scripts for doing dynamic dns updates.
34 - IPv6 support
35 - DNS server support
36 - Glue Record support (require BIND host or KNOT host)
37 - DNS requests via TCP
38 - Proxy server support
39 - log file support
40 - support to run once
41 Version: $(PKG_VERSION)-$(PKG_RELEASE)
42 Info : https://openwrt.org/docs/guide-user/services/ddns/client
43 endef
44
45 define Package/ddns-scripts/conffiles
46 /etc/config/ddns
47 endef
48
49
50 define Package/ddns-scripts-services
51 $(call Package/ddns-scripts/Default)
52 TITLE:=Common ddns providers
53 PROVIDES:=ddns-scripts_service
54 endef
55
56 define Package/ddns-scripts-services/description
57 Dynamic DNS Client definitions for supported services
58 endef
59
60 define Package/ddns-scripts-utils
61 $(call Package/ddns-scripts/Default)
62 TITLE:=Utility scripts for ddns configs
63 DEPENDS:=ddns-scripts
64 endef
65
66 define Package/ddns-scripts-utils/description
67 Dynamic DNS Client utility scripts for config files
68 endef
69
70
71 define Package/ddns-scripts-luadns
72 $(call Package/ddns-scripts/Default)
73 TITLE:=Extension for LuaDNS API v1
74 DEPENDS:=ddns-scripts +curl
75 endef
76
77 define Package/ddns-scripts-luadns/description
78 Dynamic DNS Client scripts extension for LuaDNS API v1 (require curl)
79 endef
80
81 define Package/ddns-scripts-cloudflare
82 $(call Package/ddns-scripts/Default)
83 TITLE:=Extension for cloudflare.com API v4
84 DEPENDS:=ddns-scripts +curl
85 PROVIDES:=ddns-scripts_cloudflare.com-v4
86 endef
87
88 define Package/ddns-scripts-cloudflare/description
89 Dynamic DNS Client scripts extension for cloudflare.com API v4 (require curl)
90 endef
91
92
93 define Package/ddns-scripts-gcp
94 $(call Package/ddns-scripts/Default)
95 TITLE:=Extension for Google Cloud DNS API v1
96 DEPENDS:=ddns-scripts +curl +openssl-util
97 endef
98
99 define Package/ddns-scripts-gcp/description
100 Dynamic DNS Client scripts extension for Google Cloud DNS API v1 (requires curl)
101 endef
102
103
104 define Package/ddns-scripts-freedns
105 $(call Package/ddns-scripts/Default)
106 TITLE:=Extension for freedns.42.pl
107 DEPENDS:=ddns-scripts +curl
108 PROVIDES:=ddns-scripts_freedns_42_pl
109 endef
110
111 define Package/ddns-scripts-freedns/description
112 Dynamic DNS Client scripts extension for "freedns.42.pl".
113 endef
114
115
116 define Package/ddns-scripts-godaddy
117 $(call Package/ddns-scripts/Default)
118 TITLE:=Extension for godaddy.com API v1
119 DEPENDS:=ddns-scripts +curl
120 PROVIDES:=ddns-scripts_godaddy.com-v1
121 endef
122
123 define Package/ddns-scripts-godaddy/description
124 Dynamic DNS Client scripts extension for "godaddy.com API v1".
125 endef
126
127
128 define Package/ddns-scripts-digitalocean
129 $(call Package/ddns-scripts/Default)
130 TITLE:=Extention for digitalocean.com API v2
131 DEPENDS:=ddns-scripts +curl
132 PROVIDES:=ddns-scripts_digitalocean.com-v2
133 endef
134
135 define Package/ddns-scripts-digitalocean/description
136 Dynamic DNS Client scripts extension for "digitalocean.com API v2".
137 The script directly updates a DNS record using the DO API.
138 It requires:
139 "option dns_server" to be set to the server to be used by nsupdate.
140 "option domain" the dns domain to update the record for (eg. A-record: home.<example.com>)
141 "option username" the dns record name to update (eg. A-record: <home>.example.com)
142 "option param_opt" the id of the dns record to update (check using chrome inspector in the DO dns tab)
143 "option password" the api token generated in the DO panel
144 endef
145
146
147 define Package/ddns-scripts-dnspod
148 $(call Package/ddns-scripts/Default)
149 TITLE:=Extension for dnspod.cn API
150 DEPENDS:=ddns-scripts +curl
151 endef
152
153 define Package/ddns-scripts-dnspod/description
154 Dynamic DNS Client scripts extension for dnspod.cn API (require curl)
155 endef
156
157
158 define Package/ddns-scripts-noip
159 $(call Package/ddns-scripts/Default)
160 TITLE:=Extension for no-ip.com
161 DEPENDS:=ddns-scripts
162 PROVIDES:=ddns-scripts_no-ip_com
163 endef
164
165 define Package/ddns-scripts-noip/description
166 Dynamic DNS Client scripts extension for "no-ip.com".
167 endef
168
169 define Package/ddns-scripts-ns1
170 $(call Package/ddns-scripts/Default)
171 TITLE:=NS1 API
172 DEPENDS:=ddns-scripts +curl
173 endef
174
175 define Package/ddns-scripts-ns1/description
176 Dynamic DNS Client scripts extension for "ns1.com".
177 It requires:
178 "option username" to be a valid zone for ns1.com
179 "option password" to be a valid API key for ns1.com
180 endef
181
182
183 define Package/ddns-scripts-nsupdate
184 $(call Package/ddns-scripts/Default)
185 TITLE:=Extension for using bind nsupdate.
186 DEPENDS:=ddns-scripts +bind-client
187 PROVIDES:=ddns-scripts_nsupdate
188 endef
189
190 define Package/ddns-scripts-nsupdate/description
191 Dynamic DNS Client scripts extension for direct updates using bind nsupdate
192 The script directly updates a PowerDNS (or maybe bind server) via nsupdate
193 from bind-client package.
194 It requires:
195 "option dns_server" to be set to the server to be used by nsupdate.
196 "option username" should be set to the key name and
197 "option password" to the base64 encoded shared secret.
198 endef
199
200
201 define Package/ddns-scripts-route53
202 $(call Package/ddns-scripts/Default)
203 TITLE:=Extension for route53 API v1
204 DEPENDS:=ddns-scripts +curl +openssl-util
205 PROVIDES:=ddns-scripts_route53-v1
206 endef
207
208 define Package/ddns-scripts-route53/description
209 Dynamic DNS Client scripts extension for Amazon AWS "route53 API v1".
210 Note: You must also install ca-certificate or ca-bundle.
211 It requires:
212 "option username" to be a valid AWS access key id
213 "option password" to be the matching AWS secret key id
214 "option domain" to contain the hosted zone ID
215 endef
216
217
218 define Package/ddns-scripts-cnkuai
219 $(call Package/ddns-scripts/Default)
220 TITLE:=CnKuai API
221 DEPENDS:=ddns-scripts +curl +giflib-utils
222 PROVIDES:=ddns-scripts_cnkuai_cn
223 endef
224
225 define Package/ddns-scripts-cnkuai/description
226 Dynamic DNS Client scripts extension for "cnkuai.cn".
227 It requires:
228 "option username" to be a valid CnKuai control panel id
229 "option password" to be the matching CnKuai control panel password
230 "option domain" to contain the domain
231 endef
232
233
234 define Package/ddns-scripts-gandi
235 $(call Package/ddns-scripts/Default)
236 TITLE:=Gandi API
237 DEPENDS:=ddns-scripts +curl
238 endef
239
240 define Package/ddns-scripts-gandi/description
241 Dynamic DNS Client scripts extension for "gandi.net".
242 It requires:
243 "option username" to be a valid subdomain for gandi.net
244 "option password" to be a valid API key for gandi.net
245 endef
246
247
248 define Package/ddns-scripts-pdns
249 $(call Package/ddns-scripts/Default)
250 TITLE:=PowerDNS API
251 DEPENDS:=ddns-scripts +curl
252 endef
253
254 define Package/ddns-scripts-pdns/description
255 Dynamic DNS Client scripts extension for "PowerDNS" via API.
256 It requires:
257 "option param_opt(Optional Parameter)" to be a valid root URL for the PowerDNS webserver
258 "option username" to be a valid subdomain for the PowerDNS domain
259 "option password" to be a valid API key for the PowerDNS webserver
260 endef
261
262
263 define Package/ddns-scripts-transip
264 $(call Package/ddns-scripts/Default)
265 TITLE:=Extension for TransIP API
266 DEPENDS:=ddns-scripts +curl +openssl-util +!BUSYBOX_CONFIG_MKTEMP:coreutils-mktemp
267 endef
268
269 define Package/ddns-scripts-transip/description
270 Dynamic DNS Client scripts extension for "transip.nl".
271 Note: You must also install ca-certificate or ca-bundle.
272 It requires:
273 "option username" to be a valid username for transip.nl
274 "option password" to be a valid matching private key
275 "option domain" to contain the base domain
276 "option param_enc" to contain the name of the DNS record to update
277 "option param_opt" to contain the TTL of the DNS record to update
278 endef
279
280 define Package/ddns-scripts-one
281 $(call Package/ddns-scripts/Default)
282 TITLE:=Extension for one.com Control Panel
283 DEPENDS:=ddns-scripts +curl
284 endef
285
286 define Package/ddns-scrtips-one/description
287 Dynamic DNS Client scripts extension for "one.com".
288 It requires:
289 "option username" to be a valid Email for one.com Control Panel
290 "option password" to be the matching one.com Control Panel password
291 "option domain" to contain the domain / subdomain
292 endef
293
294
295 define Build/Configure
296 endef
297
298 define Build/Compile
299 endef
300
301
302 define Package/ddns-scripts/install
303 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
304 $(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
305 $(1)/etc/hotplug.d/iface/95-ddns
306
307 $(INSTALL_DIR) $(1)/etc/init.d
308 $(INSTALL_BIN) ./files/etc/init.d/ddns \
309 $(1)/etc/init.d/ddns
310
311 $(INSTALL_DIR) $(1)/etc/config
312 $(INSTALL_CONF) ./files/etc/config/ddns \
313 $(1)/etc/config/ddns
314
315 $(INSTALL_DIR) $(1)/usr/share/ddns
316 echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
317
318 $(INSTALL_DIR) $(1)/usr/lib/ddns
319 $(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
320 $(1)/usr/lib/ddns
321 $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
322 $(1)/usr/lib/ddns
323 $(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
324 $(1)/usr/lib/ddns
325
326 $(INSTALL_DIR) $(1)/usr/bin
327 $(INSTALL_BIN) ./files/usr/bin/ddns.sh \
328 $(1)/usr/bin/ddns
329 endef
330
331 define Package/ddns-scripts/postinst
332 #!/bin/sh
333 if [ -z "$${IPKG_INSTROOT}" ]; then
334 /etc/init.d/ddns enabled
335 /etc/init.d/ddns start
336 fi
337 exit 0
338 endef
339
340 define Package/ddns-scripts/prerm
341 #!/bin/sh
342 if [ -n "$${IPKG_INSTROOT}" ]; then
343 /etc/init.d/ddns stop
344 /etc/init.d/ddns disable
345 fi
346 exit 0
347 endef
348
349
350 define Package/ddns-scripts-services/install
351 $(INSTALL_DIR) $(1)/usr/share/ddns/default
352 $(INSTALL_DATA) ./files/usr/share/ddns/default/* \
353 $(1)/usr/share/ddns/default
354
355 # Remove special services
356 rm $(1)/usr/share/ddns/default/luadns.com-v1.json
357 rm $(1)/usr/share/ddns/default/cloudflare.com-v4.json
358 rm $(1)/usr/share/ddns/default/cloud.google.com-v1.json
359 rm $(1)/usr/share/ddns/default/freedns.42.pl.json
360 rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
361 rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
362 rm $(1)/usr/share/ddns/default/dnspod.cn.json
363 rm $(1)/usr/share/ddns/default/no-ip.com.json
364 rm $(1)/usr/share/ddns/default/bind-nsupdate.json
365 rm $(1)/usr/share/ddns/default/route53-v1.json
366 rm $(1)/usr/share/ddns/default/cnkuai.cn.json
367 rm $(1)/usr/share/ddns/default/gandi.net.json
368 rm $(1)/usr/share/ddns/default/pdns.json
369 rm $(1)/usr/share/ddns/default/transip.nl.json
370 rm $(1)/usr/share/ddns/default/ns1.com.json
371 rm $(1)/usr/share/ddns/default/one.com.json
372 endef
373
374
375 define Package/ddns-scripts-utils/install
376 $(INSTALL_DIR) $(1)/usr/lib/ddns
377 $(INSTALL_BIN) ./samples/slaac_sample.sh \
378 $(1)/usr/lib/ddns/slaac.sh
379 $(INSTALL_BIN) ./samples/getlocalip_sample.sh \
380 $(1)/usr/lib/ddns/getlocalip.sh
381 endef
382
383
384 define Package/ddns-scripts-luadns/install
385 $(INSTALL_DIR) $(1)/usr/lib/ddns
386 $(INSTALL_BIN) ./files/usr/lib/ddns/update_luadns_v1.sh \
387 $(1)/usr/lib/ddns
388
389 $(INSTALL_DIR) $(1)/usr/share/ddns/default
390 $(INSTALL_DATA) ./files/usr/share/ddns/default/luadns.com-v1.json \
391 $(1)/usr/share/ddns/default/
392 endef
393
394 define Package/ddns-scripts-luadns/prerm
395 #!/bin/sh
396 if [ -z "$${IPKG_INSTROOT}" ]; then
397 /etc/init.d/ddns stop
398 fi
399 exit 0
400 endef
401
402
403 define Package/ddns-scripts-cloudflare/install
404 $(INSTALL_DIR) $(1)/usr/lib/ddns
405 $(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
406 $(1)/usr/lib/ddns
407
408 $(INSTALL_DIR) $(1)/usr/share/ddns/default
409 $(INSTALL_DATA) ./files/usr/share/ddns/default/cloudflare.com-v4.json \
410 $(1)/usr/share/ddns/default/
411 endef
412
413 define Package/ddns-scripts-cloudflare/prerm
414 #!/bin/sh
415 if [ -z "$${IPKG_INSTROOT}" ]; then
416 /etc/init.d/ddns stop
417 fi
418 exit 0
419 endef
420
421
422 define Package/ddns-scripts-gcp/install
423 $(INSTALL_DIR) $(1)/usr/lib/ddns
424 $(INSTALL_BIN) ./files/usr/lib/ddns/update_gcp_v1.sh \
425 $(1)/usr/lib/ddns
426
427 $(INSTALL_DIR) $(1)/usr/share/ddns/default
428 $(INSTALL_DATA) ./files/usr/share/ddns/default/cloud.google.com-v1.json \
429 $(1)/usr/share/ddns/default/
430 endef
431
432 define Package/ddns-scripts-gcp/prerm
433 #!/bin/sh
434 if [ -z "$${IPKG_INSTROOT}" ]; then
435 /etc/init.d/ddns stop
436 fi
437 exit 0
438 endef
439
440
441 define Package/ddns-scripts-freedns/install
442 $(INSTALL_DIR) $(1)/usr/lib/ddns
443 $(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
444 $(1)/usr/lib/ddns
445
446 $(INSTALL_DIR) $(1)/usr/share/ddns/default
447 $(INSTALL_DATA) ./files/usr/share/ddns/default/freedns.42.pl.json \
448 $(1)/usr/share/ddns/default
449 endef
450
451 define Package/ddns-scripts-freedns/prerm
452 #!/bin/sh
453 if [ -z "$${IPKG_INSTROOT}" ]; then
454 /etc/init.d/ddns stop
455 fi
456 exit 0
457 endef
458
459
460 define Package/ddns-scripts-godaddy/install
461 $(INSTALL_DIR) $(1)/usr/lib/ddns
462 $(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
463 $(1)/usr/lib/ddns
464
465 $(INSTALL_DIR) $(1)/usr/share/ddns/default
466 $(INSTALL_DATA) ./files/usr/share/ddns/default/godaddy.com-v1.json \
467 $(1)/usr/share/ddns/default
468 endef
469
470 define Package/ddns-scripts-godaddy/prerm
471 #!/bin/sh
472 if [ -z "$${IPKG_INSTROOT}" ]; then
473 /etc/init.d/ddns stop
474 fi
475 exit 0
476 endef
477
478
479 define Package/ddns-scripts-digitalocean/install
480 $(INSTALL_DIR) $(1)/usr/lib/ddns
481 $(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
482 $(1)/usr/lib/ddns
483
484 $(INSTALL_DIR) $(1)/usr/share/ddns/default
485 $(INSTALL_DATA) ./files/usr/share/ddns/default/digitalocean.com-v2.json \
486 $(1)/usr/share/ddns/default
487 endef
488
489 define Package/ddns-scripts-digitalocean/prerm
490 #!/bin/sh
491 if [ -z "$${IPKG_INSTROOT}" ]; then
492 /etc/init.d/ddns stop
493 fi
494 exit 0
495 endef
496
497
498 define Package/ddns-scripts-dnspod/install
499 $(INSTALL_DIR) $(1)/usr/lib/ddns
500 $(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn.sh \
501 $(1)/usr/lib/ddns
502
503 $(INSTALL_DIR) $(1)/usr/share/ddns/default
504 $(INSTALL_DATA) ./files/usr/share/ddns/default/dnspod.cn.json \
505 $(1)/usr/share/ddns/default/
506 endef
507
508 define Package/ddns-scripts-dnspod/prerm
509 #!/bin/sh
510 if [ -z "$${IPKG_INSTROOT}" ]; then
511 /etc/init.d/ddns stop
512 fi
513 exit 0
514 endef
515
516
517 define Package/ddns-scripts-noip/install
518 $(INSTALL_DIR) $(1)/usr/lib/ddns
519 $(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
520 $(1)/usr/lib/ddns
521
522 $(INSTALL_DIR) $(1)/usr/share/ddns/default
523 $(INSTALL_DATA) ./files/usr/share/ddns/default/no-ip.com.json \
524 $(1)/usr/share/ddns/default
525 endef
526
527 define Package/ddns-scripts-noip/prerm
528 #!/bin/sh
529 if [ -z "$${IPKG_INSTROOT}" ]; then
530 /etc/init.d/ddns stop
531 fi
532 exit 0
533 endef
534
535
536 define Package/ddns-scripts-ns1/install
537 $(INSTALL_DIR) $(1)/usr/lib/ddns
538 $(INSTALL_BIN) ./files/usr/lib/ddns/update_ns1_com.sh \
539 $(1)/usr/lib/ddns
540
541 $(INSTALL_DIR) $(1)/usr/share/ddns/default
542 $(INSTALL_DATA) ./files/usr/share/ddns/default/ns1.com.json \
543 $(1)/usr/share/ddns/default
544 endef
545
546 define Package/ddns-scripts-ns1/prerm
547 #!/bin/sh
548 if [ -z "$${IPKG_INSTROOT}" ]; then
549 /etc/init.d/ddns stop
550 fi
551 exit 0
552 endef
553
554
555 define Package/ddns-scripts-nsupdate/install
556 $(INSTALL_DIR) $(1)/usr/lib/ddns
557 $(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
558 $(1)/usr/lib/ddns
559
560 $(INSTALL_DIR) $(1)/usr/share/ddns/default
561 $(INSTALL_DATA) ./files/usr/share/ddns/default/bind-nsupdate.json \
562 $(1)/usr/share/ddns/default
563 endef
564
565 define Package/ddns-scripts-nsupdate/prerm
566 #!/bin/sh
567 if [ -z "$${IPKG_INSTROOT}" ]; then
568 /etc/init.d/ddns stop
569 fi
570 exit 0
571 endef
572
573
574 define Package/ddns-scripts-route53/install
575 $(INSTALL_DIR) $(1)/usr/lib/ddns
576 $(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
577 $(1)/usr/lib/ddns
578
579 $(INSTALL_DIR) $(1)/usr/share/ddns/default
580 $(INSTALL_DATA) ./files/usr/share/ddns/default/route53-v1.json \
581 $(1)/usr/share/ddns/default
582 endef
583
584 define Package/ddns-scripts-route53/prerm
585 #!/bin/sh
586 if [ -z "$${IPKG_INSTROOT}" ]; then
587 /etc/init.d/ddns stop
588 fi
589 exit 0
590 endef
591
592
593 define Package/ddns-scripts-cnkuai/install
594 $(INSTALL_DIR) $(1)/usr/lib/ddns
595 $(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
596 $(1)/usr/lib/ddns
597
598 $(INSTALL_DIR) $(1)/usr/share/ddns/default
599 $(INSTALL_DATA) ./files/usr/share/ddns/default/cnkuai.cn.json \
600 $(1)/usr/share/ddns/default
601 endef
602
603 define Package/ddns-scripts-cnkuai/prerm
604 #!/bin/sh
605 if [ -z "$${IPKG_INSTROOT}" ]; then
606 /etc/init.d/ddns stop
607 fi
608 exit 0
609 endef
610
611
612 define Package/ddns-scripts-gandi/install
613 $(INSTALL_DIR) $(1)/usr/lib/ddns
614 $(INSTALL_BIN) ./files/usr/lib/ddns/update_gandi_net.sh \
615 $(1)/usr/lib/ddns
616
617 $(INSTALL_DIR) $(1)/usr/share/ddns/default
618 $(INSTALL_DATA) ./files/usr/share/ddns/default/gandi.net.json \
619 $(1)/usr/share/ddns/default
620 endef
621
622 define Package/ddns-scripts-gandi/prerm
623 #!/bin/sh
624 if [ -z "$${IPKG_INSTROOT}" ]; then
625 /etc/init.d/ddns stop
626 fi
627 exit 0
628 endef
629
630
631 define Package/ddns-scripts-pdns/install
632 $(INSTALL_DIR) $(1)/usr/lib/ddns
633 $(INSTALL_BIN) ./files/usr/lib/ddns/update_pdns.sh \
634 $(1)/usr/lib/ddns
635
636 $(INSTALL_DIR) $(1)/usr/share/ddns/default
637 $(INSTALL_DATA) ./files/usr/share/ddns/default/pdns.json \
638 $(1)/usr/share/ddns/default
639 endef
640
641 define Package/ddns-scripts-pdns/prerm
642 #!/bin/sh
643 if [ -z "$${IPKG_INSTROOT}" ]; then
644 /etc/init.d/ddns stop
645 fi
646 exit 0
647 endef
648
649
650 define Package/ddns-scripts-transip/install
651 $(INSTALL_DIR) $(1)/usr/lib/ddns
652 $(INSTALL_BIN) ./files/usr/lib/ddns/update_transip_nl.sh \
653 $(1)/usr/lib/ddns
654
655 $(INSTALL_DIR) $(1)/usr/share/ddns/default
656 $(INSTALL_DATA) ./files/usr/share/ddns/default/transip.nl.json \
657 $(1)/usr/share/ddns/default
658 endef
659
660 define Package/ddns-scripts-transip/prerm
661 #!/bin/sh
662 if [ -z "$${IPKG_INSTROOT}" ]; then
663 /etc/init.d/ddns stop
664 fi
665 exit 0
666 endef
667
668
669 define Package/ddns-scripts-one/install
670 $(INSTALL_DIR) $(1)/usr/lib/ddns
671 $(INSTALL_BIN) ./files/usr/lib/ddns/update_one_com.sh \
672 $(1)/usr/lib/ddns
673
674 $(INSTALL_DIR) $(1)/usr/share/ddns/default
675 $(INSTALL_DATA) ./files/usr/share/ddns/default/one.com.json \
676 $(1)/usr/share/ddns/default
677 endef
678
679 define Package/ddns-scripts-one/prerm
680 #!/bin/sh
681 if [-z "${IPKG_INSTROOT}" ]; then
682 /etc/init.d/ddns stop
683 fi
684 exit 0
685 endef
686
687
688 $(eval $(call BuildPackage,ddns-scripts))
689 $(eval $(call BuildPackage,ddns-scripts-services))
690 $(eval $(call BuildPackage,ddns-scripts-utils))
691 $(eval $(call BuildPackage,ddns-scripts-luadns))
692 $(eval $(call BuildPackage,ddns-scripts-cloudflare))
693 $(eval $(call BuildPackage,ddns-scripts-gcp))
694 $(eval $(call BuildPackage,ddns-scripts-freedns))
695 $(eval $(call BuildPackage,ddns-scripts-godaddy))
696 $(eval $(call BuildPackage,ddns-scripts-digitalocean))
697 $(eval $(call BuildPackage,ddns-scripts-dnspod))
698 $(eval $(call BuildPackage,ddns-scripts-noip))
699 $(eval $(call BuildPackage,ddns-scripts-nsupdate))
700 $(eval $(call BuildPackage,ddns-scripts-route53))
701 $(eval $(call BuildPackage,ddns-scripts-cnkuai))
702 $(eval $(call BuildPackage,ddns-scripts-gandi))
703 $(eval $(call BuildPackage,ddns-scripts-pdns))
704 $(eval $(call BuildPackage,ddns-scripts-transip))
705 $(eval $(call BuildPackage,ddns-scripts-ns1))
706 $(eval $(call BuildPackage,ddns-scripts-one))