# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/prometheus-node-exporter/prometheus-node-exporter.desc # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- [I] Prometheus exporter for machine metrics [T] Prometheus exporter for hardware and OS metrics exposed by *NIX kernels. [U] https://prometheus.io/ [A] Ben Kochie [A] Johannes 'fish' Ziemke [M] Paul Manners [C] extra/tool [F] CROSS [L] APL [V] 1.11.1 [D] 8d5467565fefea45021b8f12a46e4d9faee45ddd81b3d1003325c5ef node_exporter-1.11.1.tar.gz https://github.com/prometheus/node_exporter/archive/v1.11.1/ export CGO_ENABLED=1 . $base/package/*/*/go-conf.in var_remove GCC_WRAPPER_REMOVE ' ' "-gdwarf*" hook_add postmake 5 node_exporter_postmake pkginstalled systemd && hook_add postmake 5 systemd_cfg || hook_add postmake 5 initd_cfg node_exporter_postmake() { mkdir -p $root/var/lib/node_exporter/textfile_collector chown node_exporter:node_exporter $root/var/lib/node_exporter/textfile_collector install -Dm644 examples/systemd/sysconfig.node_exporter $root$sysconfdir/sysconfig/node_exporter install node_exporter $root$bindir } systemd_cfg() { install -Dm644 examples/systemd/node_exporter.service $root/$(pkgprefix systemd)/lib/systemd/system/node_exporter.service install -Dm644 examples/systemd/node_exporter.socket $root/$(pkgprefix systemd)/lib/systemd/system/node_exporter.socket } initd_cfg() { install -Dm755 examples/init.d/node_exporter $root$sysconfdir/init.d/node_exporter }