void-packages/srcpkgs/prometheus/template
2019-04-22 23:03:49 -03:00

36 lines
1.3 KiB
Bash

# Template file for 'prometheus'
pkgname=prometheus
version=2.8.1
revision=2
build_style=go
go_import_path="github.com/prometheus/prometheus"
go_package="github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/prometheus/cmd/promtool"
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"
conf_files="/etc/prometheus/prometheus.yml"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
short_desc="Monitoring system and time series database"
license="Apache-2.0"
homepage="https://prometheus.io/"
distfiles="https://github.com/prometheus/prometheus/archive/v${version}.tar.gz"
checksum=5b967e890b8675e94459f49867d980c738cb42b2f479cd3b1a223ad1382944c1
system_accounts="_prometheus"
make_dirs="/var/lib/prometheus 700 _prometheus _prometheus"
post_install() {
vlicense LICENSE
vlicense NOTICE
vmkdir etc/prometheus
vmkdir usr/share/doc/prometheus
vmkdir usr/share/examples/prometheus
vcopy consoles etc/prometheus
vcopy console_libraries etc/prometheus
vcopy documentation/examples/* usr/share/examples/prometheus/
vcopy documentation/examples/prometheus.yml etc/prometheus/
vcopy documentation/images usr/share/doc/prometheus/
vsv prometheus
}