]> git.pld-linux.org Git - packages/BackupPC.git/blob - backuppc-debian.patch
- more
[packages/BackupPC.git] / backuppc-debian.patch
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 +\ 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
792 +@@ -0,0 +1 @@
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
797 +@@ -0,0 +1,45 @@
798 ++#
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'
804 ++#
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
808 ++#
809 ++#    Developers do not need to manually edit POT or PO files.
810 ++#
811 ++#, fuzzy
812 ++msgid ""
813 ++msgstr ""
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"
823 ++
824 ++#. Description
825 ++#: ../backuppc.templates:3
826 ++msgid "Web administration default user created"
827 ++msgstr ""
828 ++
829 ++#. Description
830 ++#: ../backuppc.templates:3
831 ++msgid ""
832 ++"BackupPC can be managed through its web interface:\n"
833 ++" http://${site}/backuppc/"
834 ++msgstr ""
835 ++
836 ++#. Description
837 ++#: ../backuppc.templates:3
838 ++msgid ""
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'."
842 ++msgstr ""
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
846 @@ -0,0 +1,50 @@
847 +#
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'
853 +#
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
857 +#
858 +#    Developers do not need to manually edit POT or PO files.
859 +#
860 +msgid ""
861 +msgstr ""
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"
871 +
872 +#. Description
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"
876 +
877 +#. Description
878 +#: ../backuppc.templates:3
879 +msgid ""
880 +"BackupPC can be managed through its web interface:\n"
881 +" http://${site}/backuppc/"
882 +msgstr ""
883 +"BackupPC peut Ãªtre géré avec une interface Web :\n"
884 +" http://${site}/backuppc/"
885 +
886 +#. Description
887 +#: ../backuppc.templates:3
888 +msgid ""
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'."
892 +msgstr ""
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 "
896 +"backuppc »."
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
900 @@ -0,0 +1 @@
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
905 @@ -0,0 +1,45 @@
906 +#
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'
912 +#
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
916 +#
917 +#    Developers do not need to manually edit POT or PO files.
918 +#
919 +#, fuzzy
920 +msgid ""
921 +msgstr ""
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"
931 +
932 +#. Description
933 +#: ../backuppc.templates:3
934 +msgid "Web administration default user created"
935 +msgstr ""
936 +
937 +#. Description
938 +#: ../backuppc.templates:3
939 +msgid ""
940 +"BackupPC can be managed through its web interface:\n"
941 +" http://${site}/backuppc/"
942 +msgstr ""
943 +
944 +#. Description
945 +#: ../backuppc.templates:3
946 +msgid ""
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'."
950 +msgstr ""
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
954 @@ -0,0 +1,101 @@
955 +#!/bin/sh
956 +# postinst script for backuppc
957 +#
958 +# see: dh_installdeb(1)
959 +
960 +set -e
961 +
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>
966 +#          <new-version>
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
972 +#
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'.
979 +
980 +. /usr/share/debconf/confmodule
981 +db_version 2.0
982 +
983 +case "$1" in
984 +    configure)
985 +
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"
992 +                               
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"
996 +                               
997 +                               #for index in index.pl; do
998 +                               #       . /usr/share/wwwconfig-common/apache-index_all.sh
999 +                               #       test "$status" = "added" && restart="$server $restart"
1000 +                               #done
1001 +                       done
1002 +
1003 +                       # creating backuppc group if he isn't already there
1004 +                       if ! getent group backuppc >/dev/null; then
1005 +                           addgroup backuppc >/dev/null
1006 +                       fi
1007 +
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
1011 +                       fi
1012 +                       
1013 +                       #usermod -c "BackupPC Daemon" backuppc
1014 +                       
1015 +                       chown -R backuppc.backuppc /var/lib/backuppc
1016 +                       chmod -R 750 /var/lib/backuppc
1017 +
1018 +
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
1021 +
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
1026 +                       fi
1027 +                       
1028 +                       servers="exim apache-ssl apache"
1029 +                       . /usr/share/wwwconfig-common/restart.sh
1030 +
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
1034 +    ;;
1035 +
1036 +    abort-upgrade|abort-remove|abort-deconfigure)
1037 +
1038 +    ;;
1039 +
1040 +    *)
1041 +        echo "postinst called with unknown argument \`$1'" >&2
1042 +        exit 1
1043 +    ;;
1044 +esac
1045 +
1046 +db_stop
1047 +
1048 +# dh_installdeb will replace this with shell code automatically
1049 +# generated by other debhelper scripts.
1050 +
1051 +#DEBHELPER#
1052 +
1053 +exit 0
1054 +
1055 +
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
1059 @@ -0,0 +1,52 @@
1060 +#!/bin/sh
1061 +# postrm script for backuppc
1062 +#
1063 +# see: dh_installdeb(1)
1064 +
1065 +set -e
1066 +
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
1078 +
1079 +
1080 +case "$1" in
1081 +    purge)
1082 +
1083 +               webservers="apache"
1084 +               includefile="/etc/backuppc/apache.conf"
1085 +
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"
1092 +                       fi
1093 +               done
1094 +
1095 +                servers="exim apache-ssl apache"
1096 +               . /usr/share/wwwconfig-common/restart.sh
1097 +        ;;
1098 +    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
1099 +       ;;
1100 +    *)
1101 +        echo "postrm called with unknown argument \`$1'" >&2
1102 +        exit 1
1103 +
1104 +esac
1105 +
1106 +# dh_installdeb will replace this with shell code automatically
1107 +# generated by other debhelper scripts.
1108 +
1109 +#DEBHELPER#
1110 +
1111 +exit 0
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
1115 @@ -0,0 +1,29 @@
1116 +BackupPC for Debian
1117 +-------------------
1118 +
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.
1123 +
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.
1129 +
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).
1134 +
1135 +
1136 +Modifications:
1137 +
1138 +- Modified Perl scripts for having main config files (hosts and config.pl)
1139 +in /etc/backuppc.
1140 +- Data directory is /var/lib/backuppc/
1141 +
1142 +
1143 +
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
1148 @@ -0,0 +1,101 @@
1149 +#!/usr/bin/make -f
1150 +# Sample debian/rules that uses debhelper.
1151 +# GNU copyright 1997 to 1999 by Joey Hess.
1152 +
1153 +# Uncomment this to turn on verbose mode.
1154 +#export DH_VERBOSE=1
1155 +
1156 +# This is the debhelper compatibility version to use.
1157 +export DH_COMPAT=3
1158 +
1159 +
1160 +
1161 +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
1162 +       CFLAGS += -g
1163 +endif
1164 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
1165 +       INSTALL_PROGRAM += -s
1166 +endif
1167 +
1168 +configure: configure-stamp
1169 +configure-stamp:
1170 +       dh_testdir
1171 +       # Add here commands to configure the package.
1172 +
1173 +       touch configure-stamp
1174 +
1175 +
1176 +build: build-stamp
1177 +
1178 +build-stamp: configure-stamp 
1179 +       dh_testdir
1180 +
1181 +       # Add here commands to compile the package.
1182 +       #$(MAKE)
1183 +       #/usr/bin/docbook-to-man debian/backuppc.sgml > backuppc.1
1184 +
1185 +       touch build-stamp
1186 +
1187 +clean:
1188 +       dh_testdir
1189 +       dh_testroot
1190 +       rm -f build-stamp configure-stamp
1191 +
1192 +       # Add here commands to clean up after the build process.
1193 +       rm -f init.d/*-backuppc*
1194 +       rm -f backuppc.8*
1195 +
1196 +       dh_clean
1197 +
1198 +install: build
1199 +       dh_testdir
1200 +       dh_testroot
1201 +       dh_clean -k
1202 +       dh_installdirs
1203 +
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.
1220 +
1221 +# Build architecture-dependent files here.
1222 +binary-arch: build install
1223 +       dh_testdir
1224 +       dh_testroot
1225 +#      dh_installdebconf       
1226 +       dh_installdocs 
1227 +       dh_installexamples debian/examples/*
1228 +       dh_installmenu
1229 +       dh_installinit
1230 +       dh_installcron
1231 +       dh_installman backuppc.8
1232 +       dh_installinfo
1233 +#      dh_undocumented
1234 +       dh_installchangelogs ChangeLog
1235 +       dh_link
1236 +       dh_strip
1237 +       dh_compress
1238 +       dh_fixperms
1239 +       dh_installdebconf
1240 +#      dh_makeshlibs
1241 +       dh_installdeb
1242 +       dh_perl $(CURDIR)/debian/backuppc/usr/share/backuppc/lib/
1243 +       dh_shlibdeps
1244 +       dh_gencontrol
1245 +       dh_md5sums
1246 +       dh_builddeb
1247 +
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
1253 @@ -274,9 +274,9 @@
1254      my($ret, $mesg, $config, @configs);
1255  
1256      $bpc->{Conf} = ();
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 ) {
1266 @@ -318,7 +318,7 @@
1267  sub ConfigMTime
1268  {
1269      my($bpc) = @_;
1270 -    return (stat("$bpc->{TopDir}/conf/config.pl"))[9];
1271 +    return (stat("/etc/backuppc/config.pl"))[9];
1272  }
1273  
1274  #
1275 @@ -334,9 +334,9 @@
1276      my(%hosts, @hdr, @fld);
1277      local(*HOST_INFO);
1278  
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");
1284          return {};
1285      }
1286      binmode(HOST_INFO);
1287 @@ -380,7 +380,7 @@
1288  sub HostsMTime
1289  {
1290      my($bpc) = @_;
1291 -    return (stat("$bpc->{TopDir}/conf/hosts"))[9];
1292 +    return (stat("/etc/backuppc/hosts"))[9];
1293  }
1294  
1295  #
This page took 0.266357 seconds and 3 git commands to generate.