Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2018 03:36:17 +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: r477624 - head/security/aws-iam-authenticator
Message-ID:  <201808200336.w7K3aHw6063068@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Aug 20 03:36:16 2018
New Revision: 477624
URL: https://svnweb.freebsd.org/changeset/ports/477624

Log:
  - Use GH_SUBDIR instead of post-patch

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

Modified: head/security/aws-iam-authenticator/Makefile
==============================================================================
--- head/security/aws-iam-authenticator/Makefile	Mon Aug 20 03:33:07 2018	(r477623)
+++ head/security/aws-iam-authenticator/Makefile	Mon Aug 20 03:36:16 2018	(r477624)
@@ -15,21 +15,18 @@ USES=		go
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	kubernetes-sigs
+GH_SUBDIR=	src/github.com/heptio/authenticator
 
 PLIST_FILES=	bin/${PORTNAME}
 
-post-patch:
-	${LN} -s ${WRKSRC}/vendor ${WRKSRC}/src
-	${MKDIR} ${WRKSRC}/src/github.com/heptio/authenticator
-	${LN} -s ${WRKSRC}/pkg ${WRKSRC}/src/github.com/heptio/authenticator/pkg
-
 do-build:
-	cd ${WRKSRC}/cmd/heptio-authenticator-aws && \
-		GOPATH=${WRKSRC} go build
+	cd ${WRKSRC}/${GH_SUBDIR} && \
+		GOPATH=${WRKSRC} go build \
+		./cmd/heptio-authenticator-aws
 
 do-install:
 	${INSTALL_PROGRAM} \
-		${WRKSRC}/cmd/heptio-authenticator-aws/heptio-authenticator-aws \
+		${WRKSRC}/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?201808200336.w7K3aHw6063068>