mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 08:04:32 +04:00
ddns-scripts: add one.com provider
Signed-off-by: Luca Conte <main@lugico.de>
This commit is contained in:
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ddns-scripts
|
||||
PKG_VERSION:=2.8.2
|
||||
PKG_RELEASE:=21
|
||||
PKG_RELEASE:=22
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
@@ -237,6 +237,20 @@ define Package/ddns-scripts-transip/description
|
||||
"option param_opt" to contain the TTL of the DNS record to update
|
||||
endef
|
||||
|
||||
define Package/ddns-scripts-one
|
||||
$(call Package/ddns-scripts/Default)
|
||||
TITLE:=Extension for one.com Control Panel
|
||||
DEPENDS:=ddns-scripts +curl
|
||||
endef
|
||||
|
||||
define Package/ddns-scrtips-one/description
|
||||
Dynamic DNS Client scripts extension for "one.com".
|
||||
It requires:
|
||||
"option username" to be a valid Email for one.com Control Panel
|
||||
"option password" to be the matching one.com Control Panel password
|
||||
"option domain" to contain the domain / subdomain
|
||||
endef
|
||||
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
@@ -312,6 +326,7 @@ define Package/ddns-scripts-services/install
|
||||
rm $(1)/usr/share/ddns/default/pdns.json
|
||||
rm $(1)/usr/share/ddns/default/transip.nl.json
|
||||
rm $(1)/usr/share/ddns/default/ns1.com.json
|
||||
rm $(1)/usr/share/ddns/default/one.com.json
|
||||
endef
|
||||
|
||||
|
||||
@@ -562,6 +577,25 @@ exit 0
|
||||
endef
|
||||
|
||||
|
||||
define Package/ddns-scripts-one/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/ddns
|
||||
$(INSTALL_BIN) ./files/usr/lib/ddns/update_one_com.sh \
|
||||
$(1)/usr/lib/ddns
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/share/ddns/default
|
||||
$(INSTALL_DATA) ./files/usr/share/ddns/default/one.com.json \
|
||||
$(1)/usr/share/ddns/default
|
||||
endef
|
||||
|
||||
define Package/ddns-scripts-one/prerm
|
||||
#!/bin/sh
|
||||
if [-z "${IPKG_INSTROOT}" ]; then
|
||||
/etc/init.d/ddns stop
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,ddns-scripts))
|
||||
$(eval $(call BuildPackage,ddns-scripts-services))
|
||||
$(eval $(call BuildPackage,ddns-scripts-cloudflare))
|
||||
@@ -577,3 +611,4 @@ $(eval $(call BuildPackage,ddns-scripts-gandi))
|
||||
$(eval $(call BuildPackage,ddns-scripts-pdns))
|
||||
$(eval $(call BuildPackage,ddns-scripts-transip))
|
||||
$(eval $(call BuildPackage,ddns-scripts-ns1))
|
||||
$(eval $(call BuildPackage,ddns-scripts-one))
|
||||
|
||||
Reference in New Issue
Block a user