prometheus: Actually include separately built web assets

This commit is contained in:
Toyam Cox 2020-01-13 14:18:30 -05:00
parent 06430645c6
commit 73494e5cf6

View file

@ -1,7 +1,7 @@
# Template file for 'prometheus'
pkgname=prometheus
version=2.14.0
revision=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"
@ -9,6 +9,8 @@ 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"
go_build_tags="netgo,builtinassets"
hostmakedepends="yarn"
conf_files="/etc/prometheus/prometheus.yml"
short_desc="Monitoring system and time series database"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
@ -21,6 +23,10 @@ system_accounts="_prometheus"
make_dirs="/var/lib/prometheus 700 _prometheus _prometheus"
pre_build() {
make assets
}
post_install() {
vlicense LICENSE
vlicense NOTICE