1 |
diff -Nur smeserver-ddclient-1.0.0-old/createlinks smeserver-ddclient-1.0.0/createlinks |
2 |
--- smeserver-ddclient-1.0.0-old/createlinks 2013-11-25 00:06:31.000000000 +0100 |
3 |
+++ smeserver-ddclient-1.0.0/createlinks 2013-11-25 00:09:41.000000000 +0100 |
4 |
@@ -8,16 +8,16 @@ |
5 |
|
6 |
my $event = 'ddclient'; |
7 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient"); |
8 |
- templates2events("/etc/ddclient/ddclient.conf", $event); |
9 |
+ templates2events("/etc/ddclient.conf", $event); |
10 |
|
11 |
$event = 'domain-delete'; |
12 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient"); |
13 |
- templates2events("/etc/ddclient/ddclient.conf", $event); |
14 |
+ templates2events("/etc/ddclient.conf", $event); |
15 |
|
16 |
$event = 'domain-modify'; |
17 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ddclient"); |
18 |
- templates2events("/etc/ddclient/ddclient.conf", $event); |
19 |
+ templates2events("/etc/ddclient.conf", $event); |
20 |
|
21 |
$event = 'post-upgrade'; |
22 |
- templates2events("/etc/ddclient/ddclient.conf", $event); |
23 |
+ templates2events("/etc/ddclient.conf", $event); |
24 |
templates2events("/etc/ppp/ip-up.local", $event); |
25 |
diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers |
26 |
--- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 2013-11-25 00:06:33.000000000 +0100 |
27 |
+++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/10Headers 1970-01-01 01:00:00.000000000 +0100 |
28 |
@@ -1,7 +0,0 @@ |
29 |
- |
30 |
-daemon=300 # check every 300 seconds |
31 |
-syslog=yes # log update msgs to syslog |
32 |
-mail=admin # mail update msgs to admin |
33 |
-mail-failure=admin |
34 |
-pid=/var/run/ddclient.pid # record PID in file. |
35 |
-# |
36 |
diff -Nur smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration |
37 |
--- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration 2013-11-25 00:06:33.000000000 +0100 |
38 |
+++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient/ddclient.conf/20Declaration 1970-01-01 01:00:00.000000000 +0100 |
39 |
@@ -1,119 +0,0 @@ |
40 |
-{ |
41 |
- use esmith::DomainsDB; |
42 |
- |
43 |
- $OUT=''; |
44 |
- |
45 |
- my $ddb = esmith::DomainsDB->open_ro(); |
46 |
- |
47 |
- $OUT .="use=web, web=checkip.dyndns.org:8245/, web-skip='IP Address:' \n"; |
48 |
- |
49 |
- for my $edom ( $ddb->domains ) |
50 |
- { |
51 |
- { |
52 |
- |
53 |
- my $dns = $edom->prop('dns') || ''; |
54 |
- next if ($dns eq ''); |
55 |
- $dns =~ tr/a-z/A-Z/; |
56 |
- my $login = $edom->prop('login'); |
57 |
- my $password = $edom->prop('password'); |
58 |
- my $pubserv=''; |
59 |
- my $static=''; |
60 |
- my $custom=''; |
61 |
- my $wildcard=''; |
62 |
- my $mx=$edom->prop('mx') || ''; |
63 |
- my $backupmx=''; |
64 |
- my $protocol=''; |
65 |
- my $explain=''; |
66 |
- |
67 |
- if( $dns eq 'DYNDNS1') |
68 |
- { |
69 |
- $explain='## dyndns.org dynamic addresses'; |
70 |
- $pubserv ='members.dyndns.org'; |
71 |
- $protocol='dyndns2'; |
72 |
- $static='no'; |
73 |
- $custom='no'; |
74 |
- $wildcard='yes'; |
75 |
- } |
76 |
- elsif( $dns eq 'DYNDNS2') |
77 |
- { |
78 |
- $explain='## dyndns.org static addresses'; |
79 |
- $pubserv ='members.dyndns.org'; |
80 |
- $protocol='dyndns2'; |
81 |
- $static ='yes'; |
82 |
- $custom ='no'; |
83 |
- $wildcard='yes'; |
84 |
- } |
85 |
- elsif( $dns eq 'DYNDNS3') |
86 |
- { |
87 |
- $explain='## dyndns.org static2 addresses'; |
88 |
- $pubserv='members.dyndns.org'; |
89 |
- $custom ='yes'; |
90 |
- $protocol='dyndns2'; |
91 |
- $static =''; |
92 |
- $wildcard='yes'; |
93 |
- } |
94 |
- elsif( $dns eq 'ZONEDIT') |
95 |
- { |
96 |
- $explain='## zoneedit dynamic addresses'; |
97 |
- $pubserv='www.zoneedit.com'; |
98 |
- $protocol='zoneedit1'; |
99 |
- } |
100 |
- elsif( $dns eq 'EASYDNS') |
101 |
- { |
102 |
- $explain='## easydns.com dynamic addresses'; |
103 |
- $pubserv='members.easydns.com'; |
104 |
- $protocol='easydns'; |
105 |
- } |
106 |
- elsif( $dns eq 'HAMMER') |
107 |
- { |
108 |
- $explain='## hammer dup.hn.org dynamic addresses'; |
109 |
- $pubserv='dup.hn.org'; |
110 |
- $protocol='hammernode1'; |
111 |
- } |
112 |
- elsif( $dns eq 'DSLREPORTS' ) |
113 |
- { |
114 |
- $explain='## dslreports.org dynamic addresses'; |
115 |
- $pubserv='members.dslreports.com'; |
116 |
- $protocol='dslreports1'; |
117 |
- } |
118 |
- elsif( $dns eq 'EURODYNDNS' ) |
119 |
- { |
120 |
- $explain='## euroddyndns.org dynamic addresses'; |
121 |
- $pubserv='eurodyndns.org'; |
122 |
- $protocol='namecheap'; |
123 |
- } |
124 |
- |
125 |
- if($pubserv ne '') |
126 |
- { |
127 |
- $OUT .="##\n"; |
128 |
- $OUT .=$explain."\n"; |
129 |
- $OUT .="##\n"; |
130 |
- $OUT .="server=".$pubserv.", \\\n"; |
131 |
- $OUT .="protocol=".$protocol.", \\\n"; |
132 |
- |
133 |
- if($static ne '') { |
134 |
- $OUT .="static=".$static.", \\\n"; |
135 |
- } |
136 |
- |
137 |
- if($wildcard ne '') { |
138 |
- $OUT .="wildcard=".$wildcard.", \\\n"; |
139 |
- } |
140 |
- |
141 |
- if($custom ne '') { |
142 |
- $OUT .="custom=".$custom.", \\\n"; |
143 |
- } |
144 |
- |
145 |
- if ($mx ne '') { |
146 |
- $OUT .="mx=".$mx.", \\\n"; |
147 |
- } |
148 |
- |
149 |
- $OUT .="login=".$login.", \\\n"; |
150 |
- $OUT .="password=".$password." \\\n"; |
151 |
- $OUT .=$edom->key()."\n"; |
152 |
- $OUT .="##\n"; |
153 |
- $OUT .="##\n"; |
154 |
- } |
155 |
- } |
156 |
- } |
157 |
-} |
158 |
- |
159 |
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 |
160 |
--- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/10Headers 1970-01-01 01:00:00.000000000 +0100 |
161 |
+++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/10Headers 2006-11-12 16:11:57.000000000 +0100 |
162 |
@@ -0,0 +1,7 @@ |
163 |
+ |
164 |
+daemon=300 # check every 300 seconds |
165 |
+syslog=yes # log update msgs to syslog |
166 |
+mail=admin # mail update msgs to admin |
167 |
+mail-failure=admin |
168 |
+pid=/var/run/ddclient.pid # record PID in file. |
169 |
+# |
170 |
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 |
171 |
--- smeserver-ddclient-1.0.0-old/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration 1970-01-01 01:00:00.000000000 +0100 |
172 |
+++ smeserver-ddclient-1.0.0/root/etc/e-smith/templates/etc/ddclient.conf/20Declaration 2013-11-25 00:05:58.000000000 +0100 |
173 |
@@ -0,0 +1,119 @@ |
174 |
+{ |
175 |
+ use esmith::DomainsDB; |
176 |
+ |
177 |
+ $OUT=''; |
178 |
+ |
179 |
+ my $ddb = esmith::DomainsDB->open_ro(); |
180 |
+ |
181 |
+ $OUT .="use=web, web=checkip.dyndns.org:8245/, web-skip='IP Address:' \n"; |
182 |
+ |
183 |
+ for my $edom ( $ddb->domains ) |
184 |
+ { |
185 |
+ { |
186 |
+ |
187 |
+ my $dns = $edom->prop('dns') || ''; |
188 |
+ next if ($dns eq ''); |
189 |
+ $dns =~ tr/a-z/A-Z/; |
190 |
+ my $login = $edom->prop('login'); |
191 |
+ my $password = $edom->prop('password'); |
192 |
+ my $pubserv=''; |
193 |
+ my $static=''; |
194 |
+ my $custom=''; |
195 |
+ my $wildcard=''; |
196 |
+ my $mx=$edom->prop('mx') || ''; |
197 |
+ my $backupmx=''; |
198 |
+ my $protocol=''; |
199 |
+ my $explain=''; |
200 |
+ |
201 |
+ if( $dns eq 'DYNDNS1') |
202 |
+ { |
203 |
+ $explain='## dyndns.org dynamic addresses'; |
204 |
+ $pubserv ='members.dyndns.org'; |
205 |
+ $protocol='dyndns2'; |
206 |
+ $static='no'; |
207 |
+ $custom='no'; |
208 |
+ $wildcard='yes'; |
209 |
+ } |
210 |
+ elsif( $dns eq 'DYNDNS2') |
211 |
+ { |
212 |
+ $explain='## dyndns.org static addresses'; |
213 |
+ $pubserv ='members.dyndns.org'; |
214 |
+ $protocol='dyndns2'; |
215 |
+ $static ='yes'; |
216 |
+ $custom ='no'; |
217 |
+ $wildcard='yes'; |
218 |
+ } |
219 |
+ elsif( $dns eq 'DYNDNS3') |
220 |
+ { |
221 |
+ $explain='## dyndns.org static2 addresses'; |
222 |
+ $pubserv='members.dyndns.org'; |
223 |
+ $custom ='yes'; |
224 |
+ $protocol='dyndns2'; |
225 |
+ $static =''; |
226 |
+ $wildcard='yes'; |
227 |
+ } |
228 |
+ elsif( $dns eq 'ZONEDIT') |
229 |
+ { |
230 |
+ $explain='## zoneedit dynamic addresses'; |
231 |
+ $pubserv='www.zoneedit.com'; |
232 |
+ $protocol='zoneedit1'; |
233 |
+ } |
234 |
+ elsif( $dns eq 'EASYDNS') |
235 |
+ { |
236 |
+ $explain='## easydns.com dynamic addresses'; |
237 |
+ $pubserv='members.easydns.com'; |
238 |
+ $protocol='easydns'; |
239 |
+ } |
240 |
+ elsif( $dns eq 'HAMMER') |
241 |
+ { |
242 |
+ $explain='## hammer dup.hn.org dynamic addresses'; |
243 |
+ $pubserv='dup.hn.org'; |
244 |
+ $protocol='hammernode1'; |
245 |
+ } |
246 |
+ elsif( $dns eq 'DSLREPORTS' ) |
247 |
+ { |
248 |
+ $explain='## dslreports.org dynamic addresses'; |
249 |
+ $pubserv='members.dslreports.com'; |
250 |
+ $protocol='dslreports1'; |
251 |
+ } |
252 |
+ elsif( $dns eq 'EURODYNDNS' ) |
253 |
+ { |
254 |
+ $explain='## euroddyndns.org dynamic addresses'; |
255 |
+ $pubserv='eurodyndns.org'; |
256 |
+ $protocol='namecheap'; |
257 |
+ } |
258 |
+ |
259 |
+ if($pubserv ne '') |
260 |
+ { |
261 |
+ $OUT .="##\n"; |
262 |
+ $OUT .=$explain."\n"; |
263 |
+ $OUT .="##\n"; |
264 |
+ $OUT .="server=".$pubserv.", \\\n"; |
265 |
+ $OUT .="protocol=".$protocol.", \\\n"; |
266 |
+ |
267 |
+ if($static ne '') { |
268 |
+ $OUT .="static=".$static.", \\\n"; |
269 |
+ } |
270 |
+ |
271 |
+ if($wildcard ne '') { |
272 |
+ $OUT .="wildcard=".$wildcard.", \\\n"; |
273 |
+ } |
274 |
+ |
275 |
+ if($custom ne '') { |
276 |
+ $OUT .="custom=".$custom.", \\\n"; |
277 |
+ } |
278 |
+ |
279 |
+ if ($mx ne '') { |
280 |
+ $OUT .="mx=".$mx.", \\\n"; |
281 |
+ } |
282 |
+ |
283 |
+ $OUT .="login=".$login.", \\\n"; |
284 |
+ $OUT .="password=".$password." \\\n"; |
285 |
+ $OUT .=$edom->key()."\n"; |
286 |
+ $OUT .="##\n"; |
287 |
+ $OUT .="##\n"; |
288 |
+ } |
289 |
+ } |
290 |
+ } |
291 |
+} |
292 |
+ |