aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-03 10:55:01 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-03 10:55:01 +0000
commit85d7d78870c6066d06dfde4605fd0190e6cdae74 (patch)
tree49f751ec908c31cae3809bbf584efb1ced928efa /testing
parent608fff75560b806c610ee25acb4c62682b3286b4 (diff)
downloadaports-85d7d78870c6066d06dfde4605fd0190e6cdae74.tar.bz2
aports-85d7d78870c6066d06dfde4605fd0190e6cdae74.tar.xz
testing/backuppc: configure script added to package, dir naming and perms fix
Diffstat (limited to 'testing')
-rw-r--r--testing/backuppc/APKBUILD14
-rw-r--r--testing/backuppc/backuppc.post-install8
2 files changed, 14 insertions, 8 deletions
diff --git a/testing/backuppc/APKBUILD b/testing/backuppc/APKBUILD
index 443962658a..355be87929 100644
--- a/testing/backuppc/APKBUILD
+++ b/testing/backuppc/APKBUILD
@@ -4,7 +4,7 @@ pkgname="backuppc"
_realname="BackupPC"
pkgver="3.2.0b1"
_realver="3.2.0beta1"
-pkgrel=2
+pkgrel=3
pkgdesc="High-performance, enterprise-grade backup system"
url="http://backuppc.sourceforge.net/"
license="GPL"
@@ -16,15 +16,17 @@ subpackages=""
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-beta/$_realver/$_realname-$_realver.tar.gz
configure.pl.patch"
+_builddir="$srcdir/$_realname-$_realver"
+
prepare () {
- cd "$srcdir/$_realname-$_realver"
+ cd "$_builddir"
mkdir -p "$pkgdir"/etc/BackupPC
mkdir -p "$pkgdir"/var/www/cgi-bin
patch -p2 < ../../configure.pl.patch
}
build() {
- cd "$srcdir/$_realname-$_realver"
+ cd "$_builddir"
perl configure.pl \
--batch \
--backuppc-user=backuppc \
@@ -45,7 +47,7 @@ build() {
--dest-dir="$pkgdir" \
--config-dir /etc/BackupPC \
--cgi-dir /var/www/cgi-bin \
- --data-dir /var/lib/backup/data/BackupPC \
+ --data-dir /var/lib/BackupPC/data/BackupPC \
--hostname backuppc \
--html-dir /var/www/htdocs/BackupPC \
--html-dir-url /BackupPC \
@@ -56,8 +58,8 @@ build() {
}
package() {
- exit 0
-# make DESTDIR="$pkgdir" install
+ cd $_builddir
+ install -m755 configure.pl $pkgdir/usr/lib/BackupPC/bin/configure.pl
}
md5sums="34c85b43136954c81d543fa0a7b0b121 BackupPC-3.2.0beta1.tar.gz
diff --git a/testing/backuppc/backuppc.post-install b/testing/backuppc/backuppc.post-install
index b0877e22b4..0ba76f20f4 100644
--- a/testing/backuppc/backuppc.post-install
+++ b/testing/backuppc/backuppc.post-install
@@ -1,3 +1,7 @@
#!/bin/sh
-chown -R backuppc.backuppc /etc/BackupPC &>/dev/null
-chown -R backuppc.backuppc /var/lib/backup/data/BackupPC &>/dev/null
+for dir in /etc /var/log /var/lib
+do
+chown -R backuppc.backuppc ${dir}/BackupPC &>/dev/null
+done
+
+chmod 774 /usr/lib/BackupPC/bin/* &>/dev/null