- new configure.pl to include new utility scripts
[BackupPC.git] / configure.pl
index 3f13914..a96ee4f 100755 (executable)
@@ -33,7 +33,7 @@
 #
 #========================================================================
 #
-# Version 2.1.0, released 20 Jun 2004.
+# Version 2.1.2, released 5 Sep 2005.
 #
 # See http://backuppc.sourceforge.net.
 #
@@ -58,7 +58,7 @@ BackupPC cannot find the package $pkg, which is included in the
 BackupPC distribution.  This probably means you did not cd to the
 unpacked BackupPC distribution before running configure.pl, eg:
 
-    cd BackupPC-2.1.0
+    cd BackupPC-2.1.2
     ./configure.pl
 
 Please try again.
@@ -461,7 +461,7 @@ foreach my $dir ( qw(bin doc
 # Create CGI image directory
 #
 foreach my $dir ( ($Conf{CgiImageDir}) ) {
-    next if ( $dir eq "" || -d $dir );
+    next if ( $dir eq "" || -d "$DestDir$dir" );
     mkpath("$DestDir$dir", 0, 0775);
     if ( !-d "$DestDir$dir" || !chown($Uid, $Gid, "$DestDir$dir") ) {
         die("Failed to create or chown $DestDir$dir");
@@ -489,7 +489,7 @@ foreach my $prog ( qw(BackupPC BackupPC_dump BackupPC_link BackupPC_nightly
         BackupPC_tarExtract BackupPC_compressPool BackupPC_zcat
         BackupPC_archive BackupPC_archiveHost
        BackupPC_updatedb BackupPC_xls_report BackupPC_tarIncCreate BackupPC_incPartsUpdate BackupPC_burnArchiveCLI
-        BackupPC_restore BackupPC_serverMesg BackupPC_zipCreate ) ) {
+        BackupPC_restore BackupPC_serverMesg BackupPC_zipCreate BackupPC_checkArchiveConsistency BackupPC_removeBurnedArchives) ) {
     InstallFile("bin/$prog", "$DestDir$Conf{InstallDir}/bin/$prog", 0555);
 }
 
@@ -550,7 +550,7 @@ if ( $Conf{CgiImageDir} ne "" ) {
     #
     # Install new CSS file, making a backup copy if necessary
     #
-    my $cssBackup = "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css.pre-2.1.0";
+    my $cssBackup = "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css.pre-2.1.2";
     if ( -f "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css" && !-f $cssBackup ) {
        rename("$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", $cssBackup);
     }
@@ -558,6 +558,8 @@ if ( $Conf{CgiImageDir} ne "" ) {
                "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", 0444, 0);
     InstallFile("conf/BackupPC_lite.css",
                "$DestDir$Conf{CgiImageDir}/BackupPC_lite.css", 0444, 0);
+    InstallFile("conf/archive.css",
+               "$DestDir$Conf{CgiImageDir}/archive.css", 0444, 0);
 }
 
 printf("Making init.d scripts\n");
@@ -695,7 +697,7 @@ if ( defined($Conf{SmbClientTimeout}) ) {
     delete($Conf{SmbClientTimeout});
 }
 
-my $confCopy = "$dest.pre-2.1.0";
+my $confCopy = "$dest.pre-2.1.2";
 if ( -f $dest && !-f $confCopy ) {
     #
     # Make copy of config file, preserving ownership and modes