33 |
# |
# |
34 |
#======================================================================== |
#======================================================================== |
35 |
# |
# |
36 |
# Version 2.1.0, released 20 Jun 2004. |
# Version 2.1.2, released 5 Sep 2005. |
37 |
# |
# |
38 |
# See http://backuppc.sourceforge.net. |
# See http://backuppc.sourceforge.net. |
39 |
# |
# |
58 |
BackupPC distribution. This probably means you did not cd to the |
BackupPC distribution. This probably means you did not cd to the |
59 |
unpacked BackupPC distribution before running configure.pl, eg: |
unpacked BackupPC distribution before running configure.pl, eg: |
60 |
|
|
61 |
cd BackupPC-2.1.0 |
cd BackupPC-2.1.2 |
62 |
./configure.pl |
./configure.pl |
63 |
|
|
64 |
Please try again. |
Please try again. |
461 |
# Create CGI image directory |
# Create CGI image directory |
462 |
# |
# |
463 |
foreach my $dir ( ($Conf{CgiImageDir}) ) { |
foreach my $dir ( ($Conf{CgiImageDir}) ) { |
464 |
next if ( $dir eq "" || -d $dir ); |
next if ( $dir eq "" || -d "$DestDir$dir" ); |
465 |
mkpath("$DestDir$dir", 0, 0775); |
mkpath("$DestDir$dir", 0, 0775); |
466 |
if ( !-d "$DestDir$dir" || !chown($Uid, $Gid, "$DestDir$dir") ) { |
if ( !-d "$DestDir$dir" || !chown($Uid, $Gid, "$DestDir$dir") ) { |
467 |
die("Failed to create or chown $DestDir$dir"); |
die("Failed to create or chown $DestDir$dir"); |
488 |
BackupPC_sendEmail BackupPC_tarCreate BackupPC_trashClean |
BackupPC_sendEmail BackupPC_tarCreate BackupPC_trashClean |
489 |
BackupPC_tarExtract BackupPC_compressPool BackupPC_zcat |
BackupPC_tarExtract BackupPC_compressPool BackupPC_zcat |
490 |
BackupPC_archive BackupPC_archiveHost |
BackupPC_archive BackupPC_archiveHost |
491 |
BackupPC_restore BackupPC_serverMesg BackupPC_zipCreate ) ) { |
BackupPC_updatedb BackupPC_xls_report BackupPC_tarIncCreate BackupPC_incPartsUpdate BackupPC_burnArchiveCLI |
492 |
|
BackupPC_restore BackupPC_serverMesg BackupPC_zipCreate BackupPC_checkArchiveConsistency BackupPC_removeBurnedArchives) ) { |
493 |
InstallFile("bin/$prog", "$DestDir$Conf{InstallDir}/bin/$prog", 0555); |
InstallFile("bin/$prog", "$DestDir$Conf{InstallDir}/bin/$prog", 0555); |
494 |
} |
} |
495 |
|
|
533 |
BackupPC/CGI/StopServer.pm |
BackupPC/CGI/StopServer.pm |
534 |
BackupPC/CGI/Summary.pm |
BackupPC/CGI/Summary.pm |
535 |
BackupPC/CGI/View.pm |
BackupPC/CGI/View.pm |
536 |
|
BackupPC/CGI/BurnMedia.pm |
537 |
|
BackupPC/CGI/SearchArchives.pm |
538 |
|
BackupPC/SearchLib.pm |
539 |
) ) { |
) ) { |
540 |
InstallFile("lib/$lib", "$DestDir$Conf{InstallDir}/lib/$lib", 0444); |
InstallFile("lib/$lib", "$DestDir$Conf{InstallDir}/lib/$lib", 0444); |
541 |
} |
} |
550 |
# |
# |
551 |
# Install new CSS file, making a backup copy if necessary |
# Install new CSS file, making a backup copy if necessary |
552 |
# |
# |
553 |
my $cssBackup = "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css.pre-2.1.0"; |
my $cssBackup = "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css.pre-2.1.2"; |
554 |
if ( -f "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css" && !-f $cssBackup ) { |
if ( -f "$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css" && !-f $cssBackup ) { |
555 |
rename("$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", $cssBackup); |
rename("$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", $cssBackup); |
556 |
} |
} |
557 |
InstallFile("conf/BackupPC_stnd.css", |
InstallFile("conf/BackupPC_stnd.css", |
558 |
"$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", 0444, 0); |
"$DestDir$Conf{CgiImageDir}/BackupPC_stnd.css", 0444, 0); |
559 |
|
InstallFile("conf/BackupPC_lite.css", |
560 |
|
"$DestDir$Conf{CgiImageDir}/BackupPC_lite.css", 0444, 0); |
561 |
|
InstallFile("conf/archive.css", |
562 |
|
"$DestDir$Conf{CgiImageDir}/archive.css", 0444, 0); |
563 |
} |
} |
564 |
|
|
565 |
printf("Making init.d scripts\n"); |
printf("Making init.d scripts\n"); |
697 |
delete($Conf{SmbClientTimeout}); |
delete($Conf{SmbClientTimeout}); |
698 |
} |
} |
699 |
|
|
700 |
my $confCopy = "$dest.pre-2.1.0"; |
my $confCopy = "$dest.pre-2.1.2"; |
701 |
if ( -f $dest && !-f $confCopy ) { |
if ( -f $dest && !-f $confCopy ) { |
702 |
# |
# |
703 |
# Make copy of config file, preserving ownership and modes |
# Make copy of config file, preserving ownership and modes |