Skip to content

Commit

Permalink
prometheus: update to 3.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanasdev000 authored and TinfoilSubmarine committed Dec 4, 2024
1 parent 900e03e commit a809519
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions srcpkgs/prometheus/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"

Expand All @@ -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
}

Expand All @@ -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/
Expand Down

0 comments on commit a809519

Please sign in to comment.