From 36d09d5b6774ec30ffb5f996fd849cf42bcf7012 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 21 Mar 2012 14:41:41 +0100 Subject: testing/rrdcollect: Version bump. Init.d scripts. Patching default rrdcollect.conf to work with alpine linux --- testing/rrdcollect/APKBUILD | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'testing/rrdcollect/APKBUILD') diff --git a/testing/rrdcollect/APKBUILD b/testing/rrdcollect/APKBUILD index 36e55972b..688ccdd37 100644 --- a/testing/rrdcollect/APKBUILD +++ b/testing/rrdcollect/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Michael Mason # Maintainer: Michael Mason pkgname=rrdcollect -pkgver=0.2.4 +pkgver=0.2.9 pkgrel=1 pkgdesc="Read system statistical data and feed it to RRDtool" url="http://rrdcollect.sourceforge.net/" @@ -11,22 +11,45 @@ depends="rrdtool" makedepends="libpcap-dev" install= subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz +rrdcollect.conf.patch +rrdcollect.confd +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 "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure --prefix=/usr \ - --sysconfdir=/etc \ + --localstatedir=/var \ + --sysconfdir=/etc/rrdcollect \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" make DESTDIR="$pkgdir" install + install -m755 -D "$srcdir"/rrdcollect.initd "$pkgdir"/etc/init.d/rrdcollect || return 1 + install -m644 -D "$srcdir"/rrdcollect.confd "$pkgdir"/etc/conf.d/rrdcollect || return 1 + install -m755 -d "$pkgdir"/var/lib/rrdtool || return 1 } -md5sums="fd7ac95195e3e5cbab0677629505d9be rrdcollect-0.2.4.tar.gz" +md5sums="1e94eb0f8d55ebf0f042c10baebc2d3d rrdcollect-0.2.9.tar.gz +e09d7a588e31c9ecfc44fd1747ad732b rrdcollect.conf.patch +b3f64ec3e4578fb4de9614c20c6ea232 rrdcollect.confd +edef974fb5a27279f9347d9eacda4a26 rrdcollect.initd" -- cgit v1.2.3