ddns: Import rename NoIP.com handle back to no-ip.com patch

Message ID 20191112080901.4038-1-stefan.schantl@ipfire.org
State Staged
Commit 4ae9d47ba3b72f8007c43256e1533a088abffe53
Headers show
Series
  • ddns: Import rename NoIP.com handle back to no-ip.com patch
Related show

Commit Message

Stefan Schantl Nov. 12, 2019, 8:09 a.m. UTC
This patch is required for compatiblity reasons for any existing
configurations.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 lfs/ddns                                      |  1 +
 .../ddns-012-noip-fix-handle-name.patch       | 36 +++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 src/patches/ddns-012-noip-fix-handle-name.patch

Patch

diff --git a/lfs/ddns b/lfs/ddns
index 8bfa92f77..47817c058 100644
--- a/lfs/ddns
+++ b/lfs/ddns
@@ -73,6 +73,7 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 	# Add upstream patch for fixing noip.com
 	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ddns-012-noip-rename-provider.patch
+	cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ddns-012-noip-fix-handle-name.patch
 
 	cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
 	cd $(DIR_APP) && ./configure \
diff --git a/src/patches/ddns-012-noip-fix-handle-name.patch b/src/patches/ddns-012-noip-fix-handle-name.patch
new file mode 100644
index 000000000..d1d281c34
--- /dev/null
+++ b/src/patches/ddns-012-noip-fix-handle-name.patch
@@ -0,0 +1,36 @@ 
+commit c0277eeea2b2c1ed8f40f1248b28438e44e51912
+Author: Stefan Schantl <stefan.schantl@ipfire.org>
+Date:   Tue Nov 12 08:43:31 2019 +0100
+
+    NoIP.com: Rename handle back to no-ip.com
+    
+    The old handle name is required for backward compatiblity.
+    
+    Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
+
+diff --git a/ddns.conf.sample b/ddns.conf.sample
+index 528684f..61a608a 100644
+--- a/ddns.conf.sample
++++ b/ddns.conf.sample
+@@ -120,7 +120,7 @@
+ # password = pass
+ 
+ # [test.noip.org]
+-# provider = noip.com
++# provider = no-ip.com
+ # username = user
+ # password = pass
+ 
+diff --git a/src/ddns/providers.py b/src/ddns/providers.py
+index 4789107..661fbcc 100644
+--- a/src/ddns/providers.py
++++ b/src/ddns/providers.py
+@@ -1344,7 +1344,7 @@ class DDNSProviderNamecheap(DDNSResponseParserXML, DDNSProvider):
+ 
+ 
+ class DDNSProviderNOIP(DDNSProtocolDynDNS2, DDNSProvider):
+-	handle    = "noip.com"
++	handle    = "no-ip.com"
+ 	name      = "NoIP"
+ 	website   = "http://www.noip.com/"
+ 	protocols = ("ipv4",)