aboutsummaryrefslogtreecommitdiffstats
path: root/main/racktables/APKBUILD
blob: 11835a0a2b1c1000a1291b4524a5b0a3b257266d (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=racktables
_realname=RackTables
pkgver=0.20.8
pkgrel=0
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
license="GPL-2"
depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json"
depends_dev=
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz"
pkggroups="www-data"

_builddir="$srcdir"/$_realname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
	return 0
}

build() {
	cd "$_builddir"
	#make DESTDIR="$pkgdir"
	return 0
}

package() {
	cd "$_builddir"
	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
}

md5sums="f33783fbef34a28b1af53217e07c4197  RackTables-0.20.8.tar.gz"
sha256sums="7475712ad89b8741bab6155e12a7fc9d479b5ef1afc6697dfe8da5cad148f66b  RackTables-0.20.8.tar.gz"
sha512sums="4b17bd28c4863c646b5ea7a0938829b3cc3af059d33a5809e0b36b1235ee566b84b8236ee04ae8d15a780a1830158e73eba69dec804c9bef914949e04d18a9a7  RackTables-0.20.8.tar.gz"