Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 1 addition & 37 deletions net/ddns-scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ddns-scripts
PKG_VERSION:=2.8.2
PKG_RELEASE:=81
PKG_RELEASE:=82

PKG_LICENSE:=GPL-2.0

Expand Down Expand Up @@ -143,22 +143,6 @@ define Package/ddns-scripts-digitalocean/description
'option password' the api token generated in the DO panel
endef

define Package/ddns-scripts-ovh
$(call Package/ddns-scripts/Default)
TITLE:=Extension for OVH Dynhost
DEPENDS:=ddns-scripts +curl +openssl-util
PROVIDES:=ddns-scripts_ovh-dynhost
endef

define Package/ddns-scripts-ovh/description
Dynamic DNS Client scripts extension for ovh.com DynHost API.
The script directly updates a DNS record using the OVH DynHost API.
It requires:
'option domain' the dns domain to update the record for (eg. A-record: home.<example.com>)
'option username' the dynhost user
'option password' the dynhost password
endef

define Package/ddns-scripts-dnspod
$(call Package/ddns-scripts/Default)
TITLE:=Extension for dnspod.cn API
Expand Down Expand Up @@ -438,7 +422,6 @@ define Package/ddns-scripts-services/install
rm $(1)/usr/share/ddns/default/freedns.42.pl.json
rm $(1)/usr/share/ddns/default/godaddy.com-v1.json
rm $(1)/usr/share/ddns/default/digitalocean.com-v2.json
rm $(1)/usr/share/ddns/default/ovh.com.json
rm $(1)/usr/share/ddns/default/dnspod.cn.json
rm $(1)/usr/share/ddns/default/dnspod.cn-v3.json
rm $(1)/usr/share/ddns/default/no-ip.com.json
Expand Down Expand Up @@ -579,24 +562,6 @@ fi
exit 0
endef

define Package/ddns-scripts-ovh/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_ovh_com.sh \
$(1)/usr/lib/ddns

$(INSTALL_DIR) $(1)/usr/share/ddns/default
$(INSTALL_DATA) ./files/usr/share/ddns/default/ovh.com.json \
$(1)/usr/share/ddns/default
endef

define Package/ddns-scripts-ovh/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/ddns stop
fi
exit 0
endef

define Package/ddns-scripts-dnspod/install
$(INSTALL_DIR) $(1)/usr/lib/ddns
$(INSTALL_BIN) ./files/usr/lib/ddns/update_dnspod_cn.sh \
Expand Down Expand Up @@ -890,7 +855,6 @@ $(eval $(call BuildPackage,ddns-scripts-gcp))
$(eval $(call BuildPackage,ddns-scripts-freedns))
$(eval $(call BuildPackage,ddns-scripts-godaddy))
$(eval $(call BuildPackage,ddns-scripts-digitalocean))
$(eval $(call BuildPackage,ddns-scripts-ovh))
$(eval $(call BuildPackage,ddns-scripts-dnspod))
$(eval $(call BuildPackage,ddns-scripts-dnspod-v3))
$(eval $(call BuildPackage,ddns-scripts-noip))
Expand Down
32 changes: 0 additions & 32 deletions net/ddns-scripts/files/usr/lib/ddns/update_ovh_com.sh

This file was deleted.

6 changes: 4 additions & 2 deletions net/ddns-scripts/files/usr/share/ddns/default/ovh.com.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "ovh.com",
"ipv4": {
"url": "update_ovh_com.sh"
"url": "https://[USERNAME]:[PASSWORD]@dns.eu.ovhapis.com/nic/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]",
"answer": "good|nochg"
},
"ipv6": {
"url": "update_ovh_com.sh"
"url": "https://[USERNAME]:[PASSWORD]@dns.eu.ovhapis.com/nic/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]",
"answer": "good|nochg"
}
}