]>
Commit | Line | Data |
---|---|---|
e8f9e201 AM |
1 | diff -urN BackupPC-2.0.2.org/cgi-bin/BackupPC_Admin BackupPC-2.0.2/cgi-bin/BackupPC_Admin |
2 | --- BackupPC-2.0.2.org/cgi-bin/BackupPC_Admin 2003-10-17 00:49:12.000000000 +0200 | |
3 | +++ BackupPC-2.0.2/cgi-bin/BackupPC_Admin 2003-10-17 00:49:21.000000000 +0200 | |
4 | @@ -384,11 +384,11 @@ | |
5 | $comment = $Lang->{Extracting_only_Errors}; | |
6 | } elsif ( $host ne "" && $type eq "config" ) { | |
7 | $file = "$TopDir/pc/$host/config.pl"; | |
8 | - $file = "$TopDir/conf/$host.pl" | |
9 | - if ( $host ne "config" && -f "$TopDir/conf/$host.pl" | |
10 | + $file = "/etc/backuppc/$host.pl" | |
11 | + if ( $host ne "config" && -f "/etc/backuppc/$host.pl" | |
12 | && !-f $file ); | |
13 | } elsif ( $type eq "docs" ) { | |
14 | - $file = "$BinDir/../doc/BackupPC.html"; | |
15 | + $file = "/usr/share/doc/backuppc/BackupPC.html"; | |
16 | if ( open(LOG, $file) ) { | |
17 | binmode(LOG); | |
18 | Header($Lang->{BackupPC__Documentation}); | |
19 | @@ -400,9 +400,9 @@ | |
20 | } | |
21 | return; | |
22 | } elsif ( $type eq "config" ) { | |
23 | - $file = "$TopDir/conf/config.pl"; | |
24 | + $file = "/etc/backuppc/config.pl"; | |
25 | } elsif ( $type eq "hosts" ) { | |
26 | - $file = "$TopDir/conf/hosts"; | |
27 | + $file = "/etc/backuppc/hosts"; | |
28 | } elsif ( $host ne "" ) { | |
29 | $file = "$TopDir/pc/$host/LOG$ext"; | |
30 | } else { | |
31 | @@ -1844,7 +1844,7 @@ | |
32 | NavLink("?action=view&type=XferErrbad&host=${EscURI($host)}", | |
33 | $Lang->{Last_bad_XferLOG_errors_only}); | |
34 | } | |
35 | - if ( -f "$TopDir/pc/$host/config.pl" ) { | |
36 | + if ( -f "$TopDir/pc/$host/config.pl" || -f "/etc/backuppc/$host.pl" ) { | |
37 | NavLink("?action=view&type=config&host=${EscURI($host)}", $Lang->{Config_file}); | |
38 | } | |
39 | NavSectionEnd(); | |
40 | diff -urN BackupPC-2.0.2.org/conf/config.pl BackupPC-2.0.2/conf/config.pl | |
41 | --- BackupPC-2.0.2.org/conf/config.pl 2003-10-17 00:49:12.000000000 +0200 | |
42 | +++ BackupPC-2.0.2/conf/config.pl 2003-10-17 00:49:21.000000000 +0200 | |
43 | @@ -1242,8 +1242,8 @@ | |
44 | # $Conf{CgiAdminUsers} = 'craig celia'; | |
45 | # --> administrative users are only craig and celia'. | |
46 | # | |
47 | -$Conf{CgiAdminUserGroup} = ''; | |
48 | -$Conf{CgiAdminUsers} = ''; | |
49 | +$Conf{CgiAdminUserGroup} = 'backuppc'; | |
50 | +$Conf{CgiAdminUsers} = 'backuppc'; | |
51 | ||
52 | # | |
53 | # URL of the BackupPC_Admin CGI script. Used for email messages. | |
54 | diff -urN BackupPC-2.0.2.org/conf/hosts BackupPC-2.0.2/conf/hosts | |
55 | --- BackupPC-2.0.2.org/conf/hosts 2003-10-17 00:49:12.000000000 +0200 | |
56 | +++ BackupPC-2.0.2/conf/hosts 2003-10-17 00:49:21.000000000 +0200 | |
57 | @@ -54,3 +54,4 @@ | |
58 | host dhcp user moreUsers # <--- do not edit this line | |
59 | #farside 0 craig jill,jeff # <--- example static IP host entry | |
60 | #larson 1 bill # <--- example DHCP host entry | |
61 | +localhost 0 backuppc | |
62 | diff -urN BackupPC-2.0.2.org/configure.pl BackupPC-2.0.2/configure.pl | |
63 | --- BackupPC-2.0.2.org/configure.pl 2003-10-17 00:49:12.000000000 +0200 | |
64 | +++ BackupPC-2.0.2/configure.pl 2003-10-17 00:52:17.000000000 +0200 | |
65 | @@ -41,13 +41,21 @@ | |
66 | ||
67 | use strict; | |
68 | no utf8; | |
69 | -use vars qw(%Conf %OrigConf); | |
70 | +use vars qw(%Conf %OrigConf $dd $isdeb); | |
71 | use lib "./lib"; | |
72 | ||
73 | my @Packages = qw(ExtUtils::MakeMaker File::Path File::Spec File::Copy | |
74 | DirHandle Digest::MD5 Data::Dumper Getopt::Std | |
75 | BackupPC::Lib BackupPC::FileZIO); | |
76 | ||
77 | +# Debian build dest dir | |
78 | +$dd = $ENV{'DEBIANDEST'}; | |
79 | +$isdeb = 0; | |
80 | +if ($dd ne "") { | |
81 | + $isdeb = 1; | |
82 | +} | |
83 | + | |
84 | + | |
85 | foreach my $pkg ( @Packages ) { | |
86 | eval "use $pkg"; | |
87 | next if ( !$@ ); | |
88 | @@ -86,8 +94,12 @@ | |
89 | # | |
90 | my $ConfigPath = ""; | |
91 | while ( 1 ) { | |
92 | - $ConfigPath = prompt("--> Full path to existing conf/config.pl", | |
93 | + if ($isdeb) { | |
94 | + $ConfigPath = ""; | |
95 | + } else { | |
96 | + $ConfigPath = prompt("--> Full path to existing conf/config.pl", | |
97 | $ConfigPath); | |
98 | + } | |
99 | last if ( $ConfigPath eq "" | |
100 | || ($ConfigPath =~ /^\// && -r $ConfigPath && -w $ConfigPath) ); | |
101 | my $problem = "is not an absolute path"; | |
102 | @@ -133,13 +145,28 @@ | |
103 | hostname => "HostnamePath", | |
104 | ); | |
105 | ||
106 | -foreach my $prog ( sort(keys(%Programs)) ) { | |
107 | +if ($isdeb) { | |
108 | + %Conf = ( | |
109 | + "PerlPath" => "/usr/bin/perl", | |
110 | + "TarClientPath" => "/bin/tar", | |
111 | + "SmbClientPath" => "/usr/bin/smbclient", | |
112 | + "NmbLookupPath" => "/usr/bin/nmblookup", | |
113 | + "RsyncClientPath"=> "/usr/bin/rsync", | |
114 | + "PingPath" => "/bin/ping", | |
115 | + "DfPath" => "/bin/df", | |
116 | + "SshPath" => "/usr/bin/ssh", | |
117 | + "SendmailPath" => "/usr/sbin/sendmail", | |
118 | + "HostnamePath" => "/bin/hostname", | |
119 | + ); | |
120 | +} else { | |
121 | + foreach my $prog ( sort(keys(%Programs)) ) { | |
122 | my $path; | |
123 | foreach my $subProg ( split(/\//, $prog) ) { | |
124 | $path ||= FindProgram("$ENV{PATH}:/bin:/usr/bin:/sbin:/usr/sbin", | |
125 | $subProg); | |
126 | } | |
127 | $Conf{$Programs{$prog}} ||= $path; | |
128 | + } | |
129 | } | |
130 | ||
131 | while ( 1 ) { | |
132 | @@ -152,6 +179,9 @@ | |
133 | printf(" %-11s => %s\n", $prog, $Conf{$Programs{$prog}}); | |
134 | } | |
135 | print "\n"; | |
136 | + if ($isdeb) { | |
137 | + last; | |
138 | + } | |
139 | last if (prompt('--> Are these paths correct?', 'y') =~ /^y/i); | |
140 | foreach my $prog ( sort(keys(%Programs)) ) { | |
141 | $Conf{$Programs{$prog}} = prompt("--> $prog path", | |
142 | @@ -180,7 +210,11 @@ | |
143 | EOF | |
144 | chomp($Conf{ServerHost} = `$Conf{HostnamePath}`) | |
145 | if ( defined($Conf{HostnamePath}) && !defined($Conf{ServerHost}) ); | |
146 | -$Conf{ServerHost} = prompt("--> BackupPC will run on host", $Conf{ServerHost}); | |
147 | + if ($isdeb) { | |
148 | + $Conf{ServerHost} = "XXXXXX"; | |
149 | + } else { | |
150 | + $Conf{ServerHost} = prompt("--> BackupPC will run on host", $Conf{ServerHost}); | |
151 | +} | |
152 | ||
153 | print <<EOF; | |
154 | ||
155 | @@ -197,13 +231,22 @@ | |
156 | EOF | |
157 | my($name, $passwd, $Uid, $Gid); | |
158 | while ( 1 ) { | |
159 | - $Conf{BackupPCUser} = prompt("--> BackupPC should run as user", | |
160 | + if ($isdeb) { | |
161 | + $Conf{BackupPCUser} = "backuppc"; | |
162 | + $name = "backuppc"; | |
163 | + $passwd = ""; | |
164 | + $Uid = 0; | |
165 | + $Gid = 0; | |
166 | + last; | |
167 | + } else { | |
168 | + $Conf{BackupPCUser} = prompt("--> BackupPC should run as user", | |
169 | $Conf{BackupPCUser} || "backuppc"); | |
170 | + } | |
171 | ($name, $passwd, $Uid, $Gid) = getpwnam($Conf{BackupPCUser}); | |
172 | last if ( $name ne "" ); | |
173 | print <<EOF; | |
174 | ||
175 | -getpwnam() says that user $Conf{BackupPCUser} doesn't exist. Please check the | |
176 | +getpwnam() says that user $Conf{BackupPCUser} doesn\'t exist. Please check the | |
177 | name and verify that this user is in the passwd file. | |
178 | ||
179 | EOF | |
180 | @@ -217,8 +260,12 @@ | |
181 | EOF | |
182 | ||
183 | while ( 1 ) { | |
184 | - $Conf{InstallDir} = prompt("--> Install directory (full path)", | |
185 | + if ($isdeb) { | |
186 | + $Conf{InstallDir} = "/usr/share/backuppc"; | |
187 | + } else { | |
188 | + $Conf{InstallDir} = prompt("--> Install directory (full path)", | |
189 | $Conf{InstallDir}); | |
190 | + } | |
191 | last if ( $Conf{InstallDir} =~ /^\// ); | |
192 | } | |
193 | ||
194 | @@ -232,7 +279,11 @@ | |
195 | EOF | |
196 | ||
197 | while ( 1 ) { | |
198 | - $Conf{TopDir} = prompt("--> Data directory (full path)", $Conf{TopDir}); | |
199 | + if ($isdeb) { | |
200 | + $Conf{TopDir} = "/var/lib/backuppc"; | |
201 | + } else { | |
202 | + $Conf{TopDir} = prompt("--> Data directory (full path)", $Conf{TopDir}); | |
203 | + } | |
204 | last if ( $Conf{TopDir} =~ /^\// ); | |
205 | } | |
206 | ||
207 | @@ -295,8 +346,12 @@ | |
208 | EOF | |
209 | } | |
210 | while ( 1 ) { | |
211 | - $Conf{CompressLevel} | |
212 | + if ($isdeb) { | |
213 | + $Conf{CompressLevel} = 3; | |
214 | + } else { | |
215 | + $Conf{CompressLevel} | |
216 | = prompt("--> Compression level", $Conf{CompressLevel}); | |
217 | + } | |
218 | last if ( $Conf{CompressLevel} =~ /^\d+$/ ); | |
219 | } | |
220 | } | |
221 | @@ -313,7 +368,11 @@ | |
222 | EOF | |
223 | ||
224 | while ( 1 ) { | |
225 | - $Conf{CgiDir} = prompt("--> CGI bin directory (full path)", $Conf{CgiDir}); | |
226 | + if ($isdeb) { | |
227 | + $Conf{CgiDir} = "/usr/share/backuppc/cgi-bin"; | |
228 | + } else { | |
229 | + $Conf{CgiDir} = prompt("--> CGI bin directory (full path)", $Conf{CgiDir}); | |
230 | + } | |
231 | last if ( $Conf{CgiDir} =~ /^\// || $Conf{CgiDir} eq "" ); | |
232 | } | |
233 | ||
234 | @@ -333,13 +392,21 @@ | |
235 | ||
236 | EOF | |
237 | while ( 1 ) { | |
238 | - $Conf{CgiImageDir} = prompt("--> Apache image directory (full path)", | |
239 | + if ($isdeb) { | |
240 | + $Conf{CgiImageDir} = "/usr/share/backuppc/image"; | |
241 | + } else { | |
242 | + $Conf{CgiImageDir} = prompt("--> Apache image directory (full path)", | |
243 | $Conf{CgiImageDir}); | |
244 | + } | |
245 | last if ( $Conf{CgiImageDir} =~ /^\// ); | |
246 | } | |
247 | while ( 1 ) { | |
248 | - $Conf{CgiImageDirURL} = prompt("--> URL for image directory (omit http://host; starts with '/')", | |
249 | + if ($isdeb) { | |
250 | + $Conf{CgiImageDirURL} = "/backuppc/image"; | |
251 | + } else { | |
252 | + $Conf{CgiImageDirURL} = prompt("--> URL for image directory (omit http://host; starts with '/')", | |
253 | $Conf{CgiImageDirURL}); | |
254 | + } | |
255 | last if ( $Conf{CgiImageDirURL} =~ /^\// ); | |
256 | } | |
257 | } | |
258 | @@ -355,17 +422,19 @@ | |
259 | ||
260 | EOF | |
261 | ||
262 | -exit unless prompt("--> Do you want to continue?", "y") =~ /y/i; | |
263 | +if (!$isdeb) { | |
264 | + exit unless prompt("--> Do you want to continue?", "y") =~ /y/i; | |
265 | +} | |
266 | ||
267 | # | |
268 | # Create install directories | |
269 | # | |
270 | foreach my $dir ( qw(bin lib/BackupPC/Xfer lib/BackupPC/Zip | |
271 | lib/BackupPC/Lang doc) ) { | |
272 | - next if ( -d "$Conf{InstallDir}/$dir" ); | |
273 | - mkpath("$Conf{InstallDir}/$dir", 0, 0775); | |
274 | - if ( !-d "$Conf{InstallDir}/$dir" | |
275 | - || !chown($Uid, $Gid, "$Conf{InstallDir}/$dir") ) { | |
276 | + next if ( -d "$dd$Conf{InstallDir}/$dir" ); | |
277 | + mkpath("$dd$Conf{InstallDir}/$dir", 0, 0775); | |
278 | + if ( !-d "$dd$Conf{InstallDir}/$dir" | |
279 | + || !chown($Uid, $Gid, "$dd$Conf{InstallDir}/$dir") ) { | |
280 | die("Failed to create or chown $Conf{InstallDir}/$dir\n"); | |
281 | } else { | |
282 | print("Created $Conf{InstallDir}/$dir\n"); | |
283 | @@ -376,9 +445,9 @@ | |
284 | # Create CGI image directory | |
285 | # | |
286 | foreach my $dir ( ($Conf{CgiImageDir}) ) { | |
287 | - next if ( $dir eq "" || -d $dir ); | |
288 | - mkpath($dir, 0, 0775); | |
289 | - if ( !-d $dir || !chown($Uid, $Gid, $dir) ) { | |
290 | + next if ( $dir eq "" || -d "$dd$dir" ); | |
291 | + mkpath("$dd$dir", 0, 0775); | |
292 | + if ( !-d "$dd$dir" || !chown($Uid, $Gid, "$dd$dir") ) { | |
293 | die("Failed to create or chown $dir"); | |
294 | } else { | |
295 | print("Created $dir\n"); | |
296 | @@ -389,9 +458,9 @@ | |
297 | # Create $TopDir's top-level directories | |
298 | # | |
299 | foreach my $dir ( qw(. conf pool cpool pc trash log) ) { | |
300 | - mkpath("$Conf{TopDir}/$dir", 0, 0750) if ( !-d "$Conf{TopDir}/$dir" ); | |
301 | - if ( !-d "$Conf{TopDir}/$dir" | |
302 | - || !chown($Uid, $Gid, "$Conf{TopDir}/$dir") ) { | |
303 | + mkpath("$dd$Conf{TopDir}/$dir", 0, 0750) if ( !-d "$dd$Conf{TopDir}/$dir" ); | |
304 | + if ( !-d "$dd$Conf{TopDir}/$dir" | |
305 | + || !chown($Uid, $Gid, "$dd$Conf{TopDir}/$dir") ) { | |
306 | die("Failed to create or chown $Conf{TopDir}/$dir\n"); | |
307 | } else { | |
308 | print("Created $Conf{TopDir}/$dir\n"); | |
309 | @@ -430,10 +499,13 @@ | |
310 | } | |
311 | } | |
312 | ||
313 | + | |
314 | printf("Making init.d scripts\n"); | |
315 | foreach my $init ( qw(gentoo-backuppc gentoo-backuppc.conf linux-backuppc | |
316 | solaris-backuppc debian-backuppc suse-backuppc) ) { | |
317 | - InstallFile("init.d/src/$init", "init.d/$init", 0444); | |
318 | + if (!$isdeb) { | |
319 | + InstallFile("init.d/src/$init", "init.d/$init", 0444); | |
320 | + } | |
321 | } | |
322 | ||
323 | printf("Installing docs in $Conf{InstallDir}/doc\n"); | |
324 | @@ -471,7 +543,11 @@ | |
325 | if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) { | |
326 | $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'"; | |
327 | } else { | |
328 | - $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'"; | |
329 | + if ($isdeb) { | |
330 | + $Conf{CgiURL} = "'http://$Conf{ServerHost}/backuppc/index.cgi'"; | |
331 | + } else { | |
332 | + $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'"; | |
333 | + } | |
334 | } | |
335 | } | |
336 | ||
337 | @@ -531,7 +607,7 @@ | |
338 | } | |
339 | ||
340 | my $confCopy = "$dest.pre-2.0.2"; | |
341 | -if ( -f $dest && !-f $confCopy ) { | |
342 | +if ( -f "$dd$dest" && !-f "$dd$confCopy" ) { | |
343 | # | |
344 | # Make copy of config file, preserving ownership and modes | |
345 | # | |
346 | @@ -545,7 +621,7 @@ | |
347 | unless chown($uid, $gid, $confCopy); | |
348 | die("can't chmod $mode $confCopy\n") unless chmod($mode, $confCopy); | |
349 | } | |
350 | -open(OUT, ">", $dest) || die("can't open $dest for writing\n"); | |
351 | +open(OUT, ">", "$dd$dest") || die("can't open $dest for writing\n"); | |
352 | binmode(OUT); | |
353 | my $blockComment; | |
354 | foreach my $var ( @$newConf ) { | |
355 | @@ -564,13 +640,13 @@ | |
356 | } | |
357 | close(OUT); | |
358 | if ( !defined($oldConf) ) { | |
359 | - die("can't chmod 0640 mode $dest\n") unless chmod(0640, $dest); | |
360 | - die("can't chown $Uid, $Gid $dest\n") unless chown($Uid, $Gid, $dest); | |
361 | + die("can't chmod 0640 mode $dest\n") unless chmod(0640, "$dd$dest"); | |
362 | + die("can't chown $Uid, $Gid $dest\n") unless chown($Uid, $Gid, "$dd$dest"); | |
363 | } | |
364 | ||
365 | if ( $Conf{CgiDir} ne "" ) { | |
366 | printf("Installing cgi script BackupPC_Admin in $Conf{CgiDir}\n"); | |
367 | - mkpath("$Conf{CgiDir}", 0, 0755); | |
368 | + mkpath("$dd$Conf{CgiDir}", 0, 0755); | |
369 | InstallFile("cgi-bin/BackupPC_Admin", "$Conf{CgiDir}/BackupPC_Admin", | |
370 | 04554); | |
371 | } | |
372 | @@ -625,7 +701,7 @@ | |
373 | my $first = 1; | |
374 | my($uid, $gid) = ($Uid, $Gid); | |
375 | ||
376 | - if ( -f $dest ) { | |
377 | + if ( -f "$dd$dest" ) { | |
378 | # | |
379 | # preserve ownership and modes of files that already exist | |
380 | # | |
381 | @@ -636,10 +712,10 @@ | |
382 | } | |
383 | unlink($dest) if ( -f $dest ); | |
384 | if ( $binary ) { | |
385 | - die("can't copy($prog, $dest)\n") unless copy($prog, $dest); | |
386 | + die("can't copy($prog, $dest)\n") unless copy($prog, "$dd$dest"); | |
387 | } else { | |
388 | open(PROG, $prog) || die("can't open $prog for reading\n"); | |
389 | - open(OUT, ">", $dest) || die("can't open $dest for writing\n"); | |
390 | + open(OUT, ">", "$dd$dest") || die("can't open $dest for writing\n"); | |
391 | binmode(PROG); | |
392 | binmode(OUT); | |
393 | while ( <PROG> ) { | |
394 | @@ -660,8 +736,8 @@ | |
395 | close(PROG); | |
396 | close(OUT); | |
397 | } | |
398 | - die("can't chown $uid, $gid $dest") unless chown($uid, $gid, $dest); | |
399 | - die("can't chmod $mode $dest") unless chmod($mode, $dest); | |
400 | + die("can't chown $uid, $gid $dest") unless chown($uid, $gid, "$dd$dest"); | |
401 | + die("can't chmod $mode $dest") unless chmod($mode, "$dd$dest"); | |
402 | } | |
403 | ||
404 | sub FindProgram | |
405 | diff -urN BackupPC-2.0.2.org/debian/apache.conf BackupPC-2.0.2/debian/apache.conf | |
406 | --- BackupPC-2.0.2.org/debian/apache.conf 1970-01-01 01:00:00.000000000 +0100 | |
407 | +++ BackupPC-2.0.2/debian/apache.conf 2003-10-17 00:49:21.000000000 +0200 | |
408 | @@ -0,0 +1,15 @@ | |
409 | +Alias /backuppc/ /usr/share/backuppc/cgi-bin/ | |
410 | + | |
411 | +<Directory /usr/share/backuppc/cgi-bin/> | |
412 | + AllowOverride None | |
413 | + Options ExecCGI FollowSymlinks | |
414 | + AddHandler cgi-script .cgi | |
415 | + DirectoryIndex index.cgi | |
416 | + | |
417 | + AuthGroupFile /etc/backuppc/htgroup | |
418 | + AuthUserFile /etc/backuppc/htpasswd | |
419 | + AuthType basic | |
420 | + AuthName "BackupPC admin" | |
421 | + require valid-user | |
422 | + | |
423 | +</Directory> | |
424 | diff -urN BackupPC-2.0.2.org/debian/backuppc.config BackupPC-2.0.2/debian/backuppc.config | |
425 | --- BackupPC-2.0.2.org/debian/backuppc.config 1970-01-01 01:00:00.000000000 +0100 | |
426 | +++ BackupPC-2.0.2/debian/backuppc.config 2003-10-17 00:49:21.000000000 +0200 | |
427 | @@ -0,0 +1,14 @@ | |
428 | +#!/bin/sh -e | |
429 | + | |
430 | +. /usr/share/debconf/confmodule | |
431 | + | |
432 | +db_version 2.0 | |
433 | + | |
434 | +if [ ! -f /etc/backuppc/htpasswd ]; then | |
435 | + db_subst "backuppc/configuration-note" "site" `hostname -f` | |
436 | + db_input high "backuppc/configuration-note" || true | |
437 | + db_go | |
438 | +fi | |
439 | + | |
440 | +db_stop | |
441 | +exit 0 | |
442 | diff -urN BackupPC-2.0.2.org/debian/backuppc.doc-base BackupPC-2.0.2/debian/backuppc.doc-base | |
443 | --- BackupPC-2.0.2.org/debian/backuppc.doc-base 1970-01-01 01:00:00.000000000 +0100 | |
444 | +++ BackupPC-2.0.2/debian/backuppc.doc-base 2003-10-17 00:49:21.000000000 +0200 | |
445 | @@ -0,0 +1,9 @@ | |
446 | +Document: backuppc | |
447 | +Title: BackupPC Manual | |
448 | +Author: Craig Baratt | |
449 | +Abstract: BackupPC user and administrator's manual | |
450 | +Section: Apps/Tools | |
451 | + | |
452 | +Format: HTML | |
453 | +Index: /usr/share/doc/backuppc/BackupPC.html | |
454 | +Files: /usr/share/doc/backuppc/html/*.html | |
455 | diff -urN BackupPC-2.0.2.org/debian/backuppc.init BackupPC-2.0.2/debian/backuppc.init | |
456 | --- BackupPC-2.0.2.org/debian/backuppc.init 1970-01-01 01:00:00.000000000 +0100 | |
457 | +++ BackupPC-2.0.2/debian/backuppc.init 2003-10-17 00:49:21.000000000 +0200 | |
458 | @@ -0,0 +1,51 @@ | |
459 | +#! /bin/sh | |
460 | +# /etc/init.d/backuppc | |
461 | +# | |
462 | +# BackupPC Debian init script | |
463 | +# | |
464 | + | |
465 | +set -e | |
466 | + | |
467 | +# Do not change the values below ! Read /usr/share/doc/backuppc/README.Debian ! | |
468 | +BINDIR=/usr/share/backuppc/bin | |
469 | +DATADIR=/var/lib/backuppc | |
470 | +USER=backuppc | |
471 | +# | |
472 | +NAME=backuppc | |
473 | +DAEMON=BackupPC | |
474 | + | |
475 | +test -x $BINDIR/$DAEMON || exit 0 | |
476 | + | |
477 | +case "$1" in | |
478 | + start) | |
479 | + echo -n "Starting $NAME: " | |
480 | + start-stop-daemon --start --pidfile $DATADIR/log/BackupPC.pid \ | |
481 | + -c $USER --exec $BINDIR/$DAEMON -- -d | |
482 | + echo "ok." | |
483 | + ;; | |
484 | + stop) | |
485 | + echo -n "Stopping $NAME: " | |
486 | + start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \ | |
487 | + --oknodo --retry 30 | |
488 | + echo "ok." | |
489 | + ;; | |
490 | + restart) | |
491 | + echo -n "Restarting $NAME: " | |
492 | + start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \ | |
493 | + --oknodo --retry 30 | |
494 | + start-stop-daemon --start --pidfile $DATADIR/log/BackupPC.pid \ | |
495 | + -c $USER --exec $BINDIR/$DAEMON -- -d | |
496 | + echo "ok." | |
497 | + ;; | |
498 | + reload|force-reload) | |
499 | + echo "Reloading $NAME configuration files" | |
500 | + start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid \ | |
501 | + --signal 1 | |
502 | + ;; | |
503 | + *) | |
504 | + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}" | |
505 | + exit 1 | |
506 | + ;; | |
507 | +esac | |
508 | + | |
509 | +exit 0 | |
510 | diff -urN BackupPC-2.0.2.org/debian/backuppc.templates BackupPC-2.0.2/debian/backuppc.templates | |
511 | --- BackupPC-2.0.2.org/debian/backuppc.templates 1970-01-01 01:00:00.000000000 +0100 | |
512 | +++ BackupPC-2.0.2/debian/backuppc.templates 2003-10-17 00:49:21.000000000 +0200 | |
513 | @@ -0,0 +1,9 @@ | |
514 | +Template: backuppc/configuration-note | |
515 | +Type: note | |
516 | +_Description: Web administration default user created | |
517 | + BackupPC can be managed through its web interface: | |
518 | + http://${site}/backuppc/ | |
519 | + . | |
520 | + For that purpose, a web user named 'backuppc' with 'backuppc' as password | |
521 | + has been created. You should change this password as soon as possible by | |
522 | + running 'htpasswd /etc/backuppc/htpasswd backuppc'. | |
523 | diff -urN BackupPC-2.0.2.org/debian/changelog BackupPC-2.0.2/debian/changelog | |
524 | --- BackupPC-2.0.2.org/debian/changelog 1970-01-01 01:00:00.000000000 +0100 | |
525 | +++ BackupPC-2.0.2/debian/changelog 2003-10-17 00:49:21.000000000 +0200 | |
526 | @@ -0,0 +1,44 @@ | |
527 | +backuppc (2.0.0-5) unstable; urgency=low | |
528 | + | |
529 | + * Added gettext based debconf templates. Closes: Bug#205787 | |
530 | + * Added fr.po debconf file. Closes: Bug#206592 | |
531 | + * Added some basic examples | |
532 | + * Fixed the default 'hosts' file: 'localhost' is now owned by 'backuppc' | |
533 | + * Fixed BackupPC_Admin to be able to display config files in /etc/backuppc | |
534 | + * Updated README.debian file. Closes: #203234, #203272 | |
535 | + | |
536 | + -- Ludovic Drolez <ldrolez@debian.org> Mon, 23 Aug 2003 21:34:44 +0200 | |
537 | + | |
538 | +backuppc (2.0.0-4) unstable; urgency=low | |
539 | + | |
540 | + * set Architecture to all | |
541 | + * depends: samba-tng-common or samba-common | |
542 | + * Menu file added. Closes: #201148 | |
543 | + * improved description. Closes: #199170 | |
544 | + | |
545 | + -- Ludovic Drolez <ldrolez@debian.org> Thu, 26 Jun 2003 21:21:21 +0200 | |
546 | + | |
547 | +backuppc (2.0.0-3) unstable; urgency=low | |
548 | + | |
549 | + * added --gecos "" to the adduser line on the postinst. Closes: #198814 | |
550 | + * init script small fix | |
551 | + | |
552 | + -- Ludovic Drolez <ldrolez@debian.org> Thu, 26 Jun 2003 20:57:53 +0200 | |
553 | + | |
554 | +backuppc (2.0.0-2) unstable; urgency=low | |
555 | + | |
556 | + * added dependencies: libdigest-md5-perl | |
557 | + * packaged libfile-rsyncp-perl: you can now use rsync for backups | |
558 | + * images path fixed | |
559 | + * documentation path fixed in cgi script | |
560 | + | |
561 | + -- Ludovic Drolez <ldrolez@debian.org> Wed, 18 Jun 2003 22:08:19 +0200 | |
562 | + | |
563 | +backuppc (2.0.0-1) unstable; urgency=low | |
564 | + | |
565 | + * Initial Release. Closes: Bug#158874. | |
566 | + * modified configure.pl for non-interactive install | |
567 | + * modified perl scripts for having main config files in /etc/backuppc | |
568 | + | |
569 | + -- Ludovic Drolez <ldrolez@debian.org> Mon, 16 Jun 2003 10:43:48 +0200 | |
570 | + | |
571 | diff -urN BackupPC-2.0.2.org/debian/control BackupPC-2.0.2/debian/control | |
572 | --- BackupPC-2.0.2.org/debian/control 1970-01-01 01:00:00.000000000 +0100 | |
573 | +++ BackupPC-2.0.2/debian/control 2003-10-17 00:49:21.000000000 +0200 | |
574 | @@ -0,0 +1,34 @@ | |
575 | +Source: backuppc | |
576 | +Section: utils | |
577 | +Priority: optional | |
578 | +Maintainer: Ludovic Drolez <ldrolez@debian.org> | |
579 | +Build-Depends-Indep: debhelper (>= 4.1.16), perl (>= 5.6.0) | |
580 | +Standards-Version: 3.6.0 | |
581 | + | |
582 | +Package: backuppc | |
583 | +Architecture: all | |
584 | +Depends: ${perl:Depends}, libdigest-md5-perl, libcompress-zlib-perl, libarchive-zip-perl, tar (>> 1.13), samba-common | samba-tng-common, adduser (>=3.9), dpkg (>=1.8.3), smbclient, apache (>> 1.3), wwwconfig-common, perl-suid, debconf | |
585 | +Suggests: rsync, libfile-rsyncp-perl, ssh, exim | sendmail | postfix | mail-transport-agent, www-browser | |
586 | +Description: A high-performance, enterprise-grade system for backing up PCs | |
587 | + BackupPC is disk based and not tape based. This particularity allows | |
588 | + features not found in any other backup solution: | |
589 | + * Clever pooling scheme minimizes disk storage and disk I/O. | |
590 | + Identical files across multiple backups of the same or different PC are | |
591 | + stored only once (using hard links), resulting in substantial savings | |
592 | + in disk storage and disk writes. | |
593 | + * Optional compression provides additional reductions in storage. | |
594 | + CPU impact of compression is low since only new files (those not already | |
595 | + in the pool) need to be compressed. | |
596 | + * A powerful http/cgi user interface allows administrators to view log files, | |
597 | + configuration, current status and allows users to initiate and cancel | |
598 | + backups and browse and restore files from backups very quickly. | |
599 | + * No client-side software is needed. On WinXX the smb protocol is used. | |
600 | + On linux or unix clients, rsync or tar (over ssh/rsh/nfs) can be used | |
601 | + * Flexible restore options. Single files can be downloaded from any backup | |
602 | + directly from the CGI interface. Zip or Tar archives for selected files | |
603 | + or directories can also be downloaded from the CGI interface. | |
604 | + * BackupPC supports mobile environments where laptops are only intermittently | |
605 | + connected to the network and have dynamic IP addresses (DHCP). | |
606 | + * Flexible configuration parameters allow multiple backups to be performed | |
607 | + in parallel. | |
608 | + * and more to discover in the manual... | |
609 | diff -urN BackupPC-2.0.2.org/debian/copyright BackupPC-2.0.2/debian/copyright | |
610 | --- BackupPC-2.0.2.org/debian/copyright 1970-01-01 01:00:00.000000000 +0100 | |
611 | +++ BackupPC-2.0.2/debian/copyright 2003-10-17 00:49:21.000000000 +0200 | |
612 | @@ -0,0 +1,26 @@ | |
613 | +This package was debianized by Ludovic Drolez <ldrolez@debian.org> on | |
614 | +Mon, 16 Jun 2003 10:43:48 +0200. | |
615 | + | |
616 | +It was downloaded from http://sourceforge.net/projects/backuppc/ | |
617 | + | |
618 | +Upstream Author: Craig Barratt <cbarratt@users.sourceforge.net> | |
619 | + | |
620 | +Copyright: | |
621 | + | |
622 | + This package is free software; you can redistribute it and/or modify | |
623 | + it under the terms of the GNU General Public License as published by | |
624 | + the Free Software Foundation; version 2 dated June, 1991. | |
625 | + | |
626 | + This package is distributed in the hope that it will be useful, | |
627 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | |
628 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
629 | + GNU General Public License for more details. | |
630 | + | |
631 | + You should have received a copy of the GNU General Public License | |
632 | + along with this package; if not, write to the Free Software | |
633 | + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
634 | + 02111-1307, USA. | |
635 | + | |
636 | +On Debian GNU/Linux systems, the complete text of the GNU General | |
637 | +Public License can be found in `/usr/share/common-licenses/GPL'. | |
638 | + | |
639 | diff -urN BackupPC-2.0.2.org/debian/dirs BackupPC-2.0.2/debian/dirs | |
640 | --- BackupPC-2.0.2.org/debian/dirs 1970-01-01 01:00:00.000000000 +0100 | |
641 | +++ BackupPC-2.0.2/debian/dirs 2003-10-17 00:49:21.000000000 +0200 | |
642 | @@ -0,0 +1,2 @@ | |
643 | +etc/init.d | |
644 | +etc/backuppc | |
645 | diff -urN BackupPC-2.0.2.org/debian/docs BackupPC-2.0.2/debian/docs | |
646 | --- BackupPC-2.0.2.org/debian/docs 1970-01-01 01:00:00.000000000 +0100 | |
647 | +++ BackupPC-2.0.2/debian/docs 2003-10-17 00:49:21.000000000 +0200 | |
648 | @@ -0,0 +1,2 @@ | |
649 | +README | |
650 | +doc/BackupPC.html | |
651 | diff -urN BackupPC-2.0.2.org/debian/examples/localhost.pl BackupPC-2.0.2/debian/examples/localhost.pl | |
652 | --- BackupPC-2.0.2.org/debian/examples/localhost.pl 1970-01-01 01:00:00.000000000 +0100 | |
653 | +++ BackupPC-2.0.2/debian/examples/localhost.pl 2003-10-17 00:49:21.000000000 +0200 | |
654 | @@ -0,0 +1,9 @@ | |
655 | +# | |
656 | +# Local server backup of /etc as user backuppc | |
657 | +# | |
658 | +$Conf{XferMethod} = 'tar'; | |
659 | + | |
660 | +$Conf{TarShareName} = ['/etc']; | |
661 | + | |
662 | +$Conf{TarClientCmd} = '/usr/bin/env LANG=en $tarPath -c -v -f - -C $shareName' | |
663 | + . ' --totals'; | |
664 | diff -urN BackupPC-2.0.2.org/debian/examples/rsyncd.pl BackupPC-2.0.2/debian/examples/rsyncd.pl | |
665 | --- BackupPC-2.0.2.org/debian/examples/rsyncd.pl 1970-01-01 01:00:00.000000000 +0100 | |
666 | +++ BackupPC-2.0.2/debian/examples/rsyncd.pl 2003-10-17 00:49:21.000000000 +0200 | |
667 | @@ -0,0 +1,11 @@ | |
668 | +# | |
669 | +# Rsync Backup (with rsync daemon on the client) | |
670 | +# | |
671 | + | |
672 | +$Conf{XferMethod} = 'rsyncd'; | |
673 | + | |
674 | +$Conf{RsyncShareName} = ['MyShare']; | |
675 | + | |
676 | +# if needed set a user name and password to access the remote shares | |
677 | +#$Conf{RsyncdUserName} = ''; | |
678 | +#$Conf{RsyncdPasswd} = ''; | |
679 | diff -urN BackupPC-2.0.2.org/debian/examples/rsyncssh.pl BackupPC-2.0.2/debian/examples/rsyncssh.pl | |
680 | --- BackupPC-2.0.2.org/debian/examples/rsyncssh.pl 1970-01-01 01:00:00.000000000 +0100 | |
681 | +++ BackupPC-2.0.2/debian/examples/rsyncssh.pl 2003-10-17 00:49:21.000000000 +0200 | |
682 | @@ -0,0 +1,11 @@ | |
683 | +# | |
684 | +# Rsync backup over ssh | |
685 | +# | |
686 | +# You should generate an SSH key pair to allow the local backuppc user | |
687 | +# to connect as root on the target host. | |
688 | +# Please refer to the BackupPC's manual for details | |
689 | +# | |
690 | + | |
691 | +$Conf{XferMethod} = 'rsync'; | |
692 | + | |
693 | +$Conf{RsyncShareName} = [ '/onedir', '/anotherdir' ]; | |
694 | diff -urN BackupPC-2.0.2.org/debian/examples/smb.pl BackupPC-2.0.2/debian/examples/smb.pl | |
695 | --- BackupPC-2.0.2.org/debian/examples/smb.pl 1970-01-01 01:00:00.000000000 +0100 | |
696 | +++ BackupPC-2.0.2/debian/examples/smb.pl 2003-10-17 00:49:21.000000000 +0200 | |
697 | @@ -0,0 +1,13 @@ | |
698 | +# | |
699 | +# SMB Backup (for Windows clients) | |
700 | +# | |
701 | + | |
702 | +$Conf{XferMethod} = 'smb'; | |
703 | + | |
704 | +$Conf{SmbShareName} = ['C$', 'MyShare']; | |
705 | + | |
706 | +# if needed set a user name and password to access the remote shares | |
707 | +#$Conf{SmbShareUserName} = ''; | |
708 | +#$Conf{SmbSharePasswd} = ''; | |
709 | +# if you want anonymous login under XP, you should set $Conf{SmbShareUserName} | |
710 | +# to something (like 'guest'). | |
711 | diff -urN BackupPC-2.0.2.org/debian/examples/tarssh.pl BackupPC-2.0.2/debian/examples/tarssh.pl | |
712 | --- BackupPC-2.0.2.org/debian/examples/tarssh.pl 1970-01-01 01:00:00.000000000 +0100 | |
713 | +++ BackupPC-2.0.2/debian/examples/tarssh.pl 2003-10-17 00:49:21.000000000 +0200 | |
714 | @@ -0,0 +1,11 @@ | |
715 | +# | |
716 | +# Tar backup over ssh | |
717 | +# | |
718 | +# You should generate an SSH key pair to allow the local backuppc user | |
719 | +# to connect as root on the target host. | |
720 | +# Please refer to the BackupPC's manual for details | |
721 | +# | |
722 | + | |
723 | +$Conf{XferMethod} = 'tar'; | |
724 | + | |
725 | +$Conf{BackupFilesOnly} = [ '/onedir', '/anotherdir' ]; | |
726 | diff -urN BackupPC-2.0.2.org/debian/localhost.pl BackupPC-2.0.2/debian/localhost.pl | |
727 | --- BackupPC-2.0.2.org/debian/localhost.pl 1970-01-01 01:00:00.000000000 +0100 | |
728 | +++ BackupPC-2.0.2/debian/localhost.pl 2003-10-17 00:49:21.000000000 +0200 | |
729 | @@ -0,0 +1,9 @@ | |
730 | +# | |
731 | +# Local server backup of /etc as user backuppc | |
732 | +# | |
733 | +$Conf{XferMethod} = 'tar'; | |
734 | + | |
735 | +$Conf{TarShareName} = ['/etc']; | |
736 | + | |
737 | +$Conf{TarClientCmd} = '/usr/bin/env LANG=en $tarPath -c -v -f - -C $shareName' | |
738 | + . ' --totals'; | |
739 | diff -urN BackupPC-2.0.2.org/debian/menu BackupPC-2.0.2/debian/menu | |
740 | --- BackupPC-2.0.2.org/debian/menu 1970-01-01 01:00:00.000000000 +0100 | |
741 | +++ BackupPC-2.0.2/debian/menu 2003-10-17 00:49:21.000000000 +0200 | |
742 | @@ -0,0 +1,4 @@ | |
743 | +?package(backuppc):needs=X11 section=Apps/System\ | |
744 | + title="View backuppc status" \ | |
745 | + command="www-browser http://localhost/backuppc/" | |
746 | + | |
747 | diff -urN BackupPC-2.0.2.org/debian/patch BackupPC-2.0.2/debian/patch | |
748 | --- BackupPC-2.0.2.org/debian/patch 1970-01-01 01:00:00.000000000 +0100 | |
749 | +++ BackupPC-2.0.2/debian/patch 2003-10-17 00:49:21.000000000 +0200 | |
750 | @@ -0,0 +1,92 @@ | |
751 | +diff -Nru backuppc-2.0.0.ori/debian/backuppc.templates backuppc-2.0.0/debian/backuppc.templates | |
752 | +--- backuppc-2.0.0.ori/debian/backuppc.templates 2003-08-01 09:56:58.000000000 +0200 | |
753 | ++++ backuppc-2.0.0/debian/backuppc.templates 2003-08-06 09:22:15.000000000 +0200 | |
754 | +@@ -1,10 +1,9 @@ | |
755 | + Template: backuppc/configuration-note | |
756 | + Type: note | |
757 | +-Description: Package configuration note. | |
758 | +- BackupPC can be managed for the web interface here: | |
759 | +- . | |
760 | +- http://${site}/backuppc/ | |
761 | ++_Description: Web administration default user created | |
762 | ++ BackupPC can be managed through its web interface: | |
763 | ++ http://${site}/backuppc/ | |
764 | + . | |
765 | + For that purpose, a web user named 'backuppc' with 'backuppc' as password | |
766 | +- has been created. You should change its password as soon as possible by | |
767 | +- running 'htpasswd htpasswd backuppc' in /etc/backuppc/. | |
768 | ++ has been created. You should change this password as soon as possible by | |
769 | ++ running 'htpasswd /etc/backuppc/htpasswd backuppc'. | |
770 | +diff -Nru backuppc-2.0.0.ori/debian/control backuppc-2.0.0/debian/control | |
771 | +--- backuppc-2.0.0.ori/debian/control 2003-08-01 09:56:58.000000000 +0200 | |
772 | ++++ backuppc-2.0.0/debian/control 2003-08-06 09:16:28.000000000 +0200 | |
773 | +@@ -2,7 +2,7 @@ | |
774 | + Section: utils | |
775 | + Priority: optional | |
776 | + Maintainer: Ludovic Drolez <ldrolez@debian.org> | |
777 | +-Build-Depends-Indep: debhelper (>> 3.0.0), perl (>= 5.6.0) | |
778 | ++Build-Depends-Indep: debhelper (>= 4.1.16), perl (>= 5.6.0) | |
779 | + Standards-Version: 3.5.10 | |
780 | + | |
781 | + Package: backuppc | |
782 | +@@ -31,4 +31,4 @@ | |
783 | + connected to the network and have dynamic IP addresses (DHCP). | |
784 | + * Flexible configuration parameters allow multiple backups to be performed | |
785 | + in parallel. | |
786 | +- * and more to discover in the manual... | |
787 |