From patchwork Mon Apr 22 10:01:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 7748 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4VNLQ206bbz3wkf for ; Mon, 22 Apr 2024 10:02:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VNLPz73q7z2VV; Mon, 22 Apr 2024 10:01:59 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4VNLPz5p9kz32w8; Mon, 22 Apr 2024 10:01:59 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4VNLPw5k86z32w0 for ; Mon, 22 Apr 2024 10:01:56 +0000 (UTC) Received: from michael.haj.ipfire.org (michael.haj.ipfire.org [172.28.1.242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "michael.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VNLPv1mlwzGb; Mon, 22 Apr 2024 10:01:55 +0000 (UTC) Received: by michael.haj.ipfire.org (Postfix, from userid 0) id 4VNLPv0nchzThlF; Mon, 22 Apr 2024 10:01:55 +0000 (UTC) From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] ddns: Import patch to support infomaniak.ch Date: Mon, 22 Apr 2024 10:01:49 +0000 Message-Id: <20240422100149.3680266-1-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Message-ID-Hash: NSZKYUB4CCTGDOEWAI5NNQY4Q543ZG6R X-Message-ID-Hash: NSZKYUB4CCTGDOEWAI5NNQY4Q543ZG6R X-MailFrom: root@michael.haj.ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: =?utf-8?q?Rouven_Sch=C3=BCrch?= , Michael Tremer X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Michael Tremer --- 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?= +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 +Signed-off-by: Michael Tremer +--- + 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 +