mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
parent
6cc622e76f
commit
c4dd7991af
2 changed files with 5 additions and 61 deletions
|
@ -1,56 +0,0 @@
|
||||||
diff --git a/ddclient.in b/ddclient.in
|
|
||||||
index 7a66c5e..d236555 100755
|
|
||||||
--- a/ddclient.in
|
|
||||||
+++ b/ddclient.in
|
|
||||||
@@ -868,6 +868,7 @@ my %services = (
|
|
||||||
'apikey' => setv(T_PASSWD, 1, 0, '', undef),
|
|
||||||
'secretapikey' => setv(T_PASSWD, 1, 0, '', undef),
|
|
||||||
'on-root-domain' => setv(T_BOOL, 0, 0, 0, undef),
|
|
||||||
+ 'server' => setv(T_FQDNP, 1, 0, 'api.porkbun.com', undef),
|
|
||||||
'login' => setv(T_LOGIN, 0, 0, 'unused', undef),
|
|
||||||
'password' => setv(T_PASSWD, 0, 0, 'unused', undef),
|
|
||||||
'use' => setv(T_USE, 0, 0, 'disabled', undef),
|
|
||||||
@@ -7082,6 +7083,7 @@ sub nic_porkbun_update {
|
|
||||||
debug("\nnic_porkbun_update -------------------");
|
|
||||||
|
|
||||||
foreach my $host (@_) {
|
|
||||||
+ my $server = $config{$host}{'server'};
|
|
||||||
foreach my $ipv ('ipv4', 'ipv6') {
|
|
||||||
my $ip = delete $config{$host}{"want$ipv"};
|
|
||||||
if (!$ip) {
|
|
||||||
@@ -7099,7 +7101,7 @@ sub nic_porkbun_update {
|
|
||||||
info("setting %s address to %s for %s", $ipv, $ip, $host);
|
|
||||||
verbose("UPDATE:","updating %s", $host);
|
|
||||||
|
|
||||||
- my $url = "https://porkbun.com/api/json/v3/dns/retrieveByNameType/$domain/$rrset_type/$sub_domain";
|
|
||||||
+ my $url = "https://$server/api/json/v3/dns/retrieveByNameType/$domain/$rrset_type/$sub_domain";
|
|
||||||
my $data = encode_json({
|
|
||||||
secretapikey => $config{$host}{'secretapikey'},
|
|
||||||
apikey => $config{$host}{'apikey'},
|
|
||||||
@@ -7115,7 +7117,7 @@ sub nic_porkbun_update {
|
|
||||||
# No response, declare as failed
|
|
||||||
if (!defined($reply) || !$reply) {
|
|
||||||
$config{$host}{"status-$ipv"} = "bad";
|
|
||||||
- failed("updating %s: Could not connect to porkbun.com.", $host);
|
|
||||||
+ failed("updating %s: Could not connect to $server.", $host);
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
if (!header_ok($host, $reply)) {
|
|
||||||
@@ -7153,7 +7155,7 @@ sub nic_porkbun_update {
|
|
||||||
my $notes = $records->[0]->{'notes'};
|
|
||||||
debug("ttl = %s", $ttl);
|
|
||||||
debug("notes = %s", $notes);
|
|
||||||
- $url = "https://porkbun.com/api/json/v3/dns/editByNameType/$domain/$rrset_type/$sub_domain";
|
|
||||||
+ $url = "https://$server/api/json/v3/dns/editByNameType/$domain/$rrset_type/$sub_domain";
|
|
||||||
$data = encode_json({
|
|
||||||
secretapikey => $config{$host}{'secretapikey'},
|
|
||||||
apikey => $config{$host}{'apikey'},
|
|
||||||
@@ -7170,7 +7172,7 @@ sub nic_porkbun_update {
|
|
||||||
);
|
|
||||||
# No response, declare as failed
|
|
||||||
if (!defined($reply) || !$reply) {
|
|
||||||
- failed("updating %s: Could not connect to porkbun.com.", $host);
|
|
||||||
+ failed("updating %s: Could not connect to $server.", $host);
|
|
||||||
next;
|
|
||||||
}
|
|
||||||
if (!header_ok($host, $reply)) {
|
|
|
@ -1,20 +1,20 @@
|
||||||
# Template file for 'ddclient'
|
# Template file for 'ddclient'
|
||||||
pkgname=ddclient
|
pkgname=ddclient
|
||||||
version=3.11.2
|
version=4.0.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sysconfdir=/etc/ddclient"
|
configure_args="--sysconfdir=/etc"
|
||||||
hostmakedepends="automake curl"
|
hostmakedepends="automake curl"
|
||||||
depends="perl-JSON curl"
|
depends="perl-JSON curl"
|
||||||
checkdepends="$depends perl-HTTP-Daemon perl-Plack perl-HTTP-Message
|
checkdepends="$depends perl-HTTP-Daemon perl-Plack perl-HTTP-Message
|
||||||
perl-Test-MockModule perl-Test-Warnings curl net-tools"
|
perl-Test-MockModule perl-Test-Warnings curl net-tools"
|
||||||
short_desc="Perl client used to update dynamic DNS"
|
short_desc="Perl client used to update dynamic DNS"
|
||||||
maintainer="rogi <rogi@skylittlesystem.org>"
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://github.com/ddclient/ddclient"
|
homepage="https://github.com/ddclient/ddclient"
|
||||||
changelog="https://raw.githubusercontent.com/ddclient/ddclient/master/ChangeLog.md"
|
changelog="https://raw.githubusercontent.com/ddclient/ddclient/master/ChangeLog.md"
|
||||||
distfiles="https://github.com/ddclient/ddclient/archive/v${version}.tar.gz"
|
distfiles="https://github.com/ddclient/ddclient/archive/v${version}.tar.gz"
|
||||||
checksum=243cd832abd3cdd2b49903e1b5ed7f450e2d9c4c0eaf8ce4fe692c244d3afd77
|
checksum=4b37c99ac0011102d7db62f1ece7ff899b06df3d4b172e312703931a3c593c93
|
||||||
|
|
||||||
conf_files="/etc/ddclient/ddclient.conf"
|
conf_files="/etc/ddclient/ddclient.conf"
|
||||||
make_dirs="/var/cache/ddclient 0750 root root"
|
make_dirs="/var/cache/ddclient 0750 root root"
|
||||||
|
|
Loading…
Add table
Reference in a new issue