blob: 1e26867de189b460dfec6e8d1596c86d33c3bcbd (
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.5
pkgrel=2
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$racktables_confdir='/etc/racktables';%' \
"$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php
}
md5sums="635d1e86dc175340c5cbda95aa55167d RackTables-0.20.5.tar.gz"
sha256sums="4d90c08ab8451eccaa3c925dd935a449c92874c996519b5b5e0775ad92627d77 RackTables-0.20.5.tar.gz"
sha512sums="6da6df0fd48149dc8d5a1a9892bc9c301ff7604b185e672ed3a52ed54c6ce2da6c968fad46bacfe0763eae11f58f5978521f7638de38403a00bd523202c336ce RackTables-0.20.5.tar.gz"
|