new version of ddclient, this time supporting dns.he.net instead of everydns.net
This commit is contained in:
parent
4ff35f55d1
commit
5f62c6a6c7
6 changed files with 95 additions and 40 deletions
|
@ -1,15 +0,0 @@
|
|||
--- ddclient.orig 2005-01-16 15:18:36.485003496 -0500
|
||||
+++ ddclient 2005-01-16 15:19:15.628052848 -0500
|
||||
@@ -924,6 +924,12 @@
|
||||
my $def = $variables{'merged'}{$k};
|
||||
my $ovalue = define($globals{$k}, $def->{'default'});
|
||||
my $value = check_value($ovalue, $def);
|
||||
+
|
||||
+ # we should really be allowed to set daemon to 0 in the config file
|
||||
+ if ($k eq 'daemon' && $ovalue == 0) {
|
||||
+ $value = $ovalue;
|
||||
+ }
|
||||
+
|
||||
if ($def->{'required'} && !defined $value) {
|
||||
$value = default($k);
|
||||
warning("'%s=%s' is an invalid %s. (using default of %s)", $k, $ovalue, $def->{'type'}, $value);
|
|
@ -1,11 +0,0 @@
|
|||
--- ddclient.bak 2003-11-05 10:42:33.000000000 +1000
|
||||
+++ ddclient 2003-11-05 10:52:55.000000000 +1000
|
||||
@@ -20,7 +20,7 @@
|
||||
$program =~ s/d$//;
|
||||
my $now = time;
|
||||
my $hostname = hostname();
|
||||
-my $etc = ($program =~ /test/i) ? './' : '/etc/';
|
||||
+my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
|
||||
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
|
||||
my $msgs = '';
|
||||
my $last_msgs = '';
|
|
@ -1,11 +0,0 @@
|
|||
--- ddclient.bak 2003-11-05 10:42:33.000000000 +1000
|
||||
+++ ddclient 2003-11-05 10:48:12.000000000 +1000
|
||||
@@ -2629,7 +2629,7 @@
|
||||
my $h = pop @hosts;
|
||||
|
||||
$config{$h}{'status'} = $status;
|
||||
- if ($status eq 'ok') {
|
||||
+ if ($status eq 'ok' || $status eq 'nochange') {
|
||||
$config{$h}{'ip'} = $ip;
|
||||
$config{$h}{'mtime'} = $now;
|
||||
success("updating %s: %s: IP address set to %s", $h, $status, $ip);
|
14
net-dns/ddclient/files/ddclient-noip-he-dot-net.patch
Normal file
14
net-dns/ddclient/files/ddclient-noip-he-dot-net.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- ddclient.orig 2009-01-27 20:14:02.000000000 +0100
|
||||
+++ ddclient 2011-05-12 01:34:15.995845012 +0200
|
||||
@@ -2460,9 +2460,8 @@
|
||||
info("setting IP address to %s for %s", $ip, $hosts);
|
||||
verbose("UPDATE:","updating %s", $hosts);
|
||||
|
||||
- my $url = "http://$config{$h}{'server'}/nic/update?system=";
|
||||
- $url .= 'noip';
|
||||
- $url .= "&hostname=$hosts";
|
||||
+ my $url = "http://$config{$h}{'server'}/nic/update?";
|
||||
+ $url .= "hostname=$hosts";
|
||||
$url .= "&myip=";
|
||||
$url .= $ip if $ip;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue