Skip to content

Commit

Permalink
dns/blocky: Add buildinfo symbols to -ldflags
Browse files Browse the repository at this point in the history
 - add buildinfo symbols to -ldflags so they do not show up as
   "undefined"
 - bump PORTREVISION

PR:		265563
  • Loading branch information
amigan authored and nunotexbsd committed Aug 2, 2022
1 parent d34c7ae commit 76d7410
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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
Expand All @@ -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

Expand Down

0 comments on commit 76d7410

Please sign in to comment.