aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2013-12-19 08:30:23 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2013-12-19 08:30:23 +0000
commit8bb99971778669cfeec37c66b5edae66855340c8 (patch)
treebaf19d63ea43330c0e6d8cb68f794330ae654369 /main
parent6f7d894652b9e17183edabb49e409dc870042ccc (diff)
parent8cd447e15ca6b751b2b9d9d84307583ba845462f (diff)
downloadaports-8bb99971778669cfeec37c66b5edae66855340c8.tar.bz2
aports-8bb99971778669cfeec37c66b5edae66855340c8.tar.xz
Merge ../aports-larena
Diffstat (limited to 'main')
-rw-r--r--main/racktables/APKBUILD46
-rwxr-xr-xmain/racktables/racktables.post-install9
2 files changed, 55 insertions, 0 deletions
diff --git a/main/racktables/APKBUILD b/main/racktables/APKBUILD
new file mode 100644
index 0000000000..677e0de11a
--- /dev/null
+++ b/main/racktables/APKBUILD
@@ -0,0 +1,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"
diff --git a/main/racktables/racktables.post-install b/main/racktables/racktables.post-install
new file mode 100755
index 0000000000..b01b10d8fe
--- /dev/null
+++ b/main/racktables/racktables.post-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+echo "*"
+echo "* Please give ownership to the web server user, the following directories:"
+echo "*"
+echo "* /etc/racktables"
+echo "*"
+echo -e "* Symlink /usr/share/webapps/RackTables/index.php\n\
+ to your webserver directory"
+echo "*"