From d71c23151407b01882655a4829f6f9041df58dfe Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 20 Oct 2014 06:38:14 +0000 Subject: main/collectd: build libvirt module as subpackage --- main/collectd/APKBUILD | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'main/collectd') diff --git a/main/collectd/APKBUILD b/main/collectd/APKBUILD index 8ba119144e..86a1fdd913 100644 --- a/main/collectd/APKBUILD +++ b/main/collectd/APKBUILD @@ -1,22 +1,22 @@ # Maintainer: Natanael Copa pkgname=collectd pkgver=5.4.1 -pkgrel=2 +pkgrel=3 pkgdesc="The system statistics collection daemon" url="http://collectd.org" arch="all" license="GPL2" depends="" makedepends="pkgconfig curl-dev net-snmp-dev postgresql-dev perl-dev - libgcrypt-dev mysql-dev zlib-dev openssl-dev iptables-dev rrdtool-dev - yajl-dev libvirt-dev lm_sensors-dev" + libgcrypt-dev mysql-dev zlib-dev openssl-dev iptables-dev + rrdtool-dev yajl-dev libvirt-dev lm_sensors-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-perl $pkgname-snmp $pkgname-curl:_curl $pkgname-write_http $pkgname-nginx $pkgname-apache $pkgname-postgresql $pkgname-mysql $pkgname-network $pkgname-rrdtool $pkgname-sensors $pkgname-python:_python $pkgname-iptables:_ipt $pkgname-bind - $pkgname-ascent" + $pkgname-ascent $pkgname-libvirt" source="http://collectd.org/files/collectd-$pkgver.tar.bz2 fix-argmax.patch @@ -47,8 +47,9 @@ build() { --localstate=/var \ --with-libiptc \ --enable-rrdtool \ + --enable-libvirt \ || return 1 - make LDADD='-lm' || return 1 + make || return 1 # disable network plugin by default since its in a subpackage sed -i -e 's/^LoadPlugin network/#LoadPlugin network/' \ src/collectd.conf @@ -96,6 +97,7 @@ _python() { _plugin python; } _ipt() { _plugin iptables; } bind() { _plugin bind; } ascent() { _plugin ascent; } +libvirt() { _plugin libvirt; } md5sums="6f56c71c96573a7f4f7fb3bfab185974 collectd-5.4.1.tar.bz2 cd543f08b405c13b4734fa528cb6abef fix-argmax.patch -- cgit v1.2.3