mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
net-mgmt/thanos: add version description to binary.
PR: 247740 Submitted by: florian@fsrv.xyz
This commit is contained in:
parent
d334cac354
commit
0f3e053dd1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541446
@ -3,7 +3,7 @@
|
||||
PORTNAME= thanos
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.11.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= ler@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
|
||||
|
Loading…
Reference in New Issue
Block a user