aboutsummaryrefslogtreecommitdiffstats
path: root/community/racktables/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/racktables/APKBUILD')
-rw-r--r--community/racktables/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/racktables/APKBUILD b/community/racktables/APKBUILD
new file mode 100644
index 0000000000..1e806d570c
--- /dev/null
+++ b/community/racktables/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=racktables
+_realname=RackTables
+pkgver=0.20.10
+pkgrel=0
+pkgdesc="Server room asset management"
+url="http://racktables.org"
+arch="noarch"
+license="GPL2"
+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="0b1d04522216f0ecafe83823f9a56391 RackTables-0.20.10.tar.gz"
+sha256sums="b418926bc726cebec0f29b6b7c73eae33e474c0ea05aae05f45afe035478d12b RackTables-0.20.10.tar.gz"
+sha512sums="2e985e4fb8aa2ebca0ed17729c918eeecfde09c3962bf6cefff719fb6e9394aca31e585f81eb4e9d201d40710220edccdce5b99967ac0fd630fb47f7906d261e RackTables-0.20.10.tar.gz"