From a80951945009793eada7070ecff477c12a945c44 Mon Sep 17 00:00:00 2001 From: "Bryan A. S." Date: Mon, 18 Nov 2024 00:25:44 -0300 Subject: [PATCH] prometheus: update to 3.0.1. --- srcpkgs/prometheus/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template index e18c0d3b610706..2e584c512c7c66 100644 --- a/srcpkgs/prometheus/template +++ b/srcpkgs/prometheus/template @@ -1,7 +1,7 @@ # Template file for 'prometheus' pkgname=prometheus -version=2.53.1 -revision=2 +version=3.0.1 +revision=1 build_style=go go_import_path="github.com/prometheus/prometheus" go_package="github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/prometheus/cmd/promtool" @@ -19,7 +19,7 @@ license="Apache-2.0, MIT" homepage="https://prometheus.io/" changelog="https://raw.githubusercontent.com/prometheus/prometheus/master/CHANGELOG.md" distfiles="https://github.com/prometheus/prometheus/archive/v${version}.tar.gz" -checksum=6a36ad9fd6ce2813c78aab1da98d7725143bcb73e4fe1e2597c873537f7072af +checksum=bd40fd54d5a8f63cbbf5355ee056d23efce29c4af3fbf3fd754238c5d2a27425 system_accounts="_prometheus" @@ -31,6 +31,10 @@ pre_build() { echo "require('graceful-fs').gracefulify(require('fs'));" \ > "${wrksrc}/web/ui/use-graceful-fs.js" export NODE_OPTIONS="--require ${wrksrc}/web/ui/use-graceful-fs.js" + + if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + (cd web/ui && npm install --override rollup@npm:@rollup/wasm-node@latest) + fi CGO_ENABLED=0 GOARCH= make assets assets-compress } @@ -39,8 +43,6 @@ post_install() { 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/