summaryrefslogtreecommitdiffstats
path: root/main/racktables/APKBUILD
blob: 677e0de11a1464e8f6663b7762c884d7077d251e (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=racktables
_realname=RackTables
pkgver=0.20.6
pkgrel=1
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
license="GPL"
depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json"
depends_dev=
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz"

_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
	sed -i "s%<?php%<?php\n\n\$racktables_confdir = '/etc/racktables';%" \
	 "$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php
}

md5sums="e3a03f195a30c9e870624a9ec67692bb  RackTables-0.20.6.tar.gz"
sha256sums="bf78589832f6ffefb663741d89588bf9851e1486b11036c93cd01ab345e95087  RackTables-0.20.6.tar.gz"
sha512sums="3e0b6ae37d7a146313509181e87e01d02d05882cfff50f3b7410db25589681545aecd622a6abd49f8424fb8b0c4009b77f07293911e192f87c7b05e89d974180  RackTables-0.20.6.tar.gz"