summaryrefslogtreecommitdiffstats
path: root/main/backuppc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/backuppc/APKBUILD')
-rw-r--r--main/backuppc/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/main/backuppc/APKBUILD b/main/backuppc/APKBUILD
new file mode 100644
index 000000000..694c0a2f2
--- /dev/null
+++ b/main/backuppc/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@gmail.com>
+pkgname="backuppc"
+_realname="BackupPC"
+pkgver="3.2.0"
+_realver="3.2.0"
+pkgrel=3
+pkgdesc="High-performance, enterprise-grade backup system"
+url="http://backuppc.sourceforge.net/"
+arch="noarch"
+license="GPL"
+depends="perl busybox rsync perl-archive-zip perl-io-compress
+ perl-libwww perl-file-rsync"
+makedepends=""
+install="$pkgname.pre-install $pkgname.post-install"
+subpackages=""
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$_realver/$_realname-$_realver.tar.gz
+ configure.pl.patch"
+
+_builddir="$srcdir/$_realname-$_realver"
+
+prepare () {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/etc/BackupPC
+ mkdir -p "$pkgdir"/var/www/cgi-bin
+ patch -p2 < ../../configure.pl.patch
+}
+
+build() {
+ cd "$_builddir"
+ 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 \
+ --dest-dir="$pkgdir" \
+ --config-dir /etc/BackupPC \
+ --cgi-dir /var/www/cgi-bin \
+ --data-dir /var/lib/BackupPC \
+ --hostname backuppc \
+ --html-dir /var/www/htdocs/BackupPC \
+ --html-dir-url /BackupPC \
+ --install-dir /usr/lib/BackupPC \
+ --log-dir /var/log/BackupPC \
+ --uid-ignore \
+ --no-set-perms || return 1
+}
+
+package() {
+ cd $_builddir
+ install -m755 configure.pl $pkgdir/usr/lib/BackupPC/bin/configure.pl
+}
+
+md5sums="4b77610d8d1130daf0892fc7134be985 BackupPC-3.2.0.tar.gz
+f57ad7fdcce804f20f2fe82bee91e813 configure.pl.patch"