Skip to content

Commit

Permalink
net-mgmt/prometheus2: Update to 2.33.5, switch to GO_MODULE
Browse files Browse the repository at this point in the history
Changes:	https://github.com/prometheus/prometheus/releases/tag/v2.33.5

PR:		264316
Approved by:	David O'Rourke <dor.bsd@xm0.uk> (maintainer)
  • Loading branch information
dmgk committed May 30, 2022
1 parent 074e9dc commit 7765504
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 484 deletions.
13 changes: 4 additions & 9 deletions net-mgmt/prometheus2/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
PORTNAME= prometheus
DISTVERSIONPREFIX= v
DISTVERSION= 2.32.1
PORTREVISION= 1
DISTVERSION= 2.33.5
CATEGORIES= net-mgmt
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
DISTFILES= go.mod:gomod

MAINTAINER= dor.bsd@xm0.uk
COMMENT= Systems monitoring and alerting toolkit
Expand All @@ -16,6 +17,7 @@ USE_GITHUB= yes
GH_TUPLE= ports-assets:net-mgmt_prometheus2:${DISTVERSIONFULL}:assets
USE_RC_SUBR= prometheus

GO_MODULE= github.com/prometheus/prometheus
GO_TARGET= ./cmd/prometheus ./cmd/promtool
GO_BUILDFLAGS= -a -v -ldflags "${LD_FLAG_STRING}" -tags netgo,builtinassets

Expand Down Expand Up @@ -55,13 +57,6 @@ PROMETHEUS_USER?= prometheus
SOURCE_DATE_EPOCH_CMD= date -ur $$(${GREP} TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') \
'+%Y%m%d-%T'

# This file includes the GH_TUPLE and a post-extract section. Generated by
# make gomod-vendor. Ensure that the GH_TUPLE in this file is +=, otherwise
# it will clobber our assets tuple above.
# Generated with: sudo env M2T_GITHUB=$M2T_GITHUB make gomod-vendor > out
# sudo required because gomod-vendor appears to be doing special things as root
.include "Makefile.modules"

post-patch:
@${LN} -s ${WRKSRC_assets}/web/ui/assets_vfsdata.go \
${WRKSRC}/web/ui/assets_vfadata.go
Expand Down
168 changes: 0 additions & 168 deletions net-mgmt/prometheus2/Makefile.modules

This file was deleted.

0 comments on commit 7765504

Please sign in to comment.