/[smecontribs]/rpms/smeserver-ddclient/contribs8/smeserver-ddclient-1.0.0-6-More-DDNS-Services.patch
ViewVC logotype

Contents of /rpms/smeserver-ddclient/contribs8/smeserver-ddclient-1.0.0-6-More-DDNS-Services.patch

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


Revision 1.1 - (show annotations) (download)
Wed Nov 27 17:40:26 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-ddclient-1_0_0-27_el5_sme
* Tue Nov 26 2013 stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.0-30.sme
- 5 more dynamic dns services (DtDNS, Loopia, dnspark.com, OVH DynHost,Noip ,changeip) [SME:8019]

1 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/db/configuration/defaults/ddclient/urlcheckip smeserver-ddclient-1.0.0/root/etc/e-smith/db/configuration/defaults/ddclient/urlcheckip
2 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/db/configuration/defaults/ddclient/urlcheckip 1970-01-01 01:00:00.000000000 +0100
3 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/db/configuration/defaults/ddclient/urlcheckip 2013-11-26 22:50:00.000000000 +0100
4 @@ -0,0 +1 @@
5 +checkip.dyndns.org
6 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ddclient smeserver-ddclient-1.0.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ddclient
7 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ddclient 2013-11-25 19:08:18.000000000 +0100
8 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/ddclient 2013-11-26 23:42:37.000000000 +0100
9 @@ -209,6 +209,31 @@
10 <trans>eurodyndns.org dynamic adresses</trans>
11 </entry>
12 <entry>
13 + <base>DTDNS</base>
14 + <trans>DtDNS (www.dtdns.com) dynamic adresses</trans>
15 + </entry>
16 + <entry>
17 + <base>LOOPIA</base>
18 + <trans>Loopia (loopia.se) dynamic adresses</trans>
19 + </entry>
20 + <entry>
21 + <base>DNSPARK</base>
22 + <trans> Dnspark (dnspark.com) dynamic adresses</trans>
23 + </entry>
24 + <entry>
25 + <base>DYNHOST</base>
26 + <trans> DynHost (ovh.com) dynamic adresses</trans>
27 + </entry>
28 + <entry>
29 + <base>NOIP</base>
30 + <trans> NoIP (noip.com) dynamic adresses</trans>
31 + </entry>
32 + </entry>
33 + <entry>
34 + <base>CHANGEIP</base>
35 + <trans> ChangeIP (changeip.com) dynamic adresses</trans>
36 + </entry>
37 + <entry>
38 <base>ddclient</base>
39 <trans>Dynamic Clients</trans>
40 </entry>
41 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/10Headers smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/10Headers
42 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/10Headers 2013-11-25 19:08:18.000000000 +0100
43 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/10Headers 2013-11-26 22:50:00.000000000 +0100
44 @@ -3,5 +3,5 @@
45 syslog=yes # log update msgs to syslog
46 mail=admin # mail update msgs to admin
47 mail-failure=admin
48 -pid=/var/run/ddclient.pid # record PID in file.
49 +pid=/var/run/ddclient/ddclient.pid # record PID in file.
50 #
51 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration
52 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration 2013-11-25 19:08:18.000000000 +0100
53 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration 2013-11-26 23:42:11.000000000 +0100
54 @@ -5,7 +5,7 @@
55
56 my $ddb = esmith::DomainsDB->open_ro();
57
58 - $OUT .="use=web, web=checkip.dyndns.org:8245/, web-skip='IP Address:' \n";
59 + $OUT .="use=web, web=$ddclient{'urlcheckip'}\/, web-skip='IP Address:' \n";
60
61 for my $edom ( $ddb->domains )
62 {
63 @@ -82,6 +82,42 @@
64 $pubserv='eurodyndns.org';
65 $protocol='namecheap';
66 }
67 + elsif( $dns eq 'DTDNS' )
68 + {
69 + $explain='## DtDNS (www.dtdns.com) dynamic addresses';
70 + $pubserv='www.dtdns.com';
71 + $protocol='dtdns';
72 + }
73 + elsif( $dns eq 'LOOPIA' )
74 + {
75 + $explain='## Loopia (loopia.se) dynamic addresses';
76 + $pubserv='dns.loopia.se';
77 + $protocol='dyndns2';
78 + }
79 + elsif( $dns eq 'DNSPARK' )
80 + {
81 + $explain='## dnspark.com dynamic addresses';
82 + $pubserv='www.dnspark.com';
83 + $protocol='dnspark';
84 + }
85 + elsif( $dns eq 'DYNHOST' )
86 + {
87 + $explain='## DynHost (ovh.com) dynamic addresses';
88 + $pubserv='www.ovh.com';
89 + $protocol='dyndns2';
90 + }
91 + elsif( $dns eq 'NOIP' )
92 + {
93 + $explain='## Noip (noip.com) dynamic addresses';
94 + $pubserv='dynupdate.no-ip.com';
95 + $protocol='noip';
96 + }
97 + elsif( $dns eq 'CHANGEIP' )
98 + {
99 + $explain='## ChangeIP (changeip.com) dynamic addresses';
100 + $pubserv='nic.changeip.com';
101 + $protocol='dyndns2';
102 + }
103
104 if($pubserv ne '')
105 {
106 @@ -90,7 +126,14 @@
107 $OUT .="##\n";
108 $OUT .="server=".$pubserv.", \\\n";
109 $OUT .="protocol=".$protocol.", \\\n";
110 -
111 + if( $dns eq 'DTDNS' ) {
112 + $OUT .="client=ddclient, \\\n";
113 + }
114 + if( $dns eq 'LOOPIA' ) {
115 + $OUT .="use=web, \\\n";
116 + $OUT .="web=loopia, \\\n";
117 + $OUT .="script=/XDynDNSServer/XDynDNS.php, \\\n";
118 + }
119 if($static ne '') {
120 $OUT .="static=".$static.", \\\n";
121 }
122 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates.metadata/etc/ddclient.conf smeserver-ddclient-1.0.0/root/etc/e-smith/templates.metadata/etc/ddclient.conf
123 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates.metadata/etc/ddclient.conf 1970-01-01 01:00:00.000000000 +0100
124 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates.metadata/etc/ddclient.conf 2013-11-26 22:50:00.000000000 +0100
125 @@ -0,0 +1,3 @@
126 +UID="ddclient"
127 +GID="ddclient"
128 +PERMS=0600
129 diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/web/functions/ddclient smeserver-ddclient-1.0.0/root/etc/e-smith/web/functions/ddclient
130 --- smeserver-ddclient-1.0.0-old/root/etc/e-smith/web/functions/ddclient 2013-11-25 19:08:18.000000000 +0100
131 +++ smeserver-ddclient-1.0.0/root/etc/e-smith/web/functions/ddclient 2013-11-26 23:39:27.000000000 +0100
132 @@ -149,13 +149,20 @@
133 'EASYDNS' => $fm->localise('EASYDNS'),
134 'HAMMER' => $fm->localise('HAMMER'),
135 'DSLREPORTS'=> $fm->localise('DSLREPORTS'),
136 - 'EURODYNDNS'=> $fm->localise('EURODYNDNS')
137 + 'EURODYNDNS'=> $fm->localise('EURODYNDNS'),
138 + 'DTDNS' => $fm->localise('DTDNS'),
139 + 'LOOPIA' => $fm->localise('LOOPIA'),
140 + 'DNSPARK' => $fm->localise('DNSPARK'),
141 + 'DYNHOST' => $fm->localise('DYNHOST'),
142 + 'NOIP' => $fm->localise('NOIP'),
143 + 'CHANGEIP' => $fm->localise('CHANGEIP')
144 );
145
146 return esmith::cgi::genCell ($q, $q->popup_menu (-name => 'dns',
147 -values => [
148 'DYNDNS1','DYNDNS2','DYNDNS3','ZONEDIT',
149 - 'EASYDNS','HAMMER','DSLREPORTS', 'EURODYNDNS'
150 + 'EASYDNS','HAMMER','DSLREPORTS', 'EURODYNDNS',
151 + 'DTDNS','LOOPIA','DNSPARK','DYNHOST','NOIP','CHANGEIP'
152 ],
153 -default => $curSetting,
154 -labels => \%Labels));

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