aboutsummaryrefslogtreecommitdiffstats
path: root/main/cacti/APKBUILD
blob: 87b052bd3c1aca1517a470403a171c7abc7d69ba (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>
pkgname=cacti
pkgver=0.8.7i
pkgrel=0
pkgdesc="Network monitoring tool based on RRDtool"
url="http://www.cacti.net"
arch="noarch"
license="GPL"
depends="mysql 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
http://www.cacti.net/downloads/patches/$pkgver/settings_checkbox.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in ../*.patch; do
		msg "Applying $i"
		if ! patch -p1 -i $i; then
			error "$i failed"
			return 1
		fi
	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="07fd1da6b0ac4912410df3aa4e451a4b  cacti-0.8.7i.tar.gz
930e6c18b692fb94a19ddbd95a529a8b  settings_checkbox.patch"