52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
# Template file for 'netdata'
|
|
pkgname=netdata
|
|
version=1.13.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-user=_netdata"
|
|
hostmakedepends="pkg-config autoconf automake"
|
|
makedepends="libuuid-devel zlib-devel"
|
|
short_desc="Real-time performance monitoring, done right"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://my-netdata.io"
|
|
distfiles="https://github.com/netdata/netdata/archive/v${version}.tar.gz"
|
|
checksum=45d972c11954af08aaf4c888ffb32453dd2e1fda0c7dbb355afdb9d4b1ab930e
|
|
|
|
system_accounts="_netdata"
|
|
conf_files="/etc/${pkgname}/*.conf"
|
|
|
|
make_dirs="
|
|
/var/cache/netdata 0755 _netdata _netdata
|
|
/var/log/netdata 0755 _netdata _netdata"
|
|
|
|
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"
|
|
archs=noarch
|
|
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"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/libexec/netdata/plugins.d/python.d.plugin
|
|
vmove usr/libexec/netdata/python.d
|
|
vmove etc/netdata/python.d
|
|
}
|
|
}
|