aboutsummaryrefslogtreecommitdiffstats
path: root/community/backuppc/configure.pl.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-12-14 08:50:17 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-12-14 08:51:26 +0000
commit6eb6ef1b6a1e924c0e82564dbc61475a8bc5e8d5 (patch)
treeb045607052dfc3a68b85fc5c1da4d73a7ca402f3 /community/backuppc/configure.pl.patch
parentca93d24a0026cfc1cac5229df60475ce936cf5ba (diff)
downloadaports-6eb6ef1b6a1e924c0e82564dbc61475a8bc5e8d5.tar.bz2
aports-6eb6ef1b6a1e924c0e82564dbc61475a8bc5e8d5.tar.xz
community/backuppc: no longer maintained
Diffstat (limited to 'community/backuppc/configure.pl.patch')
-rw-r--r--community/backuppc/configure.pl.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/community/backuppc/configure.pl.patch b/community/backuppc/configure.pl.patch
new file mode 100644
index 0000000000..67c2892ab4
--- /dev/null
+++ b/community/backuppc/configure.pl.patch
@@ -0,0 +1,69 @@
+--- BackupPC-3.3.0.orig/configure.pl
++++ BackupPC-3.3.0/configure.pl
+@@ -327,25 +327,11 @@
+
+ EOF
+ my($name, $passwd, $Uid, $Gid);
+-while ( 1 ) {
+- $Conf{BackupPCUser} = prompt("--> BackupPC should run as user",
+- $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;
+
+-getpwnam() says that user $Conf{BackupPCUser} doesn't exist. Please
+-check the name and verify that this user is in the passwd file.
+-
+-EOF
+- exit(1) if ( $opts{batch} );
+- } else {
+- last;
+- }
+-}
+-
+ print <<EOF;
+
+ Please specify an install directory for BackupPC. This is where the
+@@ -532,12 +518,6 @@
+ ) ) {
+ next if ( -d "$DestDir$Conf{InstallDir}/$dir" );
+ mkpath("$DestDir$Conf{InstallDir}/$dir", 0, 0755);
+- if ( !-d "$DestDir$Conf{InstallDir}/$dir"
+- || !my_chown($Uid, $Gid, "$DestDir$Conf{InstallDir}/$dir") ) {
+- die("Failed to create or chown $DestDir$Conf{InstallDir}/$dir\n");
+- } else {
+- print("Created $DestDir$Conf{InstallDir}/$dir\n");
+- }
+ }
+
+ #
+@@ -546,11 +526,6 @@
+ foreach my $dir ( ($Conf{CgiImageDir}) ) {
+ next if ( $dir eq "" || -d "$DestDir$dir" );
+ mkpath("$DestDir$dir", 0, 0755);
+- if ( !-d "$DestDir$dir" || !my_chown($Uid, $Gid, "$DestDir$dir") ) {
+- die("Failed to create or chown $DestDir$dir");
+- } else {
+- print("Created $DestDir$dir\n");
+- }
+ }
+
+ #
+@@ -566,12 +541,6 @@
+ "$Conf{LogDir}",
+ ) ) {
+ mkpath("$DestDir$dir", 0, 0750) if ( !-d "$DestDir$dir" );
+- if ( !-d "$DestDir$dir"
+- || !my_chown($Uid, $Gid, "$DestDir$dir") ) {
+- die("Failed to create or chown $DestDir$dir\n");
+- } else {
+- print("Created $DestDir$dir\n");
+- }
+ }
+
+ printf("Installing binaries in $DestDir$Conf{InstallDir}/bin\n");