netdata: no node plugins package on ppc32

This commit is contained in:
q66 2020-06-17 22:16:20 +02:00
parent dd21a4cc21
commit e2155b49d9

View file

@ -17,6 +17,17 @@ python_version=2
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
subpackages="netdata-plugins-python"
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) _without_node=yes ;;
esac
if [ -z "$_without_node" ]; then
subpackages+=" netdata-plugins-nodejs"
fi
make_dirs="
/var/cache/netdata 0755 _netdata _netdata
/var/log/netdata 0755 _netdata _netdata"
@ -28,6 +39,10 @@ pre_configure() {
post_install() {
vsv netdata
vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
if [ -n "$_without_node" ]; then
rm -rf ${DESTDIR}/usr/libexec/netdata/node.d
rm -rf ${DESTDIR}/usr/libexec/netdata/plugins.d/node.d.plugin
fi
}
netdata-plugins-nodejs_package() {