aboutsummaryrefslogtreecommitdiffstats
path: root/main/rrdcollect/APKBUILD
blob: a549269b188eaf661c88f15cff081df774e0b1d5 (plain) (blame)
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
# 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="GPL-2.0-or-later"
depends="rrdtool"
makedepends="libpcap-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
		rrdcollect.conf.patch
		rrdcollect.initd"

builddir="$srcdir/$pkgname-$pkgver"
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc/rrdcollect \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

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

sha512sums="c926ccfdbf98a4de114b80012151bf6859644742a97e14ce06f3c44c3b48bb242d47fda54deef8069d57aa8d207389e788e6021ce337559c0185e7cdb680b26e  rrdcollect-0.2.10.tar.bz2
587cea801da61601a290a553a63c26219d4ad0fe74a436a42720a2df3561aa73a878fd2f82ebc2363f2406d2a2342ff13aa57539b2237dc6681b9cd10879dc9d  rrdcollect.conf.patch
e8598d1846788a8c4f89e61f95c60c625ac87a667ffe1134549cc7c51d4c0b48aad415f866cab3ae2dcc0eb32c739fc2690951c64858e493af5ab3160d1cc4ab  rrdcollect.initd"