Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2019 18:19:02 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497574 - head/security/aws-iam-authenticator
Message-ID:  <201904021819.x32IJ2AX026153@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Tue Apr  2 18:19:01 2019
New Revision: 497574
URL: https://svnweb.freebsd.org/changeset/ports/497574

Log:
  - Use GO_* variables to simplify the Makefile

Modified:
  head/security/aws-iam-authenticator/Makefile

Modified: head/security/aws-iam-authenticator/Makefile
==============================================================================
--- head/security/aws-iam-authenticator/Makefile	Tue Apr  2 17:31:23 2019	(r497573)
+++ head/security/aws-iam-authenticator/Makefile	Tue Apr  2 18:19:01 2019	(r497574)
@@ -17,16 +17,14 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	kubernetes-sigs
 GH_SUBDIR=	src/github.com/heptio/authenticator
 
+GO_PKGNAME=	github.com/heptio/authenticator
+GO_TARGET=	${GO_PKGNAME}/cmd/heptio-authenticator-aws
+
 PLIST_FILES=	bin/${PORTNAME}
 
-do-build:
-	cd ${WRKSRC}/${GH_SUBDIR} && \
-		GOPATH=${WRKSRC} go build \
-		./cmd/heptio-authenticator-aws
-
 do-install:
 	${INSTALL_PROGRAM} \
-		${WRKSRC}/heptio-authenticator-aws \
+		${GO_WRKDIR_BIN}/heptio-authenticator-aws \
 		${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?201904021819.x32IJ2AX026153>