67 lines
1.9 KiB
Bash
67 lines
1.9 KiB
Bash
# Template file for 'collectd'
|
|
pkgname=collectd
|
|
version=5.5.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
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"
|
|
hostmakedepends="autoconf automake pkg-config libtool libltdl-devel glib-devel"
|
|
makedepends="libcurl-devel iptables-devel libressl-devel libsensors-devel
|
|
libesmtp-devel zlib-devel yajl-devel python-devel libxml2-devel net-snmp-devel
|
|
libgcrypt-devel libmysqlclient-devel libvirt-devel
|
|
$(vopt_if notify libnotify-devel) $(vopt_if rrdtool rrdtool-devel)"
|
|
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"
|
|
distfiles="http://collectd.org/files/${pkgname}-${version}.tar.gz"
|
|
checksum=8013ae74df2b90ec8a8e7ac5da7638e165199021eca5f423ff8ee19feac649ba
|
|
LDFLAGS="-lgcrypt"
|
|
|
|
build_options="rrdtool perl notify"
|
|
desc_option_rrdtool="Enable support for RRDTool"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="rrdtool perl"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i 's/-Werror//g' configure.ac src/Makefile.am
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/collectd.conf 640 etc/
|
|
vsv collectd
|
|
vlicense COPYING
|
|
}
|
|
|
|
collectd-utils_package() {
|
|
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
|
|
}
|
|
}
|
|
|
|
|