aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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