mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-07 00:42:07 +01:00
community/racktables: needs mbstring PHP module
Pre-create secret file
This commit is contained in:
parent
b3e0518905
commit
fec8fe13ff
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user