From 7656fb4af694ec1692cf53fba06df341076bd16d Mon Sep 17 00:00:00 2001 From: Dmitri Goutnik Date: Mon, 13 Jul 2020 14:07:51 +0000 Subject: [PATCH] net-mgmt/prometheus2: Update to 2.19.2 Changes: https://github.com/prometheus/prometheus/releases/tag/v2.19.2 PR: 247937 Submitted by: David O'Rourke (maintainer) --- net-mgmt/prometheus2/Makefile | 12 +++++++++--- net-mgmt/prometheus2/distinfo | 10 +++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/net-mgmt/prometheus2/Makefile b/net-mgmt/prometheus2/Makefile index b94e389710b2..1ae16e1758dc 100644 --- a/net-mgmt/prometheus2/Makefile +++ b/net-mgmt/prometheus2/Makefile @@ -2,7 +2,7 @@ PORTNAME= prometheus DISTVERSIONPREFIX= v -DISTVERSION= 2.19.1 +DISTVERSION= 2.19.2 CATEGORIES= net-mgmt MAINTAINER= dor.bsd@xm0.uk @@ -56,7 +56,8 @@ LD_FLAG_STRING= -s \ ${LD_FLAG_X_PREFIX}.Version=${PORTVERSION} \ ${LD_FLAG_X_PREFIX}.Revision=${PORTREVISION} \ ${LD_FLAG_X_PREFIX}.Branch=release-${PORTVERSION:R} \ - ${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER} + ${LD_FLAG_X_PREFIX}.BuildUser=${BUILD_USER} \ + ${LD_FLAG_X_PREFIX}.BuildDate=${SOURCE_DATE_EPOCH:U${SOURCE_DATE_EPOCH_CMD:sh}} GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}" -tags netgo,builtinassets @@ -66,6 +67,11 @@ GO_TARGET= ./cmd/prometheus \ ./cmd/promtool \ ./tsdb/cmd/tsdb:promtsdb +# Bring DISTINFO_FILE into scope so we can get the timestamp. +.include + +SOURCE_DATE_EPOCH_CMD= date -ur $$(${GREP} TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') '+%Y%m%d-%T' + post-patch: @${LN} -s ${WRKSRC_assets}/web/ui/assets_vfsdata.go \ ${WRKSRC}/web/ui/assets_vfadata.go @@ -90,4 +96,4 @@ post-install-DOCS-on: cd ${WRKSRC}/docs && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} -.include +.include diff --git a/net-mgmt/prometheus2/distinfo b/net-mgmt/prometheus2/distinfo index 359ae1a0b477..556033f906b7 100644 --- a/net-mgmt/prometheus2/distinfo +++ b/net-mgmt/prometheus2/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1592772011 -SHA256 (prometheus-prometheus-v2.19.1_GH0.tar.gz) = b72b9b6bdbae246dcc29ef354d429425eb3c0a6e1596fc8b29b502578a4ce045 -SIZE (prometheus-prometheus-v2.19.1_GH0.tar.gz) = 13343138 -SHA256 (ports-assets-net-mgmt_prometheus2-v2.19.1_GH0.tar.gz) = d4a688dae5116d4df8d4c98d7c193faacde70b9f4055e8ed9cefb7f6aac0639f -SIZE (ports-assets-net-mgmt_prometheus2-v2.19.1_GH0.tar.gz) = 5034530 +TIMESTAMP = 1594572798 +SHA256 (prometheus-prometheus-v2.19.2_GH0.tar.gz) = d4e84cae2fed6761bb8a80fcc69b6e0e9f274d19dffc0f38fb5845f11da1bbc3 +SIZE (prometheus-prometheus-v2.19.2_GH0.tar.gz) = 13338606 +SHA256 (ports-assets-net-mgmt_prometheus2-v2.19.2_GH0.tar.gz) = c95b017152c74d489b608a4689493ebd66b18ad3d1c5451310c2773c18a3bc10 +SIZE (ports-assets-net-mgmt_prometheus2-v2.19.2_GH0.tar.gz) = 5034529