]> gitweb.michael.orlitzky.com - mjo-overlay.git/blob - app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch
Add app-backup/backuppc from ::gentoo.
[mjo-overlay.git] / app-backup / backuppc / files / 3.2.0 / 01-fix-configure.pl.patch
1 --- configure.pl.orig 2010-07-31 20:52:58.000000000 +0300
2 +++ configure.pl 2010-09-03 22:09:46.437788435 +0300
3 @@ -158,7 +158,7 @@
4 # config file to get all the defaults.
5 #
6 my $ConfigPath = "";
7 -my $ConfigFileOK = 1;
8 +my $ConfigFileOK = 0;
9 while ( 1 ) {
10 if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) {
11 $ConfigPath = "/etc/BackupPC/config.pl";
12 @@ -213,7 +213,8 @@
13 $bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log"
14 if ( $Conf{LogDir} eq '' );
15 }
16 - $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
17 + # Disable this as it's not really neccessary for this ebuild
18 + # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
19 my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1);
20 if ( $err eq "" ) {
21 print <<EOF;
22 @@ -726,7 +727,7 @@
23 if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
24 $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
25 } else {
26 - $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
27 + $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'";
28 }
29 }
30