aboutsummaryrefslogtreecommitdiffstats
path: root/main/rrdcollect/APKBUILD
blob: 527b7b64ef72a4fcc6affc540da4201bdcc8fbbf (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=rrdcollect
pkgver=0.2.10
pkgrel=1
pkgdesc="Read system statistical data and feed it to RRDtool"
url="http://rrdcollect.sourceforge.net/"
arch="all"
license="GPL2+"
depends="rrdtool"
makedepends="libpcap-dev"
install=""
subpackages="$pkgname-doc" 
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
		rrdcollect.conf.patch
		rrdcollect.initd"

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

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc/rrdcollect \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/rrdcollect.initd \
		"$pkgdir"/etc/init.d/rrdcollect || return 1
	install -m755 -d "$pkgdir"/var/lib/rrdtool || return 1
}

md5sums="138e21fc9f2de0b8b6c89f1506394ef8  rrdcollect-0.2.10.tar.bz2
e09d7a588e31c9ecfc44fd1747ad732b  rrdcollect.conf.patch
2dea3838e456ff384caba767cf285f30  rrdcollect.initd"
sha256sums="6104ecbb12adc4fb91330d9949adfff4fe98b5a01d2249c3d840174d89704ca1  rrdcollect-0.2.10.tar.bz2
c28b156b95d36e7177b0bb527ea0841c85c52b7d68cf3cd14889ea3f843dee48  rrdcollect.conf.patch
90cdfd6721154258c677fd6c88f857efff00b1528ae9944dbabb1b8599e4034e  rrdcollect.initd"
sha512sums="c926ccfdbf98a4de114b80012151bf6859644742a97e14ce06f3c44c3b48bb242d47fda54deef8069d57aa8d207389e788e6021ce337559c0185e7cdb680b26e  rrdcollect-0.2.10.tar.bz2
587cea801da61601a290a553a63c26219d4ad0fe74a436a42720a2df3561aa73a878fd2f82ebc2363f2406d2a2342ff13aa57539b2237dc6681b9cd10879dc9d  rrdcollect.conf.patch
e8598d1846788a8c4f89e61f95c60c625ac87a667ffe1134549cc7c51d4c0b48aad415f866cab3ae2dcc0eb32c739fc2690951c64858e493af5ab3160d1cc4ab  rrdcollect.initd"