2015-09-14 23:00:16 +02:00
|
|
|
# Template file for 'collectd'
|
|
|
|
pkgname=collectd
|
2016-09-12 05:27:47 +02:00
|
|
|
version=5.6.0
|
|
|
|
revision=1
|
2015-09-14 23:00:16 +02:00
|
|
|
build_style=gnu-configure
|
2016-09-12 05:27:47 +02:00
|
|
|
configure_args="$(vopt_enable rrdtool rrdtool) $(vopt_enable perl perl)
|
|
|
|
$(vopt_enable notify notify_desktop) --with-libiptc --enable-virt
|
|
|
|
--sysconfdir=/etc --disable-static --with-fp-layout=nothing --disable-werror"
|
|
|
|
hostmakedepends="automake pkg-config libtool libltdl-devel glib-devel"
|
2015-09-14 23:00:16 +02:00
|
|
|
makedepends="libcurl-devel iptables-devel libressl-devel libsensors-devel
|
|
|
|
libesmtp-devel zlib-devel yajl-devel python-devel libxml2-devel net-snmp-devel
|
2016-07-27 04:40:31 +02:00
|
|
|
libgcrypt-devel libmysqlclient-devel libvirt-devel
|
|
|
|
$(vopt_if notify libnotify-devel) $(vopt_if rrdtool rrdtool-devel)"
|
2015-09-14 23:00:16 +02:00
|
|
|
conf_files="/etc/collectd.conf"
|
|
|
|
short_desc="Daemon which collects system performance statistics periodically"
|
|
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
|
|
license="GPL-2, MIT"
|
|
|
|
homepage="http://collectd.org"
|
2016-09-12 05:27:47 +02:00
|
|
|
distfiles="http://collectd.org/files/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=f0ffbbd91fac3682bd324a74b9b4c9eabe781394b303b5cfd457c4cfbe748623
|
2015-10-31 00:38:07 +01:00
|
|
|
LDFLAGS="-lgcrypt"
|
2015-09-14 23:00:16 +02:00
|
|
|
|
2016-07-27 04:40:31 +02:00
|
|
|
build_options="rrdtool perl notify"
|
2015-09-14 23:00:16 +02:00
|
|
|
desc_option_rrdtool="Enable support for RRDTool"
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="rrdtool perl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vsv collectd
|
|
|
|
vlicense COPYING
|
|
|
|
}
|
|
|
|
|
2016-01-23 02:31:02 +01:00
|
|
|
collectd-utils_package() {
|
2015-09-14 23:00:16 +02:00
|
|
|
short_desc+=" - utilities"
|
|
|
|
pkg_install() {
|
|
|
|
for util in collectd-nagios collectd-tg collectdctl; do
|
|
|
|
vmove usr/bin/${util}
|
|
|
|
vmove usr/share/man/man1/${util}.1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcollectdclient_package() {
|
|
|
|
short_desc+=" - shared libraries"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/libcollectdclient.so*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libcollectdclient-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="libcollectdclient>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
}
|
|
|
|
}
|