aboutsummaryrefslogblamecommitdiffstats
path: root/community/racktables/APKBUILD
blob: a0b2a6791b2d1223ccd9f530f54eca32dab5870c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      
                                                     

                    
              
        


                                      
              


                                                                
        
                          
                                                                                      
                    





















                                                 
                                         

                                                
                                                                              
                                                                 

 


                                                                                                                                                                        
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
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"