void-packages/srcpkgs/node_exporter/template

32 lines
1.1 KiB
Bash
Raw Normal View History

2017-09-08 08:58:33 +02:00
# Template file for 'node_exporter'
pkgname=node_exporter
2017-10-08 20:58:02 +02:00
version=0.15.0
2017-10-26 10:36:03 +02:00
revision=3
2017-09-08 08:58:33 +02:00
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"
2017-10-08 20:58:02 +02:00
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
2017-09-08 08:58:33 +02:00
license="Apache-2.0"
homepage="https://prometheus.io/"
distfiles="https://github.com/prometheus/node_exporter/archive/v${version}.tar.gz"
2017-10-08 20:58:02 +02:00
checksum=87a057081e2034f85e997f9e1343aaf45e1b6ad9fa51411caf97a03fe1c46ccb
2017-09-08 08:58:33 +02:00
system_accounts="_node_exporter"
post_install() {
vmkdir usr/share/examples/$pkgname
vcopy text_collector_examples usr/share/examples/$pkgname
vsconf example.rules
vsv node_exporter
}
2017-10-08 20:58:02 +02:00
# 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.