From 73494e5cf6938676ade076fd2513deda15b4356a Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 13 Jan 2020 14:18:30 -0500 Subject: [PATCH] prometheus: Actually include separately built web assets --- srcpkgs/prometheus/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template index 9f08399a8b8..49f690f49a8 100644 --- a/srcpkgs/prometheus/template +++ b/srcpkgs/prometheus/template @@ -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 " @@ -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