void-packages/srcpkgs/netdata/template
2018-11-17 00:17:34 -08:00

46 lines
1.2 KiB
Bash

# Template file for 'netdata'
pkgname=netdata
version=1.11.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config autoconf automake"
makedepends="libuuid-devel zlib-devel"
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
configure_args="--with-user=_netdata"
short_desc="Real-time performance monitoring, done right"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="GPL-3"
homepage="http://my-netdata.io"
distfiles="https://github.com/netdata/netdata/archive/v$version.tar.gz"
checksum=56bffc916e643a7b0b35a4a998a6b358b89cc7209ad40ac3803880bf86525b78
pre_configure() {
autoreconf -ivf
}
post_install() {
vsv netdata
vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
}
netdata-plugins-nodejs_package() {
short_desc+=" - NodeJS Plugins"
depends="${sourcepkg}>=${version}_${revision} virtual?nodejs-runtime"
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
}
}