33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# Template file for 'node_exporter'
|
|
pkgname=node_exporter
|
|
version=0.17.0
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/prometheus/node_exporter"
|
|
go_ldflags="-X ${go_import_path}/version.Version=${version}
|
|
-X ${go_import_path}/version.Revision=${version}
|
|
-X ${go_import_path}/version.Branch=${version}
|
|
-X ${go_import_path}/version.BuildUser=VoidLinux"
|
|
hostmakedepends="git"
|
|
short_desc="Exporter for machine metrics"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://prometheus.io/"
|
|
changelog="https://raw.githubusercontent.com/prometheus/node_exporter/master/CHANGELOG.md"
|
|
distfiles="https://github.com/prometheus/node_exporter/archive/v${version}.tar.gz"
|
|
checksum=763b588b9282a8aa497286f8ab1aab61d085bdd2d258cf3457f23c60752c9a27
|
|
|
|
system_accounts="_node_exporter"
|
|
|
|
post_install() {
|
|
vmkdir usr/share/examples/$pkgname
|
|
vcopy text_collector_examples usr/share/examples/$pkgname
|
|
vsconf example-rules.yml
|
|
vsv node_exporter
|
|
}
|
|
|
|
# REMARKS:
|
|
# The following remark is now obsolete:
|
|
# ON UPDATE: Be sure to update the default list of collectors in the sv run
|
|
# file. There is no easy way at 0.14.0 to go from the -h output
|
|
# of node_exporter to taking the default list and appending runit.
|