aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2020-04-20 09:18:23 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2020-04-20 09:18:48 +0000
commitfec8fe13ffbf416ea422ee4ba487fff4a85aecd8 (patch)
treed1d4411295f45bb8426eac0292e6c0164f024c87
parentb3e051890537d93a334f065169992715950479cc (diff)
downloadaports-fec8fe13ffbf416ea422ee4ba487fff4a85aecd8.tar.gz
aports-fec8fe13ffbf416ea422ee4ba487fff4a85aecd8.tar.bz2
aports-fec8fe13ffbf416ea422ee4ba487fff4a85aecd8.tar.xz
community/racktables: needs mbstring PHP module
Pre-create secret file
-rw-r--r--community/racktables/APKBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/community/racktables/APKBUILD b/community/racktables/APKBUILD
index 71339dee6e..213e382619 100644
--- a/community/racktables/APKBUILD
+++ b/community/racktables/APKBUILD
@@ -3,15 +3,14 @@
pkgname=racktables
_realname=RackTables
pkgver=0.21.4
-pkgrel=0
+pkgrel=1
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
license="GPL-2.0"
_php=php7
depends="$_php $_php-bcmath $_php-gd $_php-mysqli $_php-pdo_mysql
- $_php-json"
-makedepends="$depends_dev"
+ $_php-json $_php-mbstring"
subpackages="$pkgname-doc"
pkggroups="www-data"
source="https://github.com/RackTables/racktables/archive/RackTables-$pkgver.tar.gz"
@@ -25,7 +24,8 @@ package() {
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install-docs
mkdir -p "$pkgdir"/etc/racktables
- chown :www-data "$pkgdir"/etc/racktables
+ touch "$pkgdir"/etc/racktables/secret.php
+ chown -R :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