aboutsummaryrefslogtreecommitdiffstats
path: root/main/cacti/APKBUILD
blob: 32a1a7bec0ffbb7cb51a4d9497aa4580241303c0 (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
# Maintainer: Jeff Bilyk <jbilyk@gmail.com>
_php=php5
pkgname=cacti
pkgver=0.8.8g
pkgrel=1
pkgdesc="Network monitoring tool based on RRDtool"
url="http://www.cacti.net"
arch="noarch"
license="GPL2+"
depends="$_php ${_php}-mysql ${_php}-snmp rrdtool net-snmp ${_php}-sockets
	${_php}-xml ${_php}-gd"
makedepends=""
source="http://www.cacti.net/downloads/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	return 0
}

package() {
	mkdir -p "$pkgdir"/usr/share/webapps/cacti
	mv "$srcdir"/$pkgname-$pkgver/* "$pkgdir"/usr/share/webapps/cacti/ || return 1

}
md5sums="75f660d54152182e1dbbf0db73143098  cacti-0.8.8g.tar.gz"
sha256sums="3187bd5054ae4e54496bb23187f14c79a441fedcfd397a2d27cd60179f0dee33  cacti-0.8.8g.tar.gz"
sha512sums="cbac69de47a32de8b87d0fc2f32e90eb70f7f13828fd17764957b5afbbcc7a8954ccc49f30f414d5fdf09142967a9ddcb4cde66d03569407ae05fc36612b731c  cacti-0.8.8g.tar.gz"