blob: def4b88f5fbd62783ac2f1d858c3d2098ef623d4 (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=rrdcollect
pkgver=0.2.10
pkgrel=0
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
d5a892939ee11351f6bbbf9218694f8b rrdcollect.initd"
|