Date: Wed, 22 Dec 2021 16:03:27 GMT From: Lewis Cook <lcook@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: cc6aef99d65a - main - sysutils/zrepl: Include build version in command output Message-ID: <202112221603.1BMG3Rvd075034@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc6aef99d65a5cae3a48e007fa3036368938a153 commit cc6aef99d65a5cae3a48e007fa3036368938a153 Author: Lewis Cook <lcook@FreeBSD.org> AuthorDate: 2021-12-22 15:56:48 +0000 Commit: Lewis Cook <lcook@FreeBSD.org> CommitDate: 2021-12-22 16:00:35 +0000 sysutils/zrepl: Include build version in command output While here, only include gmake as a dependency when building the documentation. PR: 260608 Reported by: Lapo Luchini <lapo@lapo.it> --- sysutils/zrepl/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sysutils/zrepl/Makefile b/sysutils/zrepl/Makefile index 23b3cc16c683..21b7cae06377 100644 --- a/sysutils/zrepl/Makefile +++ b/sysutils/zrepl/Makefile @@ -3,7 +3,7 @@ PORTNAME= zrepl DISTVERSIONPREFIX= v DISTVERSION= 0.4.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MAINTAINER= lcook@FreeBSD.org @@ -12,10 +12,13 @@ COMMENT= ZFS dataset replication tool LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= gmake go:modules +USES= go:modules USE_RC_SUBR= zrepl GO_MODULE= github.com/${PORTNAME}/${PORTNAME} +GO_BUILDFLAGS= -ldflags "\ + -s -w\ + -X ${GO_MODULE}/version.${PORTNAME}Version=${DISTVERSION}" SUB_FILES= pkg-message @@ -23,7 +26,7 @@ OPTIONS_DEFINE= EXAMPLES MANPAGES OPTIONS_DEFAULT= MANPAGES MANPAGES_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.8.5,1:textproc/py-sphinx@${PY_FLAVOR} -MANPAGES_USES= python:build,3.6+ +MANPAGES_USES= gmake python:build,3.6+ MANPAGES_PLIST_FILES= man/man1/zrepl.1.gz .include <bsd.port.options.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112221603.1BMG3Rvd075034>