aboutsummaryrefslogtreecommitdiffstats
path: root/main/collectd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-20 06:38:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-20 08:19:26 +0000
commitd71c23151407b01882655a4829f6f9041df58dfe (patch)
tree50fce1130db9cad2c8201949439495a159701ce4 /main/collectd
parent80266065b7fd240892e388d71b49027fd29e416f (diff)
downloadaports-d71c23151407b01882655a4829f6f9041df58dfe.tar.bz2
aports-d71c23151407b01882655a4829f6f9041df58dfe.tar.xz
main/collectd: build libvirt module as subpackage
Diffstat (limited to 'main/collectd')
-rw-r--r--main/collectd/APKBUILD12
1 files changed, 7 insertions, 5 deletions
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 <ncopa@alpinelinux.org>
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