summaryrefslogtreecommitdiff
path: root/packages/ddclient
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-12-01 01:13:28 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-12-01 01:19:27 -0600
commit368b89ef056dbb412520dd49bd21611b8c7c1cb5 (patch)
tree42e212421bb5bed4e10ebdae18387b489322d064 /packages/ddclient
parente4e3701775b91d3f3efc422e3a9e1777a6aa0ec9 (diff)
downloadvyos-build-368b89ef056dbb412520dd49bd21611b8c7c1cb5.tar.gz
vyos-build-368b89ef056dbb412520dd49bd21611b8c7c1cb5.zip
ddclient: T5797: Upgrade to ddclient 3.11.2
Upgrade to ddclient 3.11.2 and remove the patches that are now included in the release version.
Diffstat (limited to 'packages/ddclient')
-rw-r--r--packages/ddclient/Jenkinsfile2
-rw-r--r--packages/ddclient/patches/z1_duckdns-ipv4-ipv6-pr588.patch67
2 files changed, 1 insertions, 68 deletions
diff --git a/packages/ddclient/Jenkinsfile b/packages/ddclient/Jenkinsfile
index 3d4e2f42..317362e9 100644
--- a/packages/ddclient/Jenkinsfile
+++ b/packages/ddclient/Jenkinsfile
@@ -25,7 +25,7 @@ def pkgList = [
'scmUrl': 'https://salsa.debian.org/debian/ddclient',
'buildCmd': '/bin/true'],
['name': 'ddclient-github',
- 'scmCommit': 'v3.11.1',
+ 'scmCommit': 'v3.11.2',
'scmUrl': 'https://github.com/ddclient/ddclient',
'buildCmd': 'cd ..; ./build.sh'],
]
diff --git a/packages/ddclient/patches/z1_duckdns-ipv4-ipv6-pr588.patch b/packages/ddclient/patches/z1_duckdns-ipv4-ipv6-pr588.patch
deleted file mode 100644
index e80d16d7..00000000
--- a/packages/ddclient/patches/z1_duckdns-ipv4-ipv6-pr588.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-From 3a224b66a4fa5758427dfe131a33e6337eebeff7 Mon Sep 17 00:00:00 2001
-From: Indrajit Raychaudhuri <irc@indrajit.com>
-Date: Thu, 2 Nov 2023 18:56:31 -0500
-Subject: [PATCH] duckdns: Adjust script to support simultaneous IPv4 and IPv6
- updates
-
-Ref: ddclient/ddclient#588
----
- ddclient.in | 25 ++++++++++++++-----------
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
-diff --git a/ddclient.in b/ddclient.in
-index f38db33f..1d8a16a2 100755
---- a/ddclient.in
-+++ b/ddclient.in
-@@ -6477,8 +6477,10 @@ sub nic_duckdns_update {
- ## update each configured host
- ## should improve to update in one pass
- foreach my $h (@_) {
-- my $ip = delete $config{$h}{'wantip'};
-- info("setting IP address to %s for %s", $ip, $h);
-+ my $ipv4 = delete $config{$h}{'wantipv4'};
-+ my $ipv6 = delete $config{$h}{'wantipv6'};
-+ info("setting IPv4 address to %s for %s", $ipv4, $h) if $ipv4;
-+ info("setting IPv6 address to %s for %s", $ipv6, $h) if $ipv6;
- verbose("UPDATE:", "updating %s", $h);
-
- # Set the URL that we're going to to update
-@@ -6488,13 +6490,8 @@ sub nic_duckdns_update {
- $url .= $h;
- $url .= "&token=";
- $url .= $config{$h}{'password'};
-- if (is_ipv6($ip)) {
-- $url .= "&ipv6=";
-- } else {
-- $url .= "&ip=";
-- }
-- $url .= $ip;
--
-+ $url .= "&ip=$ipv4" if $ipv4;
-+ $url .= "&ipv6=$ipv6" if $ipv6;
-
- # Try to get URL
- my $reply = geturl(proxy => opt('proxy'), url => $url);
-@@ -6512,14 +6509,20 @@ sub nic_duckdns_update {
-
- foreach $line (@reply) {
- if ($line eq 'OK') {
-- $config{$h}{'ip'} = $ip;
-+ $config{$h}{'ipv4'} = $ipv4 if $ipv4;
-+ $config{$h}{'ipv6'} = $ipv6 if $ipv6;
- $config{$h}{'mtime'} = $now;
- $config{$h}{'status'} = 'good';
-+ $config{$h}{'status-ipv4'} = 'good' if $ipv4;
-+ $config{$h}{'status-ipv6'} = 'good' if $ipv6;
- $state = 'result';
-- success("updating %s: good: IP address set to %s", $h, $ip);
-+ success("updating %s: good: IPv4 address set to %s", $h, $ipv4) if $ipv4;
-+ success("updating %s: good: IPv6 address set to %s", $h, $ipv6) if $ipv6;
-
- } elsif ($line eq 'KO') {
- $config{$h}{'status'} = 'failed';
-+ $config{$h}{'status-ipv4'} = 'failed' if $ipv4;
-+ $config{$h}{'status-ipv6'} = 'failed' if $ipv6;
- $state = 'result';
- failed("updating %s: Server said: '%s'", $h, $line);
- }