diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-23 09:56:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-23 09:56:01 +0000 |
commit | 092e87b4b568d7bef2d094ac4926e579f779f671 (patch) | |
tree | 9b02ca2fd9cf2c4512bfe116d42b14f30f4a4db9 /main/rrdcollect/APKBUILD | |
parent | 3cc0c95853fcb021a12c63581c971c65718cc685 (diff) | |
download | aports-092e87b4b568d7bef2d094ac4926e579f779f671.tar.bz2 aports-092e87b4b568d7bef2d094ac4926e579f779f671.tar.xz |
main/rrdcollect: moved from testing
Diffstat (limited to 'main/rrdcollect/APKBUILD')
-rw-r--r-- | main/rrdcollect/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/main/rrdcollect/APKBUILD b/main/rrdcollect/APKBUILD new file mode 100644 index 0000000000..56e6499aa1 --- /dev/null +++ b/main/rrdcollect/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Michael Mason <ms13sp@gmail.com> +pkgname=rrdcollect +pkgver=0.2.9 +pkgrel=2 +pkgdesc="Read system statistical data and feed it to RRDtool" +url="http://rrdcollect.sourceforge.net/" +arch="all" +license="GPL" +depends="rrdtool" +makedepends="libpcap-dev" +install= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + 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 --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc/rrdcollect \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + + install -m755 -D "$srcdir"/rrdcollect.initd \ + "$pkgdir"/etc/init.d/rrdcollect || return 1 + install -m755 -d "$pkgdir"/var/lib/rrdtool || return 1 +} + +md5sums="1e94eb0f8d55ebf0f042c10baebc2d3d rrdcollect-0.2.9.tar.gz +e09d7a588e31c9ecfc44fd1747ad732b rrdcollect.conf.patch +d5a892939ee11351f6bbbf9218694f8b rrdcollect.initd" |