From 39d012f9e2e675679bcadd399d501c6bc96de082 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Mon, 22 Feb 2010 12:09:09 +0000 Subject: testing/backuppc: new aport --- testing/backuppc/APKBUILD | 62 ++++++++++++++++++++++++++++++++ testing/backuppc/backuppc.pre-install | 2 ++ testing/backuppc/configure.pl.patch | 66 +++++++++++++++++++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 testing/backuppc/APKBUILD create mode 100755 testing/backuppc/backuppc.pre-install create mode 100644 testing/backuppc/configure.pl.patch (limited to 'testing/backuppc') diff --git a/testing/backuppc/APKBUILD b/testing/backuppc/APKBUILD new file mode 100644 index 00000000..5b4cb98e --- /dev/null +++ b/testing/backuppc/APKBUILD @@ -0,0 +1,62 @@ +# Contributor: +# Maintainer: Leonardo Arena +pkgname="backuppc" +_realname="BackupPC" +pkgver="3.2.0b1" +_realver="3.2.0beta1" +pkgrel=0 +pkgdesc="High-performance, enterprise-grade backup system" +url="http://backuppc.sourceforge.net/" +license="GPL" +depends="perl busybox rsync" +makedepends="" +install="$pkgname.pre-install" +subpackages="" +source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-beta/$_realver/$_realname-$_realver.tar.gz +configure.pl.patch" + +prepare () { + cd "$srcdir/$_realname-$_realver" + mkdir -p "$pkgdir"/etc/BackupPC + mkdir -p "$pkgdir"/var/www/cgi-bin + patch -p2 < ../../configure.pl.patch +} + +build() { + cd "$srcdir/$_realname-$_realver" + perl configure.pl \ + --batch \ + --backuppc-user=backuppc \ + --bin-path bzip2=/usr/bin/bzip2 \ + --bin-path cat=/bin/cat \ + --bin-path df=/bin/df \ + --bin-path tar=/bin/tar \ + --bin-path hostname=/bin/hostname \ + --bin-path nmblookup=/usr/bin/nmblookup \ + --bin-path perl=/usr/bin/perl \ + --bin-path ping=/bin/ping \ + --bin-path rsync=/usr/bin/rsync \ + --bin-path sendmail=/usr/bin/sendmail \ + --bin-path smbclient=/usr/bin/smbclient \ + --bin-path split=/usr/bin/split \ + --bin-path ssh=/usr/bin/ssh \ + --compress-level=3 \ + --config-dir "$pkgdir"/etc/BackupPC \ + --cgi-dir "$pkgdir"/var/www/cgi-bin \ + --data-dir "$pkgdir"/data/BackupPC \ + --hostname backuppc \ + --html-dir "$pkgdir"/var/www/htdocs/BackupPC \ + --html-dir-url /BackupPC \ + --install-dir "$pkgdir"/usr/lib/BackupPC \ + --log-dir "$pkgdir"/var/log/BackupPC \ + --uid-ignore \ + --no-set-perms || return 1 +} + +package() { + cd "$srcdir/$_realname-$_realver" +# make DESTDIR="$pkgdir" install +} + +md5sums="34c85b43136954c81d543fa0a7b0b121 BackupPC-3.2.0beta1.tar.gz +f57ad7fdcce804f20f2fe82bee91e813 configure.pl.patch" diff --git a/testing/backuppc/backuppc.pre-install b/testing/backuppc/backuppc.pre-install new file mode 100755 index 00000000..1a1736fa --- /dev/null +++ b/testing/backuppc/backuppc.pre-install @@ -0,0 +1,2 @@ +#!/bin/sh +adduser -h /var/lib/backuppc -s /bin/false -S -D -H &>/dev/null diff --git a/testing/backuppc/configure.pl.patch b/testing/backuppc/configure.pl.patch new file mode 100644 index 00000000..24d5e3bb --- /dev/null +++ b/testing/backuppc/configure.pl.patch @@ -0,0 +1,66 @@ +--- src/BackupPC-3.2.0beta1/configure.pl ++++ configure.pl +@@ -327,25 +327,8 @@ + + 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"} ) { + ($name, $passwd, $Uid, $Gid) = getpwnam($Conf{BackupPCUser}); +- last if ( $name ne "" ); +- print <