mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
netdata: no node plugins package on ppc32
This commit is contained in:
parent
dd21a4cc21
commit
e2155b49d9
1 changed files with 15 additions and 0 deletions
|
@ -17,6 +17,17 @@ python_version=2
|
||||||
system_accounts="_netdata"
|
system_accounts="_netdata"
|
||||||
conf_files="/etc/${pkgname}/*.conf"
|
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="
|
make_dirs="
|
||||||
/var/cache/netdata 0755 _netdata _netdata
|
/var/cache/netdata 0755 _netdata _netdata
|
||||||
/var/log/netdata 0755 _netdata _netdata"
|
/var/log/netdata 0755 _netdata _netdata"
|
||||||
|
@ -28,6 +39,10 @@ pre_configure() {
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv netdata
|
vsv netdata
|
||||||
vcopy ${FILESDIR}/netdata.conf etc/$pkgname/
|
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() {
|
netdata-plugins-nodejs_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue