From patchwork Sun Jul 11 09:54:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 4504 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GN2LM3r1fz3xCm for ; Sun, 11 Jul 2021 09:54:35 +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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GN2LK50VPz13j; Sun, 11 Jul 2021 09:54:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GN2LK3dh7z2xW7; Sun, 11 Jul 2021 09:54:33 +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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GN2LH2PdMz2xQm for ; Sun, 11 Jul 2021 09:54:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GN2LG3TYDzmP; Sun, 11 Jul 2021 09:54:30 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1625997270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=icpkpf9xGjxznk7zDSnlN2IZdECIBUz24te0L1pyFfY=; b=6RuQiXeAdM1OfCsijDAUTyiA+BrP4+7iKy5CY7tiz7tMUkWpDXvxCZd5IjmCWee3Zw4isA kxKS5TUAABZWcxAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1625997270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=icpkpf9xGjxznk7zDSnlN2IZdECIBUz24te0L1pyFfY=; b=gjBzKRB01aPyPXPV+2cDrkrT9a/eex4w2Oo4c34B/2B2w/R3YJtBNrUCYorEeMWKFX83rN SvZNn6Vz/oi2F7MapD2ekQEXOZTLUiuv1YXMdywIn7VAzK0vaL9g6M2609cpDOjyj9r587 giL6/sJeEnSsOfEmPEiNiyoE5ZJI2mpcPj9taMtPjGRXABYb4WUguEL8TZ7wtxBXHNsALP GqY42p6DyqowxU00fEPHwm67cOb880Z6HsW0sN2EZugQD6ELem4QQA/bDUWlBZTIx4x0sE RZo/saLFmHA2zlrKs8m1mJKSDwSfCaD5NZlc4EYGf6B8vaMXvEHvPs8ztQtSpQ== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] ddns: Add upstream patch to add support for he.net Date: Sun, 11 Jul 2021 11:54:23 +0200 Message-Id: <20210711095423.63701-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- lfs/ddns | 1 + src/patches/ddns-013-add-he-net.patch | 36 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/patches/ddns-013-add-he-net.patch diff --git a/lfs/ddns b/lfs/ddns index 538cf7256..0ad7a3e92 100644 --- a/lfs/ddns +++ b/lfs/ddns @@ -78,6 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-add-option-to-list-token-provider.patch cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-proper-encode-string.patch cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-fix-argparse-list-token-providers.patch + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-add-he-net.patch cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh cd $(DIR_APP) && ./configure \ diff --git a/src/patches/ddns-013-add-he-net.patch b/src/patches/ddns-013-add-he-net.patch new file mode 100644 index 000000000..752f32909 --- /dev/null +++ b/src/patches/ddns-013-add-he-net.patch @@ -0,0 +1,36 @@ +commit a026b2734b73ef177686ab36c66743ae58bdef56 +Author: Jhon Crowley +Date: Sun Jul 11 11:36:37 2021 +0200 + + Add support for he.net + + Signed-off-by: Jhon Crowley + Signed-off-by: Stefan Schantl + +diff --git a/src/ddns/providers.py b/src/ddns/providers.py +index 56e6620..2f1804b 100644 +--- a/src/ddns/providers.py ++++ b/src/ddns/providers.py +@@ -1218,6 +1218,22 @@ class DDNSProviderFreeDNSAfraidOrg(DDNSProvider): + raise DDNSUpdateError + + ++class DDNSProviderHENet(DDNSProtocolDynDNS2, DDNSProvider): ++ handle = "he.net" ++ name = "he.net" ++ website = "https://he.net" ++ protocols = ("ipv6", "ipv4",) ++ ++ # Detailed information about the update api can be found here. ++ # http://dns.he.net/docs.html ++ ++ url = "https://dyn.dns.he.net/nic/update" ++ @property ++ def username(self): ++ return self.get("hostname") ++ ++ ++ + class DDNSProviderItsdns(DDNSProtocolDynDNS2, DDNSProvider): + handle = "inwx.com" + name = "INWX"