public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] ddns: Import patch to support infomaniak.ch
Date: Mon, 22 Apr 2024 10:01:49 +0000	[thread overview]
Message-ID: <20240422100149.3680266-1-michael.tremer@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3238 bytes --]

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 lfs/ddns                                      |  1 +
 ...er-and-sample-configuration-for-info.patch | 61 +++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 src/patches/ddns-15-chore-add-provider-and-sample-configuration-for-info.patch

diff --git a/lfs/ddns b/lfs/ddns
index 274c12cb9..4b6d213c8 100644
--- a/lfs/ddns
+++ b/lfs/ddns
@@ -74,6 +74,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	# Apply upstream patches.
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-014-freednsafraid-fix-typo.patch
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-system-Catch-exception-when-host-is-not-dual-stacked.patch
+	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-15-chore-add-provider-and-sample-configuration-for-info.patch
 
 	cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
 	cd $(DIR_APP) && ./configure \
diff --git a/src/patches/ddns-15-chore-add-provider-and-sample-configuration-for-info.patch b/src/patches/ddns-15-chore-add-provider-and-sample-configuration-for-info.patch
new file mode 100644
index 000000000..ed5561eb5
--- /dev/null
+++ b/src/patches/ddns-15-chore-add-provider-and-sample-configuration-for-info.patch
@@ -0,0 +1,61 @@
+From e928b37b8f5509af195d1c56ecf89c3dbfdb0072 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rouven=20Sch=C3=BCrch?= <r.schuerch(a)gmx.ch>
+Date: Sun, 21 Apr 2024 13:11:52 +0200
+Subject: [PATCH] chore: add provider and sample configuration for
+ infomaniak.ch
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Rouven Schürch <r.schuerch(a)gmx.ch>
+Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
+---
+ ddns.conf.sample      |  6 +++++-
+ src/ddns/providers.py | 12 ++++++++++++
+ 2 files changed, 17 insertions(+), 1 deletion(-)
+
+diff --git a/ddns.conf.sample b/ddns.conf.sample
+index f93c738..f1adf5d 100644
+--- a/ddns.conf.sample
++++ b/ddns.conf.sample
+@@ -105,12 +105,16 @@
+ # username = key
+ # password = secret
+ 
+-
+ # [test.google.com]
+ # provider = domains.google.com
+ # username = user
+ # password = pass
+ 
++# [test.infomaniak.ch]
++# provider = infomaniak.ch
++# username = user
++# password = pass
++
+ # [test.loopia.se]
+ # provider = loopia.se
+ # username = user
+diff --git a/src/ddns/providers.py b/src/ddns/providers.py
+index 8025720..59f9665 100644
+--- a/src/ddns/providers.py
++++ b/src/ddns/providers.py
+@@ -2005,3 +2005,15 @@ class DDNSProviderZZZZ(DDNSProvider):
+ 
+ 		# If we got here, some other update error happened.
+ 		raise DDNSUpdateError
++
++class DDNSProviderInfomaniak(DDNSProtocolDynDNS2, DDNSProvider):
++	handle    = "infomaniak.ch"
++	name      = "infomaniak"
++	website   = "https://www.infomaniak.ch"
++	protocols = ("ipv4",)
++
++	# Detailed information about how to send the update request and possible response
++	# codes can be obtained from here.
++	# https://www.infomaniak.com/de/support/faq/2376/dyndns-aktualisieren-eines-dynamischen-dns-uber-die-api
++
++	url = "https://infomaniak.com/nic/update"
+-- 
+2.39.2
+
-- 
2.39.2


                 reply	other threads:[~2024-04-22 10:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240422100149.3680266-1-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox