27 lines
949 B
Bash
27 lines
949 B
Bash
# Template file for 'node_exporter'
|
|
pkgname=node_exporter
|
|
version=1.3.1
|
|
revision=3
|
|
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"
|
|
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=66856b6b8953e094c46d7dd5aabd32801375cf4d13d9fe388e320cbaeaff573a
|
|
|
|
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
|
|
}
|