security/2fa: Unbreak by adding GOCACHE=off

Using ${MAKE_ENV} helped many other Go ports, but not this one.
Now added GOCACHE=off that turns the cache off.

Approved by:	portmgr (port compliance, infrastructure)
This commit is contained in:
Yuri Victorovich 2018-03-14 17:35:44 +00:00
parent 3821188727
commit bb05e08a40
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464513

View File

@ -23,10 +23,10 @@ PLIST_FILES= bin/2fa
PORTDOCS= README.md
do-build:
@cd ${WRKSRC}/${GH_SUBDIR} && ${SETENV} GOPATH=${WRKSRC} go build -o ${PORTNAME}
@cd ${WRKSRC}/${GH_SUBDIR} && ${SETENV} ${MAKE_ENV} GOCACHE=off GOPATH=${WRKSRC} go build -o ${PORTNAME}
do-test:
@cd ${WRKSRC}/${GH_SUBDIR} && ${SETENV} GOPATH=${WRKSRC} go test
@cd ${WRKSRC}/${GH_SUBDIR} && ${SETENV} ${MAKE_ENV} GOCACHE=off GOPATH=${WRKSRC} go test
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin