mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/backuppc: various fixes for #655
This commit is contained in:
parent
3cc0bf2f58
commit
a9c9ec740b
@ -4,18 +4,18 @@ pkgname="backuppc"
|
||||
_realname="BackupPC"
|
||||
pkgver="3.2.0"
|
||||
_realver="3.2.0"
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="High-performance, enterprise-grade backup system"
|
||||
url="http://backuppc.sourceforge.net/"
|
||||
arch="all"
|
||||
arch="noarch"
|
||||
license="GPL"
|
||||
depends="perl busybox rsync perl-archive-zip perl-io-compress
|
||||
perl-libwww perl-file-rsync"
|
||||
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"
|
||||
configure.pl.patch"
|
||||
|
||||
_builddir="$srcdir/$_realname-$_realver"
|
||||
|
||||
@ -48,7 +48,7 @@ build() {
|
||||
--dest-dir="$pkgdir" \
|
||||
--config-dir /etc/BackupPC \
|
||||
--cgi-dir /var/www/cgi-bin \
|
||||
--data-dir /var/lib/BackupPC/data/BackupPC \
|
||||
--data-dir /var/lib/BackupPC \
|
||||
--hostname backuppc \
|
||||
--html-dir /var/www/htdocs/BackupPC \
|
||||
--html-dir-url /BackupPC \
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
for dir in /etc /var/log /var/lib
|
||||
do
|
||||
chown -R backuppc.backuppc ${dir}/BackupPC &>/dev/null
|
||||
chown -R backuppc.backuppc ${dir}/BackupPC &>/dev/null
|
||||
done
|
||||
|
||||
chmod 774 /usr/lib/BackupPC/bin/* &>/dev/null
|
||||
ln -s /var/www/htdocs/BackupPC/index.cgi /var/www/cgi-bin/BackupPC_Admin &>/dev/null
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
addgroup -S backuppc &>/dev/null
|
||||
adduser -h /var/lib/backuppc -s /bin/sh -S -D -H -G backuppc -g "BackuPC user" backuppc &>/dev/null
|
||||
adduser -h /var/lib/BackupPC -s /bin/sh -S -D -H -G backuppc -g "BackupPC user" backuppc &>/dev/null
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user