1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

sysutils/serf: Switch to USES=go:modules, fix build with go1.13beta1

PR:		238927
Submitted by:	Dmitri Goutnik <dg@syrec.org>
This commit is contained in:
Steve Wills 2019-07-01 17:55:32 +00:00
parent 418535e00f
commit a948a437fe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505625

View File

@ -11,12 +11,12 @@ COMMENT= Service discovery and configuration made easy
LICENSE= MPL20
USES= go
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= hashicorp
GH_SUBDIR:= src/github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= ./cmd/${PORTNAME}
USE_RC_SUBR= serf
@ -25,12 +25,4 @@ GROUPS= serf
PLIST_FILES= bin/serf
do-build:
@cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}; \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC}:${WRKSRC}/vendor/ \
go build -o bin/${PORTNAME} ./cmd/serf/
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>