summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ponte <amigan@gmail.com>2022-08-02 02:51:31 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2022-08-02 02:51:31 +0100
commit76d7410873ef215e2451c0cb3152bfe0a82656c4 (patch)
tree0e9752725c2c2eaf1195d65a0bd275d5c53037f6
parentemulators/citra: update to s20220801 (diff)
dns/blocky: Add buildinfo symbols to -ldflags
- add buildinfo symbols to -ldflags so they do not show up as "undefined" - bump PORTREVISION PR: 265563
-rw-r--r--dns/blocky/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/dns/blocky/Makefile b/dns/blocky/Makefile
index 5fdb434035db..040d1266c83e 100644
--- a/dns/blocky/Makefile
+++ b/dns/blocky/Makefile
@@ -1,7 +1,7 @@
PORTNAME= blocky
DISTVERSIONPREFIX= v
DISTVERSION= 0.19
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= dns
MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${GH_PROJECT}/${DISTVERSIONFULL}/:gomod
DISTFILES= go.mod:gomod
@@ -19,6 +19,9 @@ USE_RC_SUBR= blocky
GO_MODULE= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_TARGET= main.go:${PREFIX}/sbin/${PORTNAME}
+GO_BUILDFLAGS= -ldflags "-w -s \
+ -X github.com/0xERR0R/blocky/util.Version=${DISTVERSION} \
+ -X github.com/0xERR0R/blocky/util.BuildTime=`date '+%Y%m%d-%H%M%S'`"
SUB_FILES= pkg-message