Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2019 16:00:57 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r510814 - head/security/vault
Message-ID:  <201909021600.x82G0vKX052363@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Sep  2 16:00:56 2019
New Revision: 510814
URL: https://svnweb.freebsd.org/changeset/ports/510814

Log:
  security/vault: Unbreak with go1.13
  
  PR:		240075
  Submitted by:	Dmitri Goutnik <dg@syrec.org>

Modified:
  head/security/vault/Makefile   (contents, props changed)

Modified: head/security/vault/Makefile
==============================================================================
--- head/security/vault/Makefile	Mon Sep  2 15:52:02 2019	(r510813)
+++ head/security/vault/Makefile	Mon Sep  2 16:00:56 2019	(r510814)
@@ -15,9 +15,17 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USES=		go
 
 USE_GITHUB=	yes
-GH_TUPLE=	hashicorp:${PORTNAME}:${VAULTTAG}:DEFAULT/src/github.com/hashicorp/${PORTNAME} \
+GH_TUPLE=	hashicorp:${PORTNAME}:${VAULTTAG}:DEFAULT \
 		swills:vaultui:${VAULTUITAG}:vaultui
 
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS=	-tags=ui \
+		-ldflags="\
+		-X github.com/hashicorp/vault/version.Version=${PORTVERSION} \
+		-X github.com/hashicorp/vault/version.VersionPrerelease= \
+		-X github.com/hashicorp/vault/version.VersionMetadata= \
+		-X github.com/hashicorp/vault/version.GitCommit='${COMMIT_ID}'"
+
 VAULTTAG=	${DISTVERSIONPREFIX}${PORTVERSION}
 VAULTUITAG=	${DISTVERSIONPREFIX}${PORTVERSION}
 
@@ -31,20 +39,5 @@ SUB_FILES=	pkg-message
 
 post-patch:
 	@${CP} ${WRKDIR}/vaultui-${PORTVERSION}/http/bindata_assetfs.go ${WRKDIR}/vault-${PORTVERSION}/http/bindata_assetfs.go
-
-do-build:
-	@cd ${WRKSRC}; \
-		${SETENV} ${MAKE_ENV} ${BUILD_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
-		go build \
-		-tags=ui \
-		-ldflags "\
-		-X github.com/hashicorp/vault/version.Version=${PORTVERSION} \
-		-X github.com/hashicorp/vault/version.VersionPrerelease= \
-		-X github.com/hashicorp/vault/version.VersionMetadata= \
-		-X github.com/hashicorp/vault/version.GitCommit='${COMMIT_ID}'" \
-		-o bin/${PORTNAME}
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>



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