Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2019 17:55:32 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505625 - head/sysutils/serf
Message-ID:  <201907011755.x61HtWSh006104@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Jul  1 17:55:32 2019
New Revision: 505625
URL: https://svnweb.freebsd.org/changeset/ports/505625

Log:
  sysutils/serf: Switch to USES=go:modules, fix build with go1.13beta1
  
  PR:		238927
  Submitted by:	Dmitri Goutnik <dg@syrec.org>

Modified:
  head/sysutils/serf/Makefile   (contents, props changed)

Modified: head/sysutils/serf/Makefile
==============================================================================
--- head/sysutils/serf/Makefile	Mon Jul  1 17:48:22 2019	(r505624)
+++ head/sysutils/serf/Makefile	Mon Jul  1 17:55:32 2019	(r505625)
@@ -11,26 +11,18 @@ 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
 
 USERS=		serf
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907011755.x61HtWSh006104>