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:28:40 +0000
commit1677b4591d331919e7292a47819a838c57688e08 (patch)
treef2fc0f27312b5dc6c2a6e1f5ef4444a278cbae8a
parent18147b7048b860adc7d58b6c6c3831d2a662533c (diff)
downloadaports-1677b4591d331919e7292a47819a838c57688e08.tar.gz
aports-1677b4591d331919e7292a47819a838c57688e08.tar.bz2
aports-1677b4591d331919e7292a47819a838c57688e08.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