From d2800e7d50f0cf574267ea1f18c81b94da29e7c0 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Thu, 14 Jun 2007 06:31:37 +0000 Subject: [PATCH] Patches directory added git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk/svn@55 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- patches/3com-oc-remote812.patch | 20 +++++++++++++++ patches/easydns.patch | 44 +++++++++++++++++++++++++++++++++ patches/eurodns.patch | 7 ++++++ 3 files changed, 71 insertions(+) create mode 100644 patches/3com-oc-remote812.patch create mode 100644 patches/easydns.patch create mode 100644 patches/eurodns.patch diff --git a/patches/3com-oc-remote812.patch b/patches/3com-oc-remote812.patch new file mode 100644 index 0000000..46f744a --- /dev/null +++ b/patches/3com-oc-remote812.patch @@ -0,0 +1,20 @@ +# +# patch created with `svn diff -r53 . > patches/3com-oc-remote812.patch` +# on Wed Jun 6 15:07:45 CEST 2007 +# applied on r53 +# +# This patch was send to me by The_Beast on IRC. +# +Index: ddclient +=================================================================== +--- ddclient (revision 53) ++++ ddclient (working copy) +@@ -162,7 +162,7 @@ + '3com-oc-remote812' => { + 'name' => '3com OfficeConnect Remote 812', + 'url' => '/callEvent', +- 'skip' => '.*IP address in use', ++ 'skip' => '.*LOCAL', + }, + 'e-tech' => { + 'name' => 'E-tech Router', diff --git a/patches/easydns.patch b/patches/easydns.patch new file mode 100644 index 0000000..7458fe4 --- /dev/null +++ b/patches/easydns.patch @@ -0,0 +1,44 @@ +# +# patch from +# +--- ddclient 2004-11-24 17:23:56.000000000 +0100 ++++ ddclient.orig 2005-01-25 10:03:22.640483000 +0100 +@@ -257,6 +257,11 @@ + 'mx' => setv(T_OFQDN, 0, 1, 1, '', undef), + 'backupmx' => setv(T_BOOL, 0, 1, 1, 0, undef), + }, ++ 'easydns-common-defaults' => { ++ 'wildcard' => setv(T_BOOL, 0, 1, 1, 0, undef), ++ 'mx' => setv(T_OFQDN, 0, 1, 1, '', undef), ++ 'backupmx' => setv(T_BOOL, 0, 1, 1, 0, undef), ++ }, + 'dnspark-common-defaults' => { + 'mx' => setv(T_OFQDN, 0, 1, 1, '', undef), + 'mxpri' => setv(T_NUMBER, 0, 0, 1, 5, undef), +@@ -319,6 +324,7 @@ + 'variables' => merge( + { 'server' => setv(T_FQDNP, 1, 0, 1, 'members.easydns.com', undef) }, + { 'min-interval' => setv(T_DELAY, 0, 0, 1, interval('5m'), 0),}, ++ $variables{'easydns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, +@@ -2487,14 +2493,14 @@ + info("setting IP address to %s for %s", $ip, $hosts); + verbose("UPDATE:","updating %s", $hosts); + +- #'http://members.easydns.com:80/dyn/ez-ipupdate.php?action=edit&myip=10.20.30.40&host_id=test.burry.ca&' ++ #'http://members.easydns.com/dyn/dyndns.php?hostname=test.burry.ca&myip=10.20.30.40&wildcard=ON' + + my $url; +- $url = "http://$config{$h}{'server'}/dyn/ez-ipupdate.php?action=edit"; +- $url .= "&host_id=$hosts"; ++ $url = "http://$config{$h}{'server'}/dyn/dyndns.php?"; ++ $url .= "hostname=$hosts"; + $url .= "&myip="; + $url .= $ip if $ip; +- $url .= "&wildcard=" . ynu($config{$h}{'wildcard'}, 'YES', 'NO', 'NO') if defined $config{$h}{'wildcard'}; ++ $url .= "&wildcard=" . ynu($config{$h}{'wildcard'}, 'ON', 'OFF', 'OFF') if defined $config{$h}{'wildcard'}; + + if ($config{$h}{'mx'}) { + $url .= "&mx=$config{$h}{'mx'}"; diff --git a/patches/eurodns.patch b/patches/eurodns.patch new file mode 100644 index 0000000..ced8da3 --- /dev/null +++ b/patches/eurodns.patch @@ -0,0 +1,7 @@ +2252a2253,2254 +> #my $url = "http://$config{$h}{'server'}/nic/update?system="; +> +2253a2256,2258 +> if ($config{$h}{'server'} =~ /.*eurodyndns.*/i) { #hack for EuroDynDNS +> $url = "http://$config{$h}{'server'}/update/?system="; +> }