svn commit: r541446 - head/net-mgmt/thanos

Larry Rosenman ler at FreeBSD.org
Tue Jul 7 18:53:01 UTC 2020


Author: ler
Date: Tue Jul  7 18:53:00 2020
New Revision: 541446
URL: https://svnweb.freebsd.org/changeset/ports/541446

Log:
  net-mgmt/thanos: add version description to binary.
  
  PR:		247740
  Submitted by:	florian at fsrv.xyz

Modified:
  head/net-mgmt/thanos/Makefile

Modified: head/net-mgmt/thanos/Makefile
==============================================================================
--- head/net-mgmt/thanos/Makefile	Tue Jul  7 18:52:07 2020	(r541445)
+++ head/net-mgmt/thanos/Makefile	Tue Jul  7 18:53:00 2020	(r541446)
@@ -3,7 +3,7 @@
 PORTNAME=	thanos
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.11.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	ler at FreeBSD.org
@@ -17,7 +17,16 @@ ONLY_FOR_ARCHS=	aarch64 amd64
 
 USES=		go:modules
 
+BUILD_DATE=	$$(date +%d-%B-%Y)
+
 GO_TARGET=	./cmd/${PORTNAME}
+GO_BUILDFLAGS=  -ldflags "\
+                -s -w \
+		-X github.com/prometheus/common/version.Version=${DISTVERSION} \
+		-X github.com/prometheus/common/version.Revision="31cacc4" \
+		-X github.com/prometheus/common/version.Branch="master" \
+		-X github.com/prometheus/common/version.BuildUser=${USER} \
+		-X github.com/prometheus/common/version.BuildDate=${BUILD_DATE}"
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	thanos-io


More information about the svn-ports-all mailing list