void-packages/srcpkgs/netdata/template

44 lines
1.2 KiB
Bash

# Template file for 'netdata'
pkgname=netdata
version=1.7.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="zlib-devel"
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
configure_args="--with-user=_netdata"
makedepends="libuuid-devel zlib-devel"
short_desc="Real-time performance monitoring, done right"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="GPL-3"
homepage="http://netdata.firehol.org/"
distfiles="https://github.com/firehol/netdata/releases/download/v${version}/netdata-${version}.tar.bz2"
checksum=9c8984da299cb35f1a9e3a948ad7ae46e859a8954f012fe8834b6df9d7b9a4b1
post_install() {
vsv netdata
vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
}
netdata-plugins-nodejs_package() {
short_desc+=" - NodeJS Plugins"
depends="${sourcepkg}>=${version}_${revision} nodejs"
noarch=yes
pkg_install() {
vmove usr/libexec/netdata/plugins.d/node.d.plugin
vmove usr/libexec/netdata/node.d
}
}
netdata-plugins-python_package() {
short_desc+=" - Python Plugins"
depends="${sourcepkg}>=${version}_${revision} python"
noarch=yes
pkg_install() {
vmove usr/libexec/netdata/plugins.d/python.d.plugin
vmove usr/libexec/netdata/python.d
vmove etc/netdata/python.d
}
}