aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-02 08:04:23 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-02 08:04:23 +0000
commit9a0c738a493841c30e537851f238c22b0826a2d6 (patch)
tree5736dfae824e970c1129ee3343b695307581c080 /testing
parentcf99941b6e947de9060080277c1041d1e1081f2a (diff)
downloadaports-9a0c738a493841c30e537851f238c22b0826a2d6.tar.bz2
aports-9a0c738a493841c30e537851f238c22b0826a2d6.tar.xz
testing/backuppc:
depedencies fixes, backuppc group created, dirs ownership fix, default config paths fixed
Diffstat (limited to 'testing')
-rw-r--r--testing/backuppc/APKBUILD18
-rw-r--r--testing/backuppc/backuppc.post-install3
-rw-r--r--testing/backuppc/backuppc.pre-install3
3 files changed, 15 insertions, 9 deletions
diff --git a/testing/backuppc/APKBUILD b/testing/backuppc/APKBUILD
index c1298851dd..61a1d01b0f 100644
--- a/testing/backuppc/APKBUILD
+++ b/testing/backuppc/APKBUILD
@@ -8,7 +8,8 @@ pkgrel=1
pkgdesc="High-performance, enterprise-grade backup system"
url="http://backuppc.sourceforge.net/"
license="GPL"
-depends="perl busybox rsync"
+depends="perl busybox rsync perl-archive-zip perl-io-compress
+sperl-libwww perl-file-rsync"
makedepends=""
install="$pkgname.pre-install"
subpackages=""
@@ -41,20 +42,21 @@ build() {
--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"/var/lib/backup/data/BackupPC \
+ --dest-dir="$pkgdir" \
+ --config-dir /etc/BackupPC \
+ --cgi-dir /var/www/cgi-bin \
+ --data-dir /var/lib/backup/data/BackupPC \
--hostname backuppc \
- --html-dir "$pkgdir"/var/www/htdocs/BackupPC \
+ --html-dir /var/www/htdocs/BackupPC \
--html-dir-url /BackupPC \
- --install-dir "$pkgdir"/usr/lib/BackupPC \
- --log-dir "$pkgdir"/var/log/BackupPC \
+ --install-dir /usr/lib/BackupPC \
+ --log-dir /var/log/BackupPC \
--uid-ignore \
--no-set-perms || return 1
}
package() {
- cd "$srcdir/$_realname-$_realver"
+ exit 0
# make DESTDIR="$pkgdir" install
}
diff --git a/testing/backuppc/backuppc.post-install b/testing/backuppc/backuppc.post-install
new file mode 100644
index 0000000000..b0877e22b4
--- /dev/null
+++ b/testing/backuppc/backuppc.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+chown -R backuppc.backuppc /etc/BackupPC &>/dev/null
+chown -R backuppc.backuppc /var/lib/backup/data/BackupPC &>/dev/null
diff --git a/testing/backuppc/backuppc.pre-install b/testing/backuppc/backuppc.pre-install
index 00a629f4da..8309860214 100644
--- a/testing/backuppc/backuppc.pre-install
+++ b/testing/backuppc/backuppc.pre-install
@@ -1,3 +1,4 @@
#!/bin/sh
-adduser -h /var/lib/backuppc -s /bin/false -S -D -H backuppc &>/dev/null
+addgroup -S backuppc &>/dev/null
+adduser -h /var/lib/backuppc -s /bin/sh -S -D -H -G backuppc backuppc &>/dev/null
exit 0