diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-08-30 14:04:26 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-08-30 14:05:47 +0000 |
commit | 491e3120bde096e30b47e8cb2aa5ab7a403c1639 (patch) | |
tree | 83024a84762f511b49e08e495a8fd35c0b61628b /testing/racktables | |
parent | a74497a7ca22934081da91215be298a55cd10d37 (diff) | |
download | aports-491e3120bde096e30b47e8cb2aa5ab7a403c1639.tar.bz2 aports-491e3120bde096e30b47e8cb2aa5ab7a403c1639.tar.xz |
testing/racktables: new aport
Datacenter and server room asset management
Diffstat (limited to 'testing/racktables')
-rw-r--r-- | testing/racktables/APKBUILD | 52 | ||||
-rw-r--r-- | testing/racktables/index-racktables.php | 4 | ||||
-rwxr-xr-x | testing/racktables/racktables.post-install | 7 |
3 files changed, 63 insertions, 0 deletions
diff --git a/testing/racktables/APKBUILD b/testing/racktables/APKBUILD new file mode 100644 index 0000000000..247354e15d --- /dev/null +++ b/testing/racktables/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=racktables +_realname=RackTables +pkgver=0.20.5 +pkgrel=0 +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 + index-racktables.php + " + + +_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" + install -D -m644 "$srcdir"/index-racktables.php \ + "$pkgdir"/usr/share/webapps/RackTables/wwwroot/index-racktables.php +} + +md5sums="635d1e86dc175340c5cbda95aa55167d RackTables-0.20.5.tar.gz +e12445ea9d2c1b563774294e8b0dc3b9 index-racktables.php" +sha256sums="4d90c08ab8451eccaa3c925dd935a449c92874c996519b5b5e0775ad92627d77 RackTables-0.20.5.tar.gz +85049288336171bd6e462d1440325065eec9dcbf2983cf6ade22d87d83b7cc99 index-racktables.php" +sha512sums="6da6df0fd48149dc8d5a1a9892bc9c301ff7604b185e672ed3a52ed54c6ce2da6c968fad46bacfe0763eae11f58f5978521f7638de38403a00bd523202c336ce RackTables-0.20.5.tar.gz +f21cc03f2fe2b519d5f6a294267686578985ac3c5bf1aaa7c89cf9c8a21de9831db4116708c046a41f0aaaea3f0eb3677e0b0af67477ac2329d04295d9b18e14 index-racktables.php" diff --git a/testing/racktables/index-racktables.php b/testing/racktables/index-racktables.php new file mode 100644 index 0000000000..405376feb6 --- /dev/null +++ b/testing/racktables/index-racktables.php @@ -0,0 +1,4 @@ +<?php +$racktables_confdir='/etc/racktables'; +require '/usr/share/webapps/RackTables/wwwroot/index.php'; +?> diff --git a/testing/racktables/racktables.post-install b/testing/racktables/racktables.post-install new file mode 100755 index 0000000000..222c750ffd --- /dev/null +++ b/testing/racktables/racktables.post-install @@ -0,0 +1,7 @@ +#!/bin/sh +echo "*" +echo "* Please give ownership to the web server user, the following directories:" +echo "*" +echo "* /etc/racktables" +echo "*" + |