summaryrefslogtreecommitdiffstats
path: root/main/backuppc/configure.pl.patch
diff options
context:
space:
mode:
authork0r10n <k0r10n.dev@gmail.com>2014-11-28 20:27:12 +0400
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-12-01 10:07:10 +0000
commit73ca442e57937a9ea747a10b75dc0c18b51c65bb (patch)
tree33d4ca2f3bd763177600c15ba16d4ecbfe7c5cd5 /main/backuppc/configure.pl.patch
parentb50b64fd8379e70fd63b0573f52b4a4a1a27c72e (diff)
downloadaports-73ca442e57937a9ea747a10b75dc0c18b51c65bb.tar.bz2
aports-73ca442e57937a9ea747a10b75dc0c18b51c65bb.tar.xz
main/backuppc: Fix permissions and edited patch
Signed-off-by: Leonardo Arena <rnalrd@alpinelinux.org>
Diffstat (limited to 'main/backuppc/configure.pl.patch')
-rw-r--r--main/backuppc/configure.pl.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/main/backuppc/configure.pl.patch b/main/backuppc/configure.pl.patch
index 24d5e3bb3..67c2892ab 100644
--- a/main/backuppc/configure.pl.patch
+++ b/main/backuppc/configure.pl.patch
@@ -1,6 +1,6 @@
---- src/BackupPC-3.2.0beta1/configure.pl
-+++ configure.pl
-@@ -327,25 +327,8 @@
+--- BackupPC-3.3.0.orig/configure.pl
++++ BackupPC-3.3.0/configure.pl
+@@ -327,25 +327,11 @@
EOF
my($name, $passwd, $Uid, $Gid);
@@ -9,6 +9,9 @@
- $Conf{BackupPCUser} || "backuppc",
- "backuppc-user");
- if ( $opts{"set-perms"} ) {
++ $Conf{BackupPCUser} = prompt("--> BackupPC should run as user",
++ $Conf{BackupPCUser} || "backuppc",
++ "backuppc-user");
($name, $passwd, $Uid, $Gid) = getpwnam($Conf{BackupPCUser});
- last if ( $name ne "" );
- print <<EOF;
@@ -26,7 +29,7 @@
print <<EOF;
Please specify an install directory for BackupPC. This is where the
-@@ -532,12 +515,6 @@
+@@ -532,12 +518,6 @@
) ) {
next if ( -d "$DestDir$Conf{InstallDir}/$dir" );
mkpath("$DestDir$Conf{InstallDir}/$dir", 0, 0755);
@@ -39,7 +42,7 @@
}
#
-@@ -546,11 +523,6 @@
+@@ -546,11 +526,6 @@
foreach my $dir ( ($Conf{CgiImageDir}) ) {
next if ( $dir eq "" || -d "$DestDir$dir" );
mkpath("$DestDir$dir", 0, 0755);
@@ -51,7 +54,7 @@
}
#
-@@ -566,12 +538,6 @@
+@@ -566,12 +541,6 @@
"$Conf{LogDir}",
) ) {
mkpath("$DestDir$dir", 0, 0750) if ( !-d "$DestDir$dir" );