aboutsummaryrefslogtreecommitdiffstats
path: root/main/racktables/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/racktables/APKBUILD')
-rw-r--r--main/racktables/APKBUILD7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/racktables/APKBUILD b/main/racktables/APKBUILD
index 9d89810ce3..6a95c2df99 100644
--- a/main/racktables/APKBUILD
+++ b/main/racktables/APKBUILD
@@ -3,7 +3,7 @@
pkgname=racktables
_realname=RackTables
pkgver=0.20.7
-pkgrel=0
+pkgrel=1
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
@@ -11,9 +11,10 @@ license="GPL-2"
depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json"
depends_dev=
makedepends="$depends_dev"
-install="$pkgname.post-install"
+install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz"
+pkggroups="www-data"
_builddir="$srcdir"/$_realname-$pkgver
@@ -37,6 +38,8 @@ package() {
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install-docs
mkdir -p "$pkgdir"/etc/racktables
+ chown :www-data "$pkgdir"/etc/racktables
+ chmod 770 "$pkgdir"/etc/racktables
sed -i "s%<?php%<?php\n\n\$racktables_confdir = '/etc/racktables';%" \
"$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php
}