Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2022 02:05:48 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 36b56411eec6 - 2022Q3 - dns/blocky: Add buildinfo symbols to -ldflags
Message-ID:  <202208020205.27225mnf086669@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36b56411eec6d262619f802d0d10e37f93850225

commit 36b56411eec6d262619f802d0d10e37f93850225
Author:     Daniel Ponte <amigan@gmail.com>
AuthorDate: 2022-08-02 01:51:31 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-08-02 02:05:08 +0000

    dns/blocky: Add buildinfo symbols to -ldflags
    
     - add buildinfo symbols to -ldflags so they do not show up as
       "undefined"
     - bump PORTREVISION
    
    PR:             265563
    (cherry picked from commit 76d7410873ef215e2451c0cb3152bfe0a82656c4)
---
 dns/blocky/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dns/blocky/Makefile b/dns/blocky/Makefile
index 6855f25c219b..040d1266c83e 100644
--- a/dns/blocky/Makefile
+++ b/dns/blocky/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	blocky
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.19
-PORTREVISION=	1
+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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208020205.27225mnf086669>