diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-04-20 09:18:23 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-04-20 09:18:48 +0000 |
commit | fec8fe13ffbf416ea422ee4ba487fff4a85aecd8 (patch) | |
tree | d1d4411295f45bb8426eac0292e6c0164f024c87 /community/racktables | |
parent | b3e051890537d93a334f065169992715950479cc (diff) | |
download | aports-fec8fe13ffbf416ea422ee4ba487fff4a85aecd8.tar.bz2 aports-fec8fe13ffbf416ea422ee4ba487fff4a85aecd8.tar.xz |
community/racktables: needs mbstring PHP module
Pre-create secret file
Diffstat (limited to 'community/racktables')
-rw-r--r-- | community/racktables/APKBUILD | 8 |
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 |