/[smecontribs]/rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-for-3.11.1-deprecated-commands-in-template.patch
ViewVC logotype

Annotation of /rpms/smeserver-ddclient/contribs10/smeserver-ddclient-1.3.0-Update-for-3.11.1-deprecated-commands-in-template.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Nov 10 15:53:01 2023 UTC (6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-ddclient-1_3_0-31_el7_sme, smeserver-ddclient-1_3_0-32_el7_sme, smeserver-ddclient-1_3_0-33_el7_sme, smeserver-ddclient-1_3_0-30_el7_sme, smeserver-ddclient-1_3_0-29_el7_sme, smeserver-ddclient-1_3_0-28_el7_sme, HEAD
* Fri Nov 10 2023 Brian Read <brianr@koozali.org> 1.3.0-28.sme
- Update template for deprescated commands and v3.11.1 ddclient [SME: 12427 ]

1 brianr 1.1 diff -urN smeserver-ddclient-1.3.0.old/root/etc/ddclient/ddclient.conf smeserver-ddclient-1.3.0/root/etc/ddclient/ddclient.conf
2     --- smeserver-ddclient-1.3.0.old/root/etc/ddclient/ddclient.conf 2023-11-10 09:25:15.876260657 +0000
3     +++ smeserver-ddclient-1.3.0/root/etc/ddclient/ddclient.conf 2023-11-10 09:31:42.619348295 +0000
4     @@ -15,6 +15,8 @@
5     ## Warning: not all supported routers or dynamic DNS services
6     ## are mentioned here.
7     ##
8     +## AND THIS FILE IS OUT OF DATE - IN PARTICULAR THE USE OF "use" and "web" is deprecated!
9     +## (bjr Nov2023)
10     ######################################################################
11     daemon=300 # check every 300 seconds
12     syslog=yes # log update msgs to syslog
13     diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers
14     --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2023-11-10 09:25:16.042261124 +0000
15     +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2023-11-10 15:05:00.000000000 +0000
16     @@ -3,7 +3,7 @@
17     if ($deamonupdate <= 360) {$deamonupdate = 360;} # Confuses ddclient runs if less than 5 minutes
18     my $ssl = ${ddclient}{SSL} || 'yes';
19     $OUT .= qq(
20     -daemon=$deamonupdate # check every $deamonupdate seconds
21     +daemon=$deamonupdate # check every $deamonupdate seconds
22     syslog=yes # log update msgs to syslog
23     pid=/var/run/ddclient.pid # record PID in file.
24     ssl=$ssl # Set SSL
25     @@ -27,9 +27,11 @@
26     $OUT .= "mail-failure=$mailFailure\n";
27    
28     my $method = $ddclient{'method'}||'web';
29     - my $webskip = $ddclient{'webskip'}||'IP Address:';
30     - my $cmdskip = $ddclient{'cmdskip'}||'';
31     - my $ifskip = $ddclient{'ifskip'}||'';
32     +
33     +# my $webskip = $ddclient{'webskip'}||'IP Address:'; #No longer supported for v3.11.1
34     +# my $cmdskip = $ddclient{'cmdskip'}||''; #No longer supported for v3.11.1
35     +# my $ifskip = $ddclient{'ifskip'}||''; #No longer supported for v3.11.1
36     +
37     my $Extinterface = $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| '';
38     my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress';
39     my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || '';
40     @@ -37,31 +39,31 @@
41     if ( $method eq 'smeIF' ) {
42     # we use SME db to get the external interface NAME : ppp0, eth1, tap0...
43     $Extinterface = $ExternalInterface{'Name'} ||$Extinterface;
44     - $OUT .="use=if, if=$Extinterface\n";
45     + $OUT .="usev4=ifv4, ifv4=$Extinterface\n";
46     } elsif ( $method eq 'smeCMD') {
47     # we choose to just get the value from configuration DB
48     - $OUT .="use=cmd, cmd='/sbin/e-smith/db configuration getprop ExternalInterface IPAddress'\n";
49     + $OUT .="usev4=cmdv4, cmdv4='/sbin/e-smith/db configuration getprop ExternalInterface IPAddress'\n";
50     } elsif ( $method eq 'web') {
51     # old good way, we get the value from an external web page. best if we are not gateway
52     - $OUT .="use=web, web=$ddclient{'urlcheckip'}, web-skip='$webskip' \n"; #Do not add / as may be web service id, not url
53     + $OUT .="usev4=webv4, webv4=$ddclient{'urlcheckip'} \n"; #Do not add / as may be web service id, not url
54     } elsif ( $method eq 'if') {
55     - # we have a specific configuation and can not trust sme to get the interface correctly
56     - $OUT .="use=if, if=$Extinterface\n"; #if-skip no longer required / deprecated
57     + # we have a specific configuration and can not trust sme to get the interface correctly
58     + $OUT .="usev4=ifv4, ifv4=$Extinterface\n"; #if-skip no longer required / deprecated
59     } elsif ( $method eq 'ip') {
60     # we want to force manually
61     - $OUT.="use=ip, ip=$ForceIP \n";
62     + $OUT.="usev4=ipv4, ipv4=$ForceIP \n";
63     } elsif ( $method eq 'cmd') {
64     - $OUT .="use=cmd, cmd='$cmd', cmd-skip='$cmdskip' \n";
65     + $OUT .="usev4=cmd, cmdv4='$cmd'\n";
66     } else {
67     # fw method
68     my $fwaddress = $ddclient{'fwaddress'}||'';
69     my $fwlogin = $ddclient{'fwlogin'}||'';
70     my $fwpassword = $ddclient{'fwpassword'}||'';
71     my $fwskip = $ddclient{'fwskip'}||'';
72     - $OUT .= "use=$method, fw=$fwaddress";
73     + $OUT .= "usev4=$method, fwv4=$fwaddress";
74     $OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' );
75     $OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' );
76     - $OUT .= ", fw-skip='$fwskip' " if ( $fwskip ne '' );
77     + $OUT .= ", fwv4-skip='$fwskip' " if ( $fwskip ne '' );
78     $OUT .= "\n";
79     }
80    
81     diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration
82     --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration 2023-11-10 09:25:16.017261054 +0000
83     +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration 2023-11-10 14:48:00.000000000 +0000
84     @@ -10,150 +10,154 @@
85     {
86    
87     my $dns = $edom->prop('dns') || '';
88     - next if ($dns eq '');
89     + next if ($dns eq '');
90     +
91     $dns =~ tr/a-z/A-Z/;
92     my $login = $edom->prop('login');
93     my $password = $edom->prop('password');
94     - my $customdns = $edom->prop('customdns') || '';
95     - my $customprotocol = $edom->prop('customprotocol') || '';
96     - my $pubserv='';
97     - my $static='';
98     - my $custom='';
99     - my $wildcard='';
100     + my $customdns = $edom->prop('customdns') || '';
101     + my $customprotocol = $edom->prop('customprotocol') || '';
102     +
103     + # my $pubserv=''; #nbot needed for v3.11.1
104     + # Not sure if wee need these either!
105     + my $static=$edom->prop('static') || '';
106     + my $custom=$edom->prop('custom') || '';
107     + my $wildcard=$edom->prop('wildcard') || '';
108     + my $backupmx=$edom->prop('backupmx') || '';
109     +
110     my $mx=$edom->prop('mx') || '';
111     - my $backupmx='';
112     - my $protocol='';
113     - my $explain='';
114     -
115     - if( $dns eq 'DYNDNS1')
116     - {
117     - $explain='## dyndns.org dynamic addresses';
118     - $pubserv ='members.dyndns.org';
119     - $protocol='dyndns2';
120     - $static='no';
121     - $custom='no';
122     - $wildcard='yes';
123     - }
124     - elsif( $dns eq 'DYNDNS2')
125     - {
126     - $explain='## dyndns.org static addresses';
127     - $pubserv ='members.dyndns.org';
128     - $protocol='dyndns2';
129     - $static ='yes';
130     - $custom ='no';
131     - $wildcard='yes';
132     - }
133     - elsif( $dns eq 'DYNDNS3')
134     - {
135     - $explain='## dyndns.org static2 addresses';
136     - $pubserv='members.dyndns.org';
137     - $custom ='yes';
138     - $protocol='dyndns2';
139     - $static ='';
140     - $wildcard='yes';
141     - }
142     - elsif( $dns eq 'ZONEDIT')
143     - {
144     - $explain='## zoneedit dynamic addresses';
145     - $pubserv='dynamic.zoneedit.com';
146     - $protocol='zoneedit1';
147     - }
148     - elsif( $dns eq 'EASYDNS')
149     - {
150     - $explain='## easydns.com dynamic addresses';
151     - $pubserv='members.easydns.com';
152     - $protocol='easydns';
153     - }
154     - elsif( $dns eq 'HAMMER')
155     - {
156     - $explain='## hammer dup.hn.org dynamic addresses';
157     - $pubserv='dup.hn.org';
158     - $protocol='hammernode1';
159     - }
160     - elsif( $dns eq 'DSLREPORTS' )
161     - {
162     - $explain='## dslreports.org dynamic addresses';
163     - $pubserv='members.dslreports.com';
164     - $protocol='dslreports1';
165     - }
166     - elsif( $dns eq 'EURODYNDNS' )
167     - {
168     - $explain='## euroddyndns.org dynamic addresses';
169     - $pubserv='eurodyndns.org';
170     - $protocol='namecheap';
171     - }
172     - elsif( $dns eq 'DTDNS' )
173     - {
174     - $explain='## DtDNS (www.dtdns.com) dynamic addresses';
175     - $pubserv='www.dtdns.com';
176     - $protocol='dtdns';
177     - }
178     - elsif( $dns eq 'LOOPIA' )
179     - {
180     - $explain='## Loopia (loopia.se) dynamic addresses';
181     - $pubserv='dns.loopia.se';
182     - $protocol='dyndns2';
183     - }
184     - elsif( $dns eq 'DNSPARK' )
185     - {
186     - $explain='## dnspark.com dynamic addresses';
187     - $pubserv='www.dnspark.com';
188     - $protocol='dnspark';
189     - }
190     - elsif( $dns eq 'DYNHOST' )
191     - {
192     - $explain='## DynHost (ovh.com) dynamic addresses';
193     - $pubserv='www.ovh.com';
194     - $protocol='dyndns2';
195     - }
196     - elsif( $dns eq 'NOIP' )
197     - {
198     - $explain='## Noip (noip.com) dynamic addresses';
199     - $pubserv='dynupdate.no-ip.com';
200     - $protocol='noip';
201     - }
202     - elsif( $dns eq 'CHANGEIP' )
203     - {
204     - $explain='## ChangeIP (changeip.com) dynamic addresses';
205     - $pubserv='nic.changeip.com';
206     - $protocol='dyndns2';
207     - }
208     -
209     - elsif( $dns eq 'NAMECHEAP' )
210     - {
211     - $explain='## NAMECHEAP (namecheap.com) dynamic addresses';
212     - $pubserv='dynamicdns.park-your-domain.com';
213     - $protocol='namecheap';
214     - }
215     + my $protocol=$dns;
216     + my $explain='## '.$edom->prop('dns').' dynamic address';
217    
218     - elsif( $dns eq 'SPDNS' )
219     - {
220     - $explain='## SPDNS (spdyn.de FORMER spdns.de) dynamic addresses';
221     - $pubserv='update.spdyn.de'; # update.spdyn.de (IPv4 + IPv6) update4.spdyn.de (IPv4 only) update6.spdyn.de (IPv6 only)
222     - $protocol='dyndns2';
223     - }
224     - elsif( $dns eq 'CUSTOMDNS' )
225     - {
226     - $explain='## CUSTOMDNS PROVIDER dynamic addresses';
227     - $pubserv= $customdns;
228     - $protocol= $customprotocol;
229     - }
230     + #if( $dns eq 'DYNDNS1')
231     + #{
232     + #$explain='## dyndns.org dynamic addresses';
233     + #$pubserv ='members.dyndns.org';
234     + #$protocol='dyndns2';
235     + #$static='no';
236     + #$custom='no';
237     + #$wildcard='yes';
238     + #}
239     + #elsif( $dns eq 'DYNDNS2')
240     + #{
241     + #$explain='## dyndns.org static addresses';
242     + #$pubserv ='members.dyndns.org';
243     + #$protocol='dyndns2';
244     + #$static ='yes';
245     + #$custom ='no';
246     + #$wildcard='yes';
247     + #}
248     + #elsif( $dns eq 'DYNDNS3')
249     + #{
250     + #$explain='## dyndns.org static2 addresses';
251     + #$pubserv='members.dyndns.org';
252     + #$custom ='yes';
253     + #$protocol='dyndns2';
254     + #$static ='';
255     + #$wildcard='yes';
256     + #}
257     + #elsif( $dns eq 'ZONEDIT')
258     + #{
259     + #$explain='## zoneedit dynamic addresses';
260     + #$pubserv='dynamic.zoneedit.com';
261     + #$protocol='zoneedit1';
262     + #}
263     + #elsif( $dns eq 'EASYDNS')
264     + #{
265     + #$explain='## easydns.com dynamic addresses';
266     + #$pubserv='members.easydns.com';
267     + #$protocol='easydns';
268     + #}
269     + #elsif( $dns eq 'HAMMER')
270     + #{
271     + #$explain='## hammer dup.hn.org dynamic addresses';
272     + #$pubserv='dup.hn.org';
273     + #$protocol='hammernode1';
274     + #}
275     + #elsif( $dns eq 'DSLREPORTS' )
276     + #{
277     + #$explain='## dslreports.org dynamic addresses';
278     + #$pubserv='members.dslreports.com';
279     + #$protocol='dslreports1';
280     + #}
281     + #elsif( $dns eq 'EURODYNDNS' )
282     + #{
283     + #$explain='## euroddyndns.org dynamic addresses';
284     + #$pubserv='eurodyndns.org';
285     + #$protocol='namecheap';
286     + #}
287     + #elsif( $dns eq 'DTDNS' )
288     + #{
289     + #$explain='## DtDNS (www.dtdns.com) dynamic addresses';
290     + #$pubserv='www.dtdns.com';
291     + #$protocol='dtdns';
292     + #}
293     + #elsif( $dns eq 'LOOPIA' )
294     + #{
295     + #$explain='## Loopia (loopia.se) dynamic addresses';
296     + #$pubserv='dns.loopia.se';
297     + #$protocol='dyndns2';
298     + #}
299     + #elsif( $dns eq 'DNSPARK' )
300     + #{
301     + #$explain='## dnspark.com dynamic addresses';
302     + #$pubserv='www.dnspark.com';
303     + #$protocol='dnspark';
304     + #}
305     + #elsif( $dns eq 'DYNHOST' )
306     + #{
307     + #$explain='## DynHost (ovh.com) dynamic addresses';
308     + #$pubserv='www.ovh.com';
309     + #$protocol='dyndns2';
310     + #}
311     + #elsif( $dns eq 'NOIP' )
312     + #{
313     + #$explain='## Noip (noip.com) dynamic addresses';
314     + #$pubserv='dynupdate.no-ip.com';
315     + #$protocol='noip';
316     + #}
317     + #elsif( $dns eq 'CHANGEIP' )
318     + #{
319     + #$explain='## ChangeIP (changeip.com) dynamic addresses';
320     + #$pubserv='nic.changeip.com';
321     + #$protocol='dyndns2';
322     + #}
323    
324     - if($pubserv ne '')
325     + #elsif( $dns eq 'NAMECHEAP' )
326     + #{
327     + #$explain='## NAMECHEAP (namecheap.com) dynamic addresses';
328     + #$pubserv='dynamicdns.park-your-domain.com';
329     + #$protocol='namecheap';
330     + #}
331     +
332     + #elsif( $dns eq 'SPDNS' )
333     + #{
334     + #$explain='## SPDNS (spdyn.de FORMER spdns.de) dynamic addresses';
335     + #$pubserv='update.spdyn.de'; # update.spdyn.de (IPv4 + IPv6) update4.spdyn.de (IPv4 only) update6.spdyn.de (IPv6 only)
336     + #$protocol='dyndns2';
337     + #}
338     + #elsif( $dns eq 'CUSTOMDNS' )
339     + #{
340     + #$explain='## CUSTOMDNS PROVIDER dynamic addresses';
341     + #$pubserv= $customdns;
342     + #$protocol= $customprotocol;
343     + #}
344     +
345     + if($dns ne '')
346     {
347     $OUT .="##\n";
348     $OUT .=$explain."\n";
349     $OUT .="##\n";
350     - $OUT .="server=".$pubserv.", \\\n";
351     + # $OUT .="server=".$pubserv.", \\\n"; # not needed for v3.11.1
352     $OUT .="protocol=".$protocol.", \\\n";
353     - if( $dns eq 'DTDNS' ) {
354     - $OUT .="client=ddclient, \\\n";
355     - }
356     - if( $dns eq 'LOOPIA' ) {
357     - $OUT .="use=web, \\\n";
358     - $OUT .="web=loopia, \\\n";
359     - $OUT .="script=/XDynDNSServer/XDynDNS.php, \\\n";
360     - }
361     + #if( $dns eq 'DTDNS' ) {
362     + #$OUT .="client=ddclient, \\\n";
363     + #}
364     + #if( $dns eq 'LOOPIA' ) {
365     + #$OUT .="use=web, \\\n";
366     + #$OUT .="web=loopia, \\\n";
367     + #$OUT .="script=/XDynDNSServer/XDynDNS.php, \\\n";
368     + #}
369     if($static ne '') {
370     $OUT .="static=".$static.", \\\n";
371     }
372     @@ -172,9 +176,9 @@
373    
374     $OUT .="login=".$login.", \\\n";
375     $OUT .="password=".$password." \\\n";
376     - $OUT .="\@\n" if ( $dns eq 'NAMECHEAP' );
377     -
378     - $OUT .=$edom->key()."\n" if ( $dns ne 'NAMECHEAP' );
379     +
380     + # $OUT .="\@\n" if ( $dns eq 'NAMECHEAP' );
381     + $OUT .=$edom->key()."\n"; # if ( $dns ne 'NAMECHEAP' );
382     $OUT .="##\n";
383     $OUT .="##\n";
384     }
385     diff -urN smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts
386     --- smeserver-ddclient-1.3.0.old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts 2023-11-10 09:25:16.018261057 +0000
387     +++ smeserver-ddclient-1.3.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/30FreeHosts 2023-11-10 14:58:00.000000000 +0000
388     @@ -38,148 +38,34 @@
389     $dns =~ tr/a-z/A-Z/;
390     my $login = $edom->prop('login');
391     my $password = $edom->prop('password');
392     - my $customdns = $edom->prop('customdns') || '';
393     - my $customprotocol = $edom->prop('customprotocol') || '';
394     - my $pubserv='';
395     - my $static='';
396     - my $custom='';
397     - my $wildcard='';
398     - my $mx=$edom->prop('mx') || '';
399     - my $backupmx='';
400     - my $protocol='';
401     - my $explain='';
402     -
403     - if( $dns eq 'DYNDNS1')
404     - {
405     - $explain='## dyndns.org dynamic addresses';
406     - $pubserv ='members.dyndns.org';
407     - $protocol='dyndns2';
408     - $static='no';
409     - $custom='no';
410     - $wildcard='yes';
411     - }
412     - elsif( $dns eq 'DYNDNS2')
413     - {
414     - $explain='## dyndns.org static addresses';
415     - $pubserv ='members.dyndns.org';
416     - $protocol='dyndns2';
417     - $static ='yes';
418     - $custom ='no';
419     - $wildcard='yes';
420     - }
421     - elsif( $dns eq 'DYNDNS3')
422     - {
423     - $explain='## dyndns.org static2 addresses';
424     - $pubserv='members.dyndns.org';
425     - $custom ='yes';
426     - $protocol='dyndns2';
427     - $static ='';
428     - $wildcard='yes';
429     - }
430     - elsif( $dns eq 'ZONEDIT')
431     - {
432     - $explain='## zoneedit dynamic addresses';
433     - $pubserv='dynamic.zoneedit.com';
434     - $protocol='zoneedit1';
435     - }
436     - elsif( $dns eq 'EASYDNS')
437     - {
438     - $explain='## easydns.com dynamic addresses';
439     - $pubserv='members.easydns.com';
440     - $protocol='easydns';
441     - }
442     - elsif( $dns eq 'HAMMER')
443     - {
444     - $explain='## hammer dup.hn.org dynamic addresses';
445     - $pubserv='dup.hn.org';
446     - $protocol='hammernode1';
447     - }
448     - elsif( $dns eq 'DSLREPORTS' )
449     - {
450     - $explain='## dslreports.org dynamic addresses';
451     - $pubserv='members.dslreports.com';
452     - $protocol='dslreports1';
453     - }
454     - elsif( $dns eq 'EURODYNDNS' )
455     - {
456     - $explain='## euroddyndns.org dynamic addresses';
457     - $pubserv='eurodyndns.org';
458     - $protocol='namecheap';
459     - }
460     - elsif( $dns eq 'DTDNS' )
461     - {
462     - $explain='## DtDNS (www.dtdns.com) dynamic addresses';
463     - $pubserv='www.dtdns.com';
464     - $protocol='dtdns';
465     - }
466     - elsif( $dns eq 'LOOPIA' )
467     - {
468     - $explain='## Loopia (loopia.se) dynamic addresses';
469     - $pubserv='dns.loopia.se';
470     - $protocol='dyndns2';
471     - }
472     - elsif( $dns eq 'DNSPARK' )
473     - {
474     - $explain='## dnspark.com dynamic addresses';
475     - $pubserv='www.dnspark.com';
476     - $protocol='dnspark';
477     - }
478     - elsif( $dns eq 'DYNHOST' )
479     - {
480     - $explain='## DynHost (ovh.com) dynamic addresses';
481     - $pubserv='www.ovh.com';
482     - $protocol='dyndns2';
483     - }
484     - elsif( $dns eq 'NOIP' )
485     - {
486     - $explain='## Noip (noip.com) dynamic addresses';
487     - $pubserv='dynupdate.no-ip.com';
488     - $protocol='noip';
489     - }
490     - elsif( $dns eq 'CHANGEIP' )
491     - {
492     - $explain='## ChangeIP (changeip.com) dynamic addresses';
493     - $pubserv='nic.changeip.com';
494     - $protocol='dyndns2';
495     - }
496     -
497     - elsif( $dns eq 'NAMECHEAP' )
498     - {
499     - $explain='## NAMECHEAP (namecheap.com) dynamic addresses';
500     - $pubserv='dynamicdns.park-your-domain.com';
501     - $protocol='namecheap';
502     - }
503     + my $customdns = $edom->prop('customdns') || '';
504     + my $customprotocol = $edom->prop('customprotocol') || '';
505    
506     - elsif( $dns eq 'SPDNS' )
507     - {
508     - $explain='## SPDNS (spdyn.de FORMER spdns.de) dynamic addresses';
509     - $pubserv='update.spdyn.de'; # update.spdyn.de (IPv4 + IPv6) update4.spdyn.de (IPv4 only) update6.spdyn.de (IPv6 only)
510     - $pubserv='update.spdns.de';
511     - $protocol='dyndns2';
512     - }
513     + # Not sure if wee need these either!
514     + my $static=$edom->prop('static') || '';
515     + my $custom=$edom->prop('custom') || '';
516     + my $wildcard=$edom->prop('wildcard') || '';
517     + my $backupmx=$edom->prop('backupmx') || '';
518    
519     - elsif( $dns eq 'CUSTOMDNS' )
520     - {
521     - $explain='## CUSTOMDNS PROVIDER dynamic addresses';
522     - $pubserv= $customdns;
523     - $protocol= $customprotocol;
524     - }
525     + my $mx=$edom->prop('mx') || '';
526     + my $protocol=$dns;
527     + my $explain='## '.$edom->prop('dns').' dynamic address';
528    
529     - if($pubserv ne '')
530     + if($dns ne '')
531     {
532     $OUT .="##\n";
533     $OUT .=$explain."\n";
534     $OUT .="##\n";
535     - $OUT .="server=".$pubserv.", \\\n";
536     + # $OUT .="server=".$pubserv.", \\\n"; # not needed for v3.11.1
537     $OUT .="protocol=".$protocol.", \\\n";
538     - if( $dns eq 'DTDNS' ) {
539     - $OUT .="client=ddclient, \\\n";
540     - }
541     - if( $dns eq 'LOOPIA' ) {
542     - $OUT .="use=web, \\\n";
543     - $OUT .="web=loopia, \\\n";
544     - $OUT .="script=/XDynDNSServer/XDynDNS.php, \\\n";
545     - }
546     + #if( $dns eq 'DTDNS' ) {
547     + #$OUT .="client=ddclient, \\\n";
548     + #}
549     + #if( $dns eq 'LOOPIA' ) {
550     + #$OUT .="use=web, \\\n";
551     + #$OUT .="web=loopia, \\\n";
552     + #$OUT .="script=/XDynDNSServer/XDynDNS.php, \\\n";
553     + #}
554     if($static ne '') {
555     $OUT .="static=".$static.", \\\n";
556     }
557     @@ -198,9 +84,9 @@
558    
559     $OUT .="login=".$login.", \\\n";
560     $OUT .="password=".$password." \\\n";
561     - $OUT .="\@\n" if ( $dns eq 'NAMECHEAP' );
562     -
563     - $OUT .=$edom->key()."\n" if ( $dns ne 'NAMECHEAP' );
564     +
565     + # $OUT .="\@\n" if ( $dns eq 'NAMECHEAP' );
566     + $OUT .=$edom->key()."\n"; # if ( $dns ne 'NAMECHEAP' );
567     $OUT .="##\n";
568     $OUT .="##\n";
569     }
570     diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm
571     --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-11-10 09:25:16.044261130 +0000
572     +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/Controller/Ddclient.pm 2023-11-10 14:07:32.698046786 +0000
573     @@ -48,6 +48,45 @@
574     #OVH - See https://www.ovh.com for details
575     #ClouDNS - See https://www.cloudns.net
576    
577     +# ddclient 3.11.1 Supported Services
578     +# 1984:https://kb.1984hosting.com/doku.php?id=freedns
579     +# changeip: https://changeip.com
580     +# cloudflare: https://cloudflare.com
581     +# cloudns: https://cloudns.com
582     +# digitalocean: https://digitalocean.com
583     +# dinahosting: https://dinahosting.com
584     +# dnsexit: https://dnsexit.com/
585     +# dnsmadeeasy: https://dnsmadeeasy.com
586     +# domeneshop: https://domeneshop.com
587     +# dondominio: https://dondominio.com
588     +# dslreports: https://www.dslreports.com/
589     +# duckdns: https://duckdns.com
590     +# dyndns1:https://account.dyn.com/
591     +# dyndns2: https://account.dyn.com/
592     +# easydns: https://easydns.com
593     +# enom: https://enom.com
594     +# freedns: http://freedns.com
595     +# freemyip: https://freemyip.com
596     +# gandi: https://gandi.com
597     +# godaddy: https://godaddy.com
598     +# googledomains: https://googledomains.com
599     +# hetzner: https://hetzner.com
600     +# infomaniak: https://infomaniak.com
601     +# keysystems: https://keysystems.com
602     +# mythicdyn: https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns
603     +# namecheap: https://namecheap.com
604     +# nfsn: http://nfsn.com
605     +# njalla: https://njalla.com
606     +# noip: https://noip.com
607     +# nsupdate: http://nsupdate.com
608     +# ovh: https://ovh.com
609     +# porkbun: https://porkbun.com
610     +# regfishde: Cannot find link for this one
611     +# sitelutions: https://sitelutions.com
612     +# woima: http://woima.com
613     +# yandex: https://yandex.com
614     +# zoneedit: https://www.zoneedit.com/dynamic-dns/
615     +
616     use strict;
617     use warnings;
618     use Mojo::Base 'Mojolicious::Controller';
619     @@ -81,38 +120,82 @@
620     #
621     my $c = shift;
622     my $Labels = (
623     - [ [ $c->l('CUSTOMDNS'), 'CUSTOMDNS' ],
624     - [ $c->l('DYNDNS1'), 'DYNDNS1' ],
625     - [ $c->l('DYNDNS2'), 'DYNDNS2' ],
626     - [ $c->l('DYNDNS3'), 'DYNDNS3' ],
627     - [ $c->l('ZONEDIT'), 'ZONEDIT' ],
628     - [ $c->l('EASYDNS'), 'EASYDNS' ],
629     - [ $c->l('HAMMER'), 'HAMMER' ],
630     - [ $c->l('DSLREPORTS'), 'DSLREPORTS' ],
631     - [ $c->l('EURODYNDNS'), 'EURODYNDNS' ],
632     - [ $c->l('DTDNS'), 'DTDNS' ],
633     - [ $c->l('LOOPIA'), 'LOOPIA' ],
634     - [ $c->l('DNSPARK'), 'DNSPARK' ],
635     - [ $c->l('DYNHOST'), 'DYNHOST' ],
636     - [ $c->l('NOIP'), 'NOIP' ],
637     - [ $c->l('CHANGEIP'), 'CHANGEIP' ],
638     - [ $c->l('NAMECHEAP'), 'NAMECHEAP' ],
639     - [ $c->l('SPDNS'), 'SPDNS' ],
640     - [ $c->l('SITELUTIONS'), 'SITELUTIONS' ],
641     - [ $c->l('FREEDNS'), 'FREEDNS' ],
642     - [ $c->l('NSUPDATE'), 'NSUPDATE' ],
643     - [ $c->l('CLOUDFLARE'), 'CLOUDFLARE' ],
644     - [ $c->l('GOOGLEDOMAINS'), 'GOOGLEDOMAINS' ],
645     - [ $c->l('DUCKDNS'), 'DUCKDNS' ],
646     - [ $c->l('FREEMYIP'), 'FREEMYIP' ],
647     - [ $c->l('WOIMA'), 'WOIMA' ],
648     - [ $c->l('YANDEX'), 'YANDEX' ],
649     - [ $c->l('DNSMADEEASY'), 'DNSMADEEASY' ],
650     - [ $c->l('DONDOMINIO'), 'DONDOMINIO' ],
651     - [ $c->l('NEARLYFREESPEECH'), 'NFSN' ],
652     - [ $c->l('OVH'), 'OVH' ],
653     - [ $c->l('CLOUDNS'), 'CLOUDNS' ]
654     - ]
655     +
656     + # v3.11.1 labels
657     + [
658     + [$c->l('1984') '1984'],
659     + [$c->l('changeip') 'changeip'],
660     + [$c->l('cloudflare') 'cloudflare'],
661     + [$c->l('cloudns') 'cloudns'],,
662     + [$c->l('digitalocean') 'digitalocean'],
663     + [$c->l('dinahosting') 'dinahosting'],
664     + [$c->l('dnsexit2') 'dnsexit2'],
665     + [$c->l('dnsmadeeasy') 'dnsmadeeasy'],
666     + [$c->l('domeneshop') 'domeneshop'],
667     + [$c->l('dondominio') 'dondominio'],
668     + [$c->l('dslreports1') 'dslreports1'],
669     + [$c->l('duckdns') 'duckdns'],
670     + [$c->l('dyndns1') 'dyndns1'],
671     + [$c->l('dyndns2') 'dyndns2'],
672     + [$c->l('easydns') 'easydns'],
673     + [$c->l('enom') 'enom'],
674     + [$c->l('freedns') 'freedns'],
675     + [$c->l('freemyip') 'freemyip'],
676     + [$c->l('gandi') 'gandi'],
677     + [$c->l('godaddy') 'godaddy'],
678     + [$c->l('googledomains') 'googledomains'],
679     + [$c->l('hetzner') 'hetzner'],
680     + [$c->l('infomaniak') 'infomaniak'],
681     + [$c->l('keysystems') 'keysystems'],
682     + [$c->l('mythicdyn') 'mythicdyn'],
683     + [$c->l('namecheap') 'namecheap'],
684     + [$c->l('nfsn') 'nfsn'],
685     + [$c->l('njalla') 'njalla'],
686     + [$c->l('noip') 'noip'],
687     + [$c->l('nsupdate') 'nsupdate'],
688     + [$c->l('ovh') 'ovh'],
689     + [$c->l('porkbun') 'porkbun'],
690     + [$c->l('regfishde') 'regfishde'],
691     + [$c->l('sitelutions') 'sitelutions'],
692     + [$c->l('woima') 'woima'],
693     + [$c->l('yandex') 'yandex'],
694     + [$c->l('zoneedit1') 'zoneedit1']
695     + ]
696     + # end of v3.11.1 labels
697     +
698     +
699     + #[ [ $c->l('CUSTOMDNS'), 'CUSTOMDNS' ],
700     + #[ $c->l('DYNDNS1'), 'DYNDNS1' ],
701     + #[ $c->l('DYNDNS2'), 'DYNDNS2' ],
702     + #[ $c->l('DYNDNS3'), 'DYNDNS3' ],
703     + #[ $c->l('ZONEDIT'), 'ZONEDIT' ],
704     + #[ $c->l('EASYDNS'), 'EASYDNS' ],
705     + #[ $c->l('HAMMER'), 'HAMMER' ],
706     + #[ $c->l('DSLREPORTS'), 'DSLREPORTS' ],
707     + #[ $c->l('EURODYNDNS'), 'EURODYNDNS' ],
708     + #[ $c->l('DTDNS'), 'DTDNS' ],
709     + #[ $c->l('LOOPIA'), 'LOOPIA' ],
710     + #[ $c->l('DNSPARK'), 'DNSPARK' ],
711     + #[ $c->l('DYNHOST'), 'DYNHOST' ],
712     + #[ $c->l('NOIP'), 'NOIP' ],
713     + #[ $c->l('CHANGEIP'), 'CHANGEIP' ],
714     + #[ $c->l('NAMECHEAP'), 'NAMECHEAP' ],
715     + #[ $c->l('SPDNS'), 'SPDNS' ],
716     + #[ $c->l('SITELUTIONS'), 'SITELUTIONS' ],
717     + #[ $c->l('FREEDNS'), 'FREEDNS' ],
718     + #[ $c->l('NSUPDATE'), 'NSUPDATE' ],
719     + #[ $c->l('CLOUDFLARE'), 'CLOUDFLARE' ],
720     + #[ $c->l('GOOGLEDOMAINS'), 'GOOGLEDOMAINS' ],
721     + #[ $c->l('DUCKDNS'), 'DUCKDNS' ],
722     + #[ $c->l('FREEMYIP'), 'FREEMYIP' ],
723     + #[ $c->l('WOIMA'), 'WOIMA' ],
724     + #[ $c->l('YANDEX'), 'YANDEX' ],
725     + #[ $c->l('DNSMADEEASY'), 'DNSMADEEASY' ],
726     + #[ $c->l('DONDOMINIO'), 'DONDOMINIO' ],
727     + #[ $c->l('NEARLYFREESPEECH'), 'NFSN' ],
728     + #[ $c->l('OVH'), 'OVH' ],
729     + #[ $c->l('CLOUDNS'), 'CLOUDNS' ]
730     + #]
731     );
732     return $Labels;
733     }
734     diff -urN smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm
735     --- smeserver-ddclient-1.3.0.old/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm 2023-11-10 09:25:16.045261133 +0000
736     +++ smeserver-ddclient-1.3.0/root/usr/share/smanager/lib/SrvMngr/I18N/Modules/Ddclient/en.pm 2023-11-10 14:07:12.008986499 +0000
737     @@ -47,6 +47,7 @@
738     'ERROR_WHILE_REMOVING_DOMAIN' => 'Error: internal failure while removing publication of [_1].',
739     'SUCCESSFULLY_DELETED' => 'Successfully deleted publication of [_1] on [_2].',
740    
741     +# Service descriptions
742     'DYNDNS1' => 'dyndns.org dynamic addresses',
743     'DYNDNS2' => 'dyndns.org static addresses',
744     'DYNDNS3' => 'dyndns.org custom addresses',
745     @@ -77,6 +78,48 @@
746     'NEARLYFREESPEECH'=>'NFSN www.nearlyfreespeech.net/services/dns for details',
747     'OVH'=>'OVH www.ovh.com for details',
748     'CLOUDNS'=>'CLOUDNS www.cloudns.net',
749     +# End of Service descriptions
750     +
751     +# v3.11.1 Service descriptions:
752     +"1984" => "https://kb.1984hosting.com/doku.php?id=freedns",
753     +"changeip" => "https://changeip.com",
754     +"cloudflare" => "https://cloudflare.com",
755     +"cloudns" => "https://cloudns.com",
756     +"digitalocean" => "https://digitalocean.com",
757     +"dinahosting" => "https://dinahosting.com",
758     +"dnsexit" => "https://dnsexit.com/",
759     +"dnsmadeeasy" => "https://dnsmadeeasy.com",
760     +"domeneshop" => "https://domeneshop.com",
761     +"dondominio" => "https://dondominio.com",
762     +"dslreports" => "https://www.dslreports.com/",
763     +"duckdns" => "https://duckdns.com",
764     +"dyndns1" => "https://account.dyn.com/",
765     +"dyndns2" => "https://account.dyn.com/",
766     +"easydns" => "https://easydns.com",
767     +"enom" => "https://enom.com",
768     +"freedns" => "http://freedns.com",
769     +"freemyip" => "https://freemyip.com",
770     +"gandi" => "https://gandi.com",
771     +"godaddy" => "https://godaddy.com",
772     +"googledomains" => "https://googledomains.com",
773     +"hetzner" => "https://hetzner.com",
774     +"infomaniak" => "https://infomaniak.com",
775     +"keysystems" => "https://keysystems.com",
776     +"mythicdyn" => "https://www.mythic-beasts.com/support/api/dnsv2/dynamic-dns",
777     +"namecheap" => "https://namecheap.com",
778     +"nfsn" => "http://nfsn.com",
779     +"njalla" => "https://njalla.com",
780     +"noip" => "https://noip.com",
781     +"nsupdate" => "http://nsupdate.com",
782     +"ovh" => "https://ovh.com",
783     +"porkbun" => "https://porkbun.com",
784     +"regfishde" => "regfishde",
785     +"sitelutions" => "https://sitelutions.com",
786     +"woima" => "http://woima.com",
787     +"yandex" => "https://yandex.com",
788     +"zoneedit" => "https://www.zoneedit.com/dynamic-dns/",
789     +# end of v3.11.1 Service descriptions:
790     +
791     'CUSTOMDNS' => 'Custom Dynamic DNS Provider',
792     'CUSTOMDNS_LABEL' => 'Custom server Address',
793     'CUSTOM_PROTOCOL_LABEL' => 'Custom ddclient Protocol',

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed