2015-04-12 08:47:38 +00:00
|
|
|
#
|
2018-01-13 10:58:17 +00:00
|
|
|
# Copyright (C) 2008-2018 OpenWrt.org
|
2015-04-12 08:47:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
#
|
|
|
|
|
2014-06-08 12:03:31 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ddns-scripts
|
2020-09-21 09:46:14 +00:00
|
|
|
PKG_VERSION:=2.8.0
|
2020-08-18 09:06:34 +00:00
|
|
|
PKG_RELEASE:=24
|
2015-02-05 20:33:02 +00:00
|
|
|
|
2014-08-11 19:18:48 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2014-06-08 12:03:31 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts/Default
|
2020-09-16 12:49:26 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=IP Addresses and Names
|
|
|
|
PKGARCH:=all
|
2014-06-08 12:03:31 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
|
|
|
TITLE:=Dynamic DNS Client scripts (with IPv6 support)
|
2015-02-05 20:33:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts/description
|
2020-09-16 12:49:26 +00:00
|
|
|
Dynamic DNS Client scripts (with IPv6 support)
|
|
|
|
A highly configurable set of scripts for doing dynamic dns updates.
|
|
|
|
- IPv6 support
|
|
|
|
- DNS server support
|
|
|
|
- Glue Record support (require BIND host or KNOT host)
|
|
|
|
- DNS requests via TCP
|
|
|
|
- Proxy server support
|
|
|
|
- log file support
|
|
|
|
- support to run once
|
|
|
|
Version: $(PKG_VERSION)-$(PKG_RELEASE)
|
|
|
|
Info : https://openwrt.org/docs/guide-user/services/ddns/client
|
2014-06-08 12:03:31 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
define Package/ddns-scripts/conffiles
|
|
|
|
/etc/config/ddns
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2020-09-28 07:03:43 +00:00
|
|
|
define Package/ddns-scripts-services
|
2020-09-17 10:53:17 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
|
|
|
TITLE:=Common ddns providers
|
|
|
|
DEPENDS:=ddns-scripts
|
|
|
|
endef
|
|
|
|
|
2020-09-28 07:03:43 +00:00
|
|
|
define Package/ddns-scripts-services/description
|
2020-09-17 10:53:17 +00:00
|
|
|
Dynamic DNS Client definitions for supported services
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2020-09-28 07:05:09 +00:00
|
|
|
define Package/ddns-scripts-cloudflare
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for cloudflare.com API v4
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +curl
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-09-28 07:05:09 +00:00
|
|
|
define Package/ddns-scripts-cloudflare/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for cloudflare.com API v4 (require curl)
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2018-06-09 10:37:54 +00:00
|
|
|
define Package/ddns-scripts_freedns_42_pl
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for freedns.42.pl
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +curl
|
2018-06-09 10:37:54 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2018-06-09 10:37:54 +00:00
|
|
|
define Package/ddns-scripts_freedns_42_pl/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for "freedns.42.pl".
|
2018-06-09 10:37:54 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_godaddy.com-v1
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for godaddy.com API v1
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +curl
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_godaddy.com-v1/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for "godaddy.com API v1".
|
2014-06-08 12:03:31 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-05-02 17:54:24 +00:00
|
|
|
define Package/ddns-scripts_digitalocean.com-v2
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extention for digitalocean.com API v2
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +curl
|
2020-05-02 17:54:24 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-05-02 17:54:24 +00:00
|
|
|
define Package/ddns-scripts_digitalocean.com-v2/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for "digitalocean.com API v2".
|
|
|
|
The script directly updates a DNS record using the DO API.
|
|
|
|
It requires:
|
2020-09-16 12:49:26 +00:00
|
|
|
"option dns_server" to be set to the server to be used by nsupdate.
|
|
|
|
"option domain" the dns domain to update the record for (eg. A-record: home.<example.com>)
|
|
|
|
"option username" the dns record name to update (eg. A-record: <home>.example.com)
|
|
|
|
"option param_opt" the id of the dns record to update (check using chrome inspector in the DO dns tab)
|
|
|
|
"option password" the api token generated in the DO panel
|
2020-05-02 17:54:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_no-ip_com
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for no-ip.com
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts
|
2015-02-05 20:33:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_no-ip_com/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for "no-ip.com".
|
2014-06-08 12:03:31 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_nsupdate
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for using bind nsupdate.
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +bind-client
|
2015-02-28 15:43:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_nsupdate/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for direct updates using bind nsupdate
|
2020-09-16 12:49:26 +00:00
|
|
|
The script directly updates a PowerDNS (or maybe bind server) via nsupdate
|
|
|
|
from bind-client package.
|
|
|
|
It requires:
|
|
|
|
"option dns_server" to be set to the server to be used by nsupdate.
|
|
|
|
"option username" should be set to the key name and
|
|
|
|
"option password" to the base64 encoded shared secret.
|
2015-02-28 15:43:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2017-12-23 21:47:48 +00:00
|
|
|
define Package/ddns-scripts_route53-v1
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
2020-09-16 13:04:24 +00:00
|
|
|
TITLE:=Extension for route53 API v1
|
2020-09-16 12:49:26 +00:00
|
|
|
DEPENDS:=ddns-scripts +curl +openssl-util
|
2017-12-23 21:47:48 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-12-23 21:47:48 +00:00
|
|
|
define Package/ddns-scripts_route53-v1/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for Amazon AWS "route53 API v1".
|
|
|
|
Note: You must also install ca-certificate or ca-bundle.
|
2020-09-16 12:49:26 +00:00
|
|
|
It requires:
|
|
|
|
"option username" to be a valid AWS access key id
|
|
|
|
"option password" to be the matching AWS secret key id
|
|
|
|
"option domain" to contain the hosted zone ID
|
2017-12-23 21:47:48 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-03-21 12:27:01 +00:00
|
|
|
define Package/ddns-scripts_cnkuai_cn
|
2020-09-16 12:49:26 +00:00
|
|
|
$(call Package/ddns-scripts/Default)
|
|
|
|
TITLE:=CnKuai API
|
|
|
|
DEPENDS:=ddns-scripts +curl +giflib-utils
|
2020-03-21 12:27:01 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-03-21 12:27:01 +00:00
|
|
|
define Package/ddns-scripts_cnkuai_cn/description
|
2020-09-16 13:04:24 +00:00
|
|
|
Dynamic DNS Client scripts extension for "cnkuai.cn".
|
2020-09-16 12:49:26 +00:00
|
|
|
It requires:
|
|
|
|
"option username" to be a valid CnKuai control panel id
|
|
|
|
"option password" to be the matching CnKuai control panel password
|
|
|
|
"option domain" to contain the domain
|
2020-03-21 12:27:01 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2015-02-05 20:33:02 +00:00
|
|
|
define Build/Configure
|
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2014-06-08 12:03:31 +00:00
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts/install
|
2020-09-16 14:09:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
|
2020-09-16 14:13:04 +00:00
|
|
|
$(INSTALL_DATA) ./files/etc/hotplug.d/iface/ddns \
|
2020-09-16 14:09:59 +00:00
|
|
|
$(1)/etc/hotplug.d/iface/95-ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2020-09-16 14:18:50 +00:00
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/ddns \
|
2020-09-16 14:09:59 +00:00
|
|
|
$(1)/etc/init.d/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2020-09-16 14:11:36 +00:00
|
|
|
$(INSTALL_CONF) ./files/etc/config/ddns \
|
2020-09-16 14:09:59 +00:00
|
|
|
$(1)/etc/config/ddns
|
2014-09-22 05:59:19 +00:00
|
|
|
|
2020-09-16 13:54:35 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns
|
|
|
|
echo "$(PKG_VERSION)-$(PKG_RELEASE)" > $(1)/usr/share/ddns/version
|
2020-09-17 10:55:18 +00:00
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/list \
|
|
|
|
$(1)/usr/share/ddns
|
2020-09-16 13:54:35 +00:00
|
|
|
|
2020-09-16 14:23:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
|
|
|
$(INSTALL_DATA) ./files/usr/lib/ddns/dynamic_dns_functions.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_lucihelper.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/dynamic_dns_updater.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
2020-09-17 12:53:47 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) ./files/usr/bin/ddns.sh \
|
|
|
|
$(1)/usr/bin/ddns
|
2015-02-05 20:33:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts/postinst
|
2020-09-16 13:28:51 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns enabled
|
|
|
|
/etc/init.d/ddns start
|
|
|
|
fi
|
|
|
|
exit 0
|
2016-12-09 19:14:06 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts/prerm
|
2020-09-16 13:11:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -n "$${IPKG_INSTROOT}" ]; then
|
2014-09-22 05:59:19 +00:00
|
|
|
/etc/init.d/ddns stop
|
2016-12-09 19:14:06 +00:00
|
|
|
/etc/init.d/ddns disable
|
2020-09-16 13:11:32 +00:00
|
|
|
fi
|
|
|
|
exit 0
|
2014-06-08 12:03:31 +00:00
|
|
|
endef
|
2015-02-28 15:43:02 +00:00
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-09-28 07:03:43 +00:00
|
|
|
define Package/ddns-scripts-services/install
|
2020-09-17 10:53:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/* \
|
|
|
|
$(1)/usr/share/ddns/services
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2020-09-28 07:05:09 +00:00
|
|
|
define Package/ddns-scripts-cloudflare/install
|
2016-12-09 19:14:06 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-18 08:41:57 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_cloudflare_com_v4.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/cloudflare.com-v4.json \
|
|
|
|
$(1)/usr/share/ddns/services/
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-09-28 07:05:09 +00:00
|
|
|
define Package/ddns-scripts-cloudflare/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2018-06-09 10:37:54 +00:00
|
|
|
define Package/ddns-scripts_freedns_42_pl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-18 08:59:31 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_freedns_42_pl.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/freedns.42.pl.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2018-06-09 10:37:54 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2018-06-09 10:37:54 +00:00
|
|
|
define Package/ddns-scripts_freedns_42_pl/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2018-06-09 10:37:54 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_godaddy.com-v1/install
|
2016-12-09 19:14:06 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-18 08:59:43 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_godaddy_com_v1.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/godaddy.com-v1.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2016-12-04 15:47:09 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_godaddy.com-v1/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2015-02-05 20:33:02 +00:00
|
|
|
endef
|
2015-02-28 15:43:02 +00:00
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-05-02 17:54:24 +00:00
|
|
|
define Package/ddns-scripts_digitalocean.com-v2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-09 15:21:04 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_digitalocean_com_v2.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/digitalocean.com-v2.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2020-05-02 17:54:24 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-05-02 17:54:24 +00:00
|
|
|
define Package/ddns-scripts_digitalocean.com-v2/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2020-05-02 17:54:24 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_no-ip_com/install
|
2015-02-28 15:43:02 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-09 15:24:54 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_no-ip_com.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/no-ip.com.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2015-02-28 15:43:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_no-ip_com/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2015-02-05 20:33:02 +00:00
|
|
|
endef
|
2014-06-08 12:03:31 +00:00
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_nsupdate/install
|
2015-02-28 15:43:02 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-09 15:27:12 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_nsupdate.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/bind-nsupdate.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2015-02-28 15:43:02 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
define Package/ddns-scripts_nsupdate/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2015-02-28 15:43:02 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-12-23 21:47:48 +00:00
|
|
|
define Package/ddns-scripts_route53-v1/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-09 15:29:31 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_route53_v1.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/route53-v1.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2017-12-23 21:47:48 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-12-23 21:47:48 +00:00
|
|
|
define Package/ddns-scripts_route53-v1/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2017-12-23 21:47:48 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-03-21 12:27:01 +00:00
|
|
|
define Package/ddns-scripts_cnkuai_cn/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
2020-09-09 15:31:56 +00:00
|
|
|
$(INSTALL_BIN) ./files/usr/lib/ddns/update_cnkuai_cn.sh \
|
|
|
|
$(1)/usr/lib/ddns
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/ddns/services
|
|
|
|
$(INSTALL_DATA) ./files/usr/share/ddns/services/cnkuai.cn.json \
|
|
|
|
$(1)/usr/share/ddns/services
|
2020-03-21 12:27:01 +00:00
|
|
|
endef
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2020-03-21 12:27:01 +00:00
|
|
|
define Package/ddns-scripts_cnkuai_cn/prerm
|
2020-09-16 13:39:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
/etc/init.d/ddns stop
|
|
|
|
fi
|
|
|
|
exit 0
|
2020-03-21 12:27:01 +00:00
|
|
|
endef
|
|
|
|
|
2020-09-16 12:49:26 +00:00
|
|
|
|
2017-03-07 12:41:01 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts))
|
2020-09-28 07:03:43 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts-services))
|
2020-09-28 07:05:09 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts-cloudflare))
|
2018-06-09 10:37:54 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_freedns_42_pl))
|
2017-03-07 12:41:01 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_godaddy.com-v1))
|
2020-05-02 17:54:24 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_digitalocean.com-v2))
|
2017-03-07 12:41:01 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_no-ip_com))
|
|
|
|
$(eval $(call BuildPackage,ddns-scripts_nsupdate))
|
2017-12-23 21:47:48 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_route53-v1))
|
2020-03-21 12:27:01 +00:00
|
|
|
$(eval $(call BuildPackage,ddns-scripts_cnkuai_cn))
|