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
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"
13 } elsif ( $type eq "docs" ) {
14 - $file = "$BinDir/../doc/BackupPC.html";
15 + $file = "/usr/share/doc/backuppc/BackupPC.html";
16 if ( open(LOG, $file) ) {
18 Header($Lang->{BackupPC__Documentation});
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";
32 NavLink("?action=view&type=XferErrbad&host=${EscURI($host)}",
33 $Lang->{Last_bad_XferLOG_errors_only});
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});
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
44 # $Conf{CgiAdminUsers} = 'craig celia';
45 # --> administrative users are only craig and celia'.
47 -$Conf{CgiAdminUserGroup} = '';
48 -$Conf{CgiAdminUsers} = '';
49 +$Conf{CgiAdminUserGroup} = 'backuppc';
50 +$Conf{CgiAdminUsers} = 'backuppc';
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
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
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
69 -use vars qw(%Conf %OrigConf);
70 +use vars qw(%Conf %OrigConf $dd $isdeb);
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);
77 +# Debian build dest dir
78 +$dd = $ENV{'DEBIANDEST'};
85 foreach my $pkg ( @Packages ) {
92 - $ConfigPath = prompt("--> Full path to existing conf/config.pl",
96 + $ConfigPath = prompt("--> Full path to existing conf/config.pl",
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",
106 -foreach my $prog ( sort(keys(%Programs)) ) {
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",
121 + foreach my $prog ( sort(keys(%Programs)) ) {
123 foreach my $subProg ( split(/\//, $prog) ) {
124 $path ||= FindProgram("$ENV{PATH}:/bin:/usr/bin:/sbin:/usr/sbin",
127 $Conf{$Programs{$prog}} ||= $path;
133 printf(" %-11s => %s\n", $prog, $Conf{$Programs{$prog}});
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",
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});
148 + $Conf{ServerHost} = "XXXXXX";
150 + $Conf{ServerHost} = prompt("--> BackupPC will run on host", $Conf{ServerHost});
155 @@ -197,13 +231,22 @@
157 my($name, $passwd, $Uid, $Gid);
159 - $Conf{BackupPCUser} = prompt("--> BackupPC should run as user",
161 + $Conf{BackupPCUser} = "backuppc";
162 + $name = "backuppc";
168 + $Conf{BackupPCUser} = prompt("--> BackupPC should run as user",
169 $Conf{BackupPCUser} || "backuppc");
171 ($name, $passwd, $Uid, $Gid) = getpwnam($Conf{BackupPCUser});
172 last if ( $name ne "" );
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.
184 - $Conf{InstallDir} = prompt("--> Install directory (full path)",
186 + $Conf{InstallDir} = "/usr/share/backuppc";
188 + $Conf{InstallDir} = prompt("--> Install directory (full path)",
191 last if ( $Conf{InstallDir} =~ /^\// );
198 - $Conf{TopDir} = prompt("--> Data directory (full path)", $Conf{TopDir});
200 + $Conf{TopDir} = "/var/lib/backuppc";
202 + $Conf{TopDir} = prompt("--> Data directory (full path)", $Conf{TopDir});
204 last if ( $Conf{TopDir} =~ /^\// );
211 - $Conf{CompressLevel}
213 + $Conf{CompressLevel} = 3;
215 + $Conf{CompressLevel}
216 = prompt("--> Compression level", $Conf{CompressLevel});
218 last if ( $Conf{CompressLevel} =~ /^\d+$/ );
225 - $Conf{CgiDir} = prompt("--> CGI bin directory (full path)", $Conf{CgiDir});
227 + $Conf{CgiDir} = "/usr/share/backuppc/cgi-bin";
229 + $Conf{CgiDir} = prompt("--> CGI bin directory (full path)", $Conf{CgiDir});
231 last if ( $Conf{CgiDir} =~ /^\// || $Conf{CgiDir} eq "" );
234 @@ -333,13 +392,21 @@
238 - $Conf{CgiImageDir} = prompt("--> Apache image directory (full path)",
240 + $Conf{CgiImageDir} = "/usr/share/backuppc/image";
242 + $Conf{CgiImageDir} = prompt("--> Apache image directory (full path)",
245 last if ( $Conf{CgiImageDir} =~ /^\// );
248 - $Conf{CgiImageDirURL} = prompt("--> URL for image directory (omit http://host; starts with '/')",
250 + $Conf{CgiImageDirURL} = "/backuppc/image";
252 + $Conf{CgiImageDirURL} = prompt("--> URL for image directory (omit http://host; starts with '/')",
253 $Conf{CgiImageDirURL});
255 last if ( $Conf{CgiImageDirURL} =~ /^\// );
258 @@ -355,17 +422,19 @@
262 -exit unless prompt("--> Do you want to continue?", "y") =~ /y/i;
264 + exit unless prompt("--> Do you want to continue?", "y") =~ /y/i;
268 # Create install directories
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");
282 print("Created $Conf{InstallDir}/$dir\n");
284 # Create CGI image directory
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");
295 print("Created $dir\n");
297 # Create $TopDir's top-level directories
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");
308 print("Created $Conf{TopDir}/$dir\n");
309 @@ -430,10 +499,13 @@
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);
319 + InstallFile("init.d/src/$init", "init.d/$init", 0444);
323 printf("Installing docs in $Conf{InstallDir}/doc\n");
325 if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
326 $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
328 - $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
330 + $Conf{CgiURL} = "'http://$Conf{ServerHost}/backuppc/index.cgi'";
332 + $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
340 my $confCopy = "$dest.pre-2.0.2";
341 -if ( -f $dest && !-f $confCopy ) {
342 +if ( -f "$dd$dest" && !-f "$dd$confCopy" ) {
344 # Make copy of config file, preserving ownership and modes
347 unless chown($uid, $gid, $confCopy);
348 die("can't chmod $mode $confCopy\n") unless chmod($mode, $confCopy);
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");
354 foreach my $var ( @$newConf ) {
355 @@ -564,13 +640,13 @@
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");
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",
374 my($uid, $gid) = ($Uid, $Gid);
377 + if ( -f "$dd$dest" ) {
379 # preserve ownership and modes of files that already exist
381 @@ -636,10 +712,10 @@
383 unlink($dest) if ( -f $dest );
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");
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");
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");
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
409 +Alias /backuppc/ /usr/share/backuppc/cgi-bin/
411 +<Directory /usr/share/backuppc/cgi-bin/>
413 + Options ExecCGI FollowSymlinks
414 + AddHandler cgi-script .cgi
415 + DirectoryIndex index.cgi
417 + AuthGroupFile /etc/backuppc/htgroup
418 + AuthUserFile /etc/backuppc/htpasswd
420 + AuthName "BackupPC admin"
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
430 +. /usr/share/debconf/confmodule
434 +if [ ! -f /etc/backuppc/htpasswd ]; then
435 + db_subst "backuppc/configuration-note" "site" `hostname -f`
436 + db_input high "backuppc/configuration-note" || true
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
447 +Title: BackupPC Manual
448 +Author: Craig Baratt
449 +Abstract: BackupPC user and administrator's manual
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
460 +# /etc/init.d/backuppc
462 +# BackupPC Debian init script
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
475 +test -x $BINDIR/$DAEMON || exit 0
479 + echo -n "Starting $NAME: "
480 + start-stop-daemon --start --pidfile $DATADIR/log/BackupPC.pid \
481 + -c $USER --exec $BINDIR/$DAEMON -- -d
485 + echo -n "Stopping $NAME: "
486 + start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
487 + --oknodo --retry 30
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
498 + reload|force-reload)
499 + echo "Reloading $NAME configuration files"
500 + start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid \
504 + echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"
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
514 +Template: backuppc/configuration-note
516 +_Description: Web administration default user created
517 + BackupPC can be managed through its web interface:
518 + http://${site}/backuppc/
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
527 +backuppc (2.0.0-5) unstable; urgency=low
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
536 + -- Ludovic Drolez <ldrolez@debian.org> Mon, 23 Aug 2003 21:34:44 +0200
538 +backuppc (2.0.0-4) unstable; urgency=low
540 + * set Architecture to all
541 + * depends: samba-tng-common or samba-common
542 + * Menu file added. Closes: #201148
543 + * improved description. Closes: #199170
545 + -- Ludovic Drolez <ldrolez@debian.org> Thu, 26 Jun 2003 21:21:21 +0200
547 +backuppc (2.0.0-3) unstable; urgency=low
549 + * added --gecos "" to the adduser line on the postinst. Closes: #198814
550 + * init script small fix
552 + -- Ludovic Drolez <ldrolez@debian.org> Thu, 26 Jun 2003 20:57:53 +0200
554 +backuppc (2.0.0-2) unstable; urgency=low
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
561 + -- Ludovic Drolez <ldrolez@debian.org> Wed, 18 Jun 2003 22:08:19 +0200
563 +backuppc (2.0.0-1) unstable; urgency=low
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
569 + -- Ludovic Drolez <ldrolez@debian.org> Mon, 16 Jun 2003 10:43:48 +0200
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
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
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
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
613 +This package was debianized by Ludovic Drolez <ldrolez@debian.org> on
614 +Mon, 16 Jun 2003 10:43:48 +0200.
616 +It was downloaded from http://sourceforge.net/projects/backuppc/
618 +Upstream Author: Craig Barratt <cbarratt@users.sourceforge.net>
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.
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.
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
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'.
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
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
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
656 +# Local server backup of /etc as user backuppc
658 +$Conf{XferMethod} = 'tar';
660 +$Conf{TarShareName} = ['/etc'];
662 +$Conf{TarClientCmd} = '/usr/bin/env LANG=en $tarPath -c -v -f - -C $shareName'
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
669 +# Rsync Backup (with rsync daemon on the client)
672 +$Conf{XferMethod} = 'rsyncd';
674 +$Conf{RsyncShareName} = ['MyShare'];
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
684 +# Rsync backup over ssh
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
691 +$Conf{XferMethod} = 'rsync';
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
699 +# SMB Backup (for Windows clients)
702 +$Conf{XferMethod} = 'smb';
704 +$Conf{SmbShareName} = ['C$', 'MyShare'];
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
716 +# Tar backup over ssh
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
723 +$Conf{XferMethod} = 'tar';
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
731 +# Local server backup of /etc as user backuppc
733 +$Conf{XferMethod} = 'tar';
735 +$Conf{TarShareName} = ['/etc'];
737 +$Conf{TarClientCmd} = '/usr/bin/env LANG=en $tarPath -c -v -f - -C $shareName'
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
743 +?package(backuppc):needs=X11 section=Apps/System\
744 + title="View backuppc status" \
745 + command="www-browser http://localhost/backuppc/"
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
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
755 + Template: backuppc/configuration-note
757 +-Description: Package configuration note.
758 +- BackupPC can be managed for the web interface here:
760 +- http://${site}/backuppc/
761 ++_Description: Web administration default user created
762 ++ BackupPC can be managed through its web interface:
763 ++ http://${site}/backuppc/
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
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
783 + connected to the network and have dynamic IP addresses (DHCP).
784 + * Flexible configuration parameters allow multiple backups to be performed
786 +- * and more to discover in the manual...
787 +\ Pas de fin de ligne à la fin du fichier.
788 ++ * and more to discover in the manual...
789 +diff -Nru backuppc-2.0.0.ori/debian/po/POTFILES.in backuppc-2.0.0/debian/po/POTFILES.in
790 +--- backuppc-2.0.0.ori/debian/po/POTFILES.in 1970-01-01 01:00:00.000000000 +0100
791 ++++ backuppc-2.0.0/debian/po/POTFILES.in 2003-08-06 09:16:29.000000000 +0200
793 ++[type: gettext/rfc822deb] backuppc.templates
794 +diff -Nru backuppc-2.0.0.ori/debian/po/templates.pot backuppc-2.0.0/debian/po/templates.pot
795 +--- backuppc-2.0.0.ori/debian/po/templates.pot 1970-01-01 01:00:00.000000000 +0100
796 ++++ backuppc-2.0.0/debian/po/templates.pot 2003-08-06 09:22:27.000000000 +0200
799 ++# Translators, if you are not familiar with the PO format, gettext
800 ++# documentation is worth reading, especially sections dedicated to
801 ++# this format, e.g. by running:
802 ++# info -n '(gettext)PO Files'
803 ++# info -n '(gettext)Header Entry'
805 ++# Some information specific to po-debconf are available at
806 ++# /usr/share/doc/po-debconf/README-trans
807 ++# or http://www.debian.org/intl/l10n/po-debconf/README-trans
809 ++# Developers do not need to manually edit POT or PO files.
814 ++"Project-Id-Version: PACKAGE VERSION\n"
815 ++"Report-Msgid-Bugs-To: \n"
816 ++"POT-Creation-Date: 2003-08-06 09:22+0200\n"
817 ++"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
818 ++"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
819 ++"Language-Team: LANGUAGE <LL@li.org>\n"
820 ++"MIME-Version: 1.0\n"
821 ++"Content-Type: text/plain; charset=CHARSET\n"
822 ++"Content-Transfer-Encoding: 8bit\n"
825 ++#: ../backuppc.templates:3
826 ++msgid "Web administration default user created"
830 ++#: ../backuppc.templates:3
832 ++"BackupPC can be managed through its web interface:\n"
833 ++" http://${site}/backuppc/"
837 ++#: ../backuppc.templates:3
839 ++"For that purpose, a web user named 'backuppc' with 'backuppc' as password "
840 ++"has been created. You should change this password as soon as possible by "
841 ++"running 'htpasswd /etc/backuppc/htpasswd backuppc'."
843 diff -urN BackupPC-2.0.2.org/debian/po/fr.po BackupPC-2.0.2/debian/po/fr.po
844 --- BackupPC-2.0.2.org/debian/po/fr.po 1970-01-01 01:00:00.000000000 +0100
845 +++ BackupPC-2.0.2/debian/po/fr.po 2003-10-17 00:49:21.000000000 +0200
848 +# Translators, if you are not familiar with the PO format, gettext
849 +# documentation is worth reading, especially sections dedicated to
850 +# this format, e.g. by running:
851 +# info -n '(gettext)PO Files'
852 +# info -n '(gettext)Header Entry'
854 +# Some information specific to po-debconf are available at
855 +# /usr/share/doc/po-debconf/README-trans
856 +# or http://www.debian.org/intl/l10n/po-debconf/README-trans
858 +# Developers do not need to manually edit POT or PO files.
862 +"Project-Id-Version: backuppc (2.0.0-4)\n"
863 +"Report-Msgid-Bugs-To: \n"
864 +"POT-Creation-Date: 2003-08-06 09:22+0200\n"
865 +"PO-Revision-Date: 2003-08-06 09:21+0100\n"
866 +"Last-Translator: Christian Perrier <bubulle@debian.org>\n"
867 +"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
868 +"MIME-Version: 1.0\n"
869 +"Content-Type: text/plain; charset=iso-8859-15\n"
870 +"Content-Transfer-Encoding: 8bit\n"
873 +#: ../backuppc.templates:3
874 +msgid "Web administration default user created"
875 +msgstr "Création de l'utilisateur par défaut pour l'administration Web"
878 +#: ../backuppc.templates:3
880 +"BackupPC can be managed through its web interface:\n"
881 +" http://${site}/backuppc/"
883 +"BackupPC peut être géré avec une interface Web :\n"
884 +" http://${site}/backuppc/"
887 +#: ../backuppc.templates:3
889 +"For that purpose, a web user named 'backuppc' with 'backuppc' as password "
890 +"has been created. You should change this password as soon as possible by "
891 +"running 'htpasswd /etc/backuppc/htpasswd backuppc'."
893 +"À cet effet, un utilisateur web nommé « backuppc » a été créé. Son mot de "
894 +"passe est actuellement « backuppc ». Vous devriez changer ce mot de passe "
895 +"dès que possible avec la commande « htpasswd /etc/backuppc/htpasswd "
897 diff -urN BackupPC-2.0.2.org/debian/po/POTFILES.in BackupPC-2.0.2/debian/po/POTFILES.in
898 --- BackupPC-2.0.2.org/debian/po/POTFILES.in 1970-01-01 01:00:00.000000000 +0100
899 +++ BackupPC-2.0.2/debian/po/POTFILES.in 2003-10-17 00:49:21.000000000 +0200
901 +[type: gettext/rfc822deb] backuppc.templates
902 diff -urN BackupPC-2.0.2.org/debian/po/templates.pot BackupPC-2.0.2/debian/po/templates.pot
903 --- BackupPC-2.0.2.org/debian/po/templates.pot 1970-01-01 01:00:00.000000000 +0100
904 +++ BackupPC-2.0.2/debian/po/templates.pot 2003-10-17 00:49:21.000000000 +0200
907 +# Translators, if you are not familiar with the PO format, gettext
908 +# documentation is worth reading, especially sections dedicated to
909 +# this format, e.g. by running:
910 +# info -n '(gettext)PO Files'
911 +# info -n '(gettext)Header Entry'
913 +# Some information specific to po-debconf are available at
914 +# /usr/share/doc/po-debconf/README-trans
915 +# or http://www.debian.org/intl/l10n/po-debconf/README-trans
917 +# Developers do not need to manually edit POT or PO files.
922 +"Project-Id-Version: PACKAGE VERSION\n"
923 +"Report-Msgid-Bugs-To: \n"
924 +"POT-Creation-Date: 2003-08-06 09:22+0200\n"
925 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
926 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
927 +"Language-Team: LANGUAGE <LL@li.org>\n"
928 +"MIME-Version: 1.0\n"
929 +"Content-Type: text/plain; charset=CHARSET\n"
930 +"Content-Transfer-Encoding: 8bit\n"
933 +#: ../backuppc.templates:3
934 +msgid "Web administration default user created"
938 +#: ../backuppc.templates:3
940 +"BackupPC can be managed through its web interface:\n"
941 +" http://${site}/backuppc/"
945 +#: ../backuppc.templates:3
947 +"For that purpose, a web user named 'backuppc' with 'backuppc' as password "
948 +"has been created. You should change this password as soon as possible by "
949 +"running 'htpasswd /etc/backuppc/htpasswd backuppc'."
951 diff -urN BackupPC-2.0.2.org/debian/postinst BackupPC-2.0.2/debian/postinst
952 --- BackupPC-2.0.2.org/debian/postinst 1970-01-01 01:00:00.000000000 +0100
953 +++ BackupPC-2.0.2/debian/postinst 2003-10-17 00:49:21.000000000 +0200
956 +# postinst script for backuppc
958 +# see: dh_installdeb(1)
962 +# summary of how this script can be called:
963 +# * <postinst> `configure' <most-recently-configured-version>
964 +# * <old-postinst> `abort-upgrade' <new version>
965 +# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
967 +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
968 +# <failed-install-package> <version> `removing'
969 +# <conflicting-package> <version>
970 +# for details, see http://www.debian.org/doc/debian-policy/ or
971 +# the debian-policy package
973 +# quoting from the policy:
974 +# Any necessary prompting should almost always be confined to the
975 +# post-installation script, and should be protected with a conditional
976 +# so that unnecessary prompting doesn't happen if a package's
977 +# installation fails and the `postinst' is called with `abort-upgrade',
978 +# `abort-remove' or `abort-deconfigure'.
980 +. /usr/share/debconf/confmodule
986 + webservers="apache"
987 + # Set up web server.
988 + for server in $webservers ; do
989 + #trustuser=$wwwuser
990 + #. /usr/share/wwwconfig-common/exim-trust.sh
991 + #test "$status" = "trust" && restart="exim $restart"
993 + includefile="/etc/backuppc/apache.conf"
994 + . /usr/share/wwwconfig-common/apache-include_all.sh
995 + test "$status" = "uncomment" -o "$status" = "include" && restart="$server $restart"
997 + #for index in index.pl; do
998 + # . /usr/share/wwwconfig-common/apache-index_all.sh
999 + # test "$status" = "added" && restart="$server $restart"
1003 + # creating backuppc group if he isn't already there
1004 + if ! getent group backuppc >/dev/null; then
1005 + addgroup backuppc >/dev/null
1008 + # creating backuppc user if he isn't already there
1009 + if ! getent passwd backuppc >/dev/null; then
1010 + adduser --gecos "" --disabled-password --ingroup backuppc --home /var/lib/backuppc backuppc >/dev/null
1013 + #usermod -c "BackupPC Daemon" backuppc
1015 + chown -R backuppc.backuppc /var/lib/backuppc
1016 + chmod -R 750 /var/lib/backuppc
1019 + OVERRIDDEN=`dpkg-statoverride --list /usr/share/backuppc/cgi-bin/index.cgi || true`
1020 + [ "${OVERRIDDEN}" = "" ] && dpkg-statoverride --update --add backuppc backuppc 4755 /usr/share/backuppc/cgi-bin/index.cgi
1022 + if [ ! -f /etc/backuppc/htpasswd ]; then
1023 + touch /etc/backuppc/htpasswd
1024 + htpasswd -b /etc/backuppc/htpasswd backuppc backuppc
1025 + touch /etc/backuppc/htgroup
1028 + servers="exim apache-ssl apache"
1029 + . /usr/share/wwwconfig-common/restart.sh
1031 + # update the hostname
1032 + perl -e "s/XXXXXX/`hostname`/g" -p -i.tmp /etc/backuppc/config.pl
1033 + rm -f /etc/backuppc/config.pl.tmp
1036 + abort-upgrade|abort-remove|abort-deconfigure)
1041 + echo "postinst called with unknown argument \`$1'" >&2
1048 +# dh_installdeb will replace this with shell code automatically
1049 +# generated by other debhelper scripts.
1056 diff -urN BackupPC-2.0.2.org/debian/postrm BackupPC-2.0.2/debian/postrm
1057 --- BackupPC-2.0.2.org/debian/postrm 1970-01-01 01:00:00.000000000 +0100
1058 +++ BackupPC-2.0.2/debian/postrm 2003-10-17 00:49:21.000000000 +0200
1061 +# postrm script for backuppc
1063 +# see: dh_installdeb(1)
1067 +# summary of how this script can be called:
1068 +# * <postrm> `remove'
1069 +# * <postrm> `purge'
1070 +# * <old-postrm> `upgrade' <new-version>
1071 +# * <new-postrm> `failed-upgrade' <old-version>
1072 +# * <new-postrm> `abort-install'
1073 +# * <new-postrm> `abort-install' <old-version>
1074 +# * <new-postrm> `abort-upgrade' <old-version>
1075 +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
1076 +# for details, see http://www.debian.org/doc/debian-policy/ or
1077 +# the debian-policy package
1083 + webservers="apache"
1084 + includefile="/etc/backuppc/apache.conf"
1086 + rm -rf /etc/backuppc
1087 + for server in $webservers ; do
1088 + conffile="/etc/$server/httpd.conf"
1089 + . /usr/share/wwwconfig-common/apache-uninclude.sh
1090 + if [ "$status" = "purge" ] ;
1091 + then restart="$restart $server"
1095 + servers="exim apache-ssl apache"
1096 + . /usr/share/wwwconfig-common/restart.sh
1098 + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
1101 + echo "postrm called with unknown argument \`$1'" >&2
1106 +# dh_installdeb will replace this with shell code automatically
1107 +# generated by other debhelper scripts.
1112 diff -urN BackupPC-2.0.2.org/debian/README.Debian BackupPC-2.0.2/debian/README.Debian
1113 --- BackupPC-2.0.2.org/debian/README.Debian 1970-01-01 01:00:00.000000000 +0100
1114 +++ BackupPC-2.0.2/debian/README.Debian 2003-10-17 00:49:21.000000000 +0200
1116 +BackupPC for Debian
1117 +-------------------
1119 +The Web interface is available at http://myserver/backuppc/. Log in a user
1120 +backuppc with the default password: backuppc. You should change this default
1121 +password as soon as possible by running htpasswd for /etc/backuppc/htpasswd.
1122 +Users in the backuppc htgroup file are also admins.
1124 +The default install will backup the local /etc directory using the 'backuppc'
1125 +user, so it will not backup root only files like /etc/shadow. If you want
1126 +to do a local backup as root, you need to use ssh and ssh authentication keys,
1127 +as explained in the manual. The examples/ directory contains some basic host
1128 +configuration files.
1130 +If you do not like the default data directory (/var/lib/backuppc/), you
1131 +should move this directory where you want and make a symbolic link from
1132 +the new directory to the default one (all paths are hardcoded so it's the
1133 +easiest way to change the data directory).
1138 +- Modified Perl scripts for having main config files (hosts and config.pl)
1140 +- Data directory is /var/lib/backuppc/
1144 + -- Ludovic Drolez <ldrolez@debian.org>, Mon, 16 Jun 2003 10:43:48 +0200
1145 diff -urN BackupPC-2.0.2.org/debian/rules BackupPC-2.0.2/debian/rules
1146 --- BackupPC-2.0.2.org/debian/rules 1970-01-01 01:00:00.000000000 +0100
1147 +++ BackupPC-2.0.2/debian/rules 2003-10-17 00:49:21.000000000 +0200
1150 +# Sample debian/rules that uses debhelper.
1151 +# GNU copyright 1997 to 1999 by Joey Hess.
1153 +# Uncomment this to turn on verbose mode.
1154 +#export DH_VERBOSE=1
1156 +# This is the debhelper compatibility version to use.
1161 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
1164 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
1165 + INSTALL_PROGRAM += -s
1168 +configure: configure-stamp
1171 + # Add here commands to configure the package.
1173 + touch configure-stamp
1178 +build-stamp: configure-stamp
1181 + # Add here commands to compile the package.
1183 + #/usr/bin/docbook-to-man debian/backuppc.sgml > backuppc.1
1190 + rm -f build-stamp configure-stamp
1192 + # Add here commands to clean up after the build process.
1193 + rm -f init.d/*-backuppc*
1204 + # Add here commands to install the package into debian/backuppc.
1205 + env DEBIANDEST=$(CURDIR)/debian/backuppc/ perl ./configure.pl
1206 + pod2man --section=8 --center="BackupPC manual" doc/BackupPC.pod backuppc.8
1207 + perl -e "s/.IX Title.*/.SH NAME\nbackuppc \\- BackupPC manual/g" -p -i.tmp backuppc.8
1208 + rm -f debian/backuppc/usr/share/backuppc/doc/*
1209 + mv -f debian/backuppc/var/lib/backuppc/conf/* debian/backuppc/etc/backuppc
1210 + mv -f debian/backuppc/usr/share/backuppc/cgi-bin/* debian/backuppc/usr/share/backuppc/cgi-bin/index.cgi
1211 + install --mode=644 conf/hosts debian/backuppc/etc/backuppc
1212 + install --mode=644 debian/localhost.pl debian/backuppc/etc/backuppc
1213 + install --mode=644 debian/apache.conf debian/backuppc/etc/backuppc
1214 + rmdir debian/backuppc/var/lib/backuppc/conf/
1215 + mkdir debian/backuppc/var/lib/backuppc/pc/localhost/
1216 + (cd debian/backuppc/usr/share/backuppc/cgi-bin; ln -s ../image)
1217 +# Build architecture-independent files here.
1218 +binary-indep: build install
1219 +# We have nothing to do by default.
1221 +# Build architecture-dependent files here.
1222 +binary-arch: build install
1225 +# dh_installdebconf
1227 + dh_installexamples debian/examples/*
1231 + dh_installman backuppc.8
1234 + dh_installchangelogs ChangeLog
1242 + dh_perl $(CURDIR)/debian/backuppc/usr/share/backuppc/lib/
1248 +binary: binary-indep binary-arch
1249 +.PHONY: build clean binary-indep binary-arch binary install configure
1250 diff -urN BackupPC-2.0.2.org/lib/BackupPC/Lib.pm BackupPC-2.0.2/lib/BackupPC/Lib.pm
1251 --- BackupPC-2.0.2.org/lib/BackupPC/Lib.pm 2003-10-17 00:49:12.000000000 +0200
1252 +++ BackupPC-2.0.2/lib/BackupPC/Lib.pm 2003-10-17 00:49:21.000000000 +0200
1254 my($ret, $mesg, $config, @configs);
1257 - push(@configs, "$bpc->{TopDir}/conf/config.pl");
1258 - push(@configs, "$bpc->{TopDir}/conf/$host.pl")
1259 - if ( $host ne "config" && -f "$bpc->{TopDir}/conf/$host.pl" );
1260 + push(@configs, "/etc/backuppc/config.pl");
1261 + push(@configs, "/etc/backuppc/$host.pl")
1262 + if ( $host ne "config" && -f "/etc/backuppc/$host.pl" );
1263 push(@configs, "$bpc->{TopDir}/pc/$host/config.pl")
1264 if ( defined($host) && -f "$bpc->{TopDir}/pc/$host/config.pl" );
1265 foreach $config ( @configs ) {
1270 - return (stat("$bpc->{TopDir}/conf/config.pl"))[9];
1271 + return (stat("/etc/backuppc/config.pl"))[9];
1276 my(%hosts, @hdr, @fld);
1279 - if ( !open(HOST_INFO, "$bpc->{TopDir}/conf/hosts") ) {
1280 + if ( !open(HOST_INFO, "/etc/backuppc/hosts") ) {
1281 print(STDERR $bpc->timeStamp,
1282 - "Can't open $bpc->{TopDir}/conf/hosts\n");
1283 + "Can't open /etc/backuppc/hosts\n");
1291 - return (stat("$bpc->{TopDir}/conf/hosts"))[9];
1292 + return (stat("/etc/backuppc/hosts"))[9];