blob: 0d05215c68dd49d327708f4d3cb4d2aea42e722f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=racktables
_realname=RackTables
pkgver=0.21.3
pkgrel=0
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"
subpackages="$pkgname-doc"
pkggroups="www-data"
source="https://github.com/RackTables/racktables/archive/RackTables-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$_realname-$pkgver
package() {
export prefix="/usr/share/webapps"
export datadir="$prefix"
export docdir="/usr/share/doc/RackTables"
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
}
sha512sums="13a0ad1d35fdbd6bb31a42db7a1dc1053f2dc1447e7a6220565e5aeb0066bc83e2591acd7993998e563d88bb24238a2c08f10e3ad3f1d70273f0fa08e5c5e5e6 RackTables-0.21.3.tar.gz"
|