svn commit: r497574 - head/security/aws-iam-authenticator

Danilo Egea Gondolfo danilo at FreeBSD.org
Tue Apr 2 18:19:03 UTC 2019


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>


More information about the svn-ports-all mailing list