Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2019 12:11:44 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511567 - head/net/v2ray
Message-ID:  <201909081211.x88CBiHC034859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Sep  8 12:11:44 2019
New Revision: 511567
URL: https://svnweb.freebsd.org/changeset/ports/511567

Log:
  net/v2ray: Switch to USES=go:modules, fix build with go1.13
  
  ===>  Building for v2ray-4.20.0
  go: github.com/golang/mock@v1.2.0: Get https://proxy.golang.org/github.com/golang/mock/@v/v1.2.0.mod: dial tcp: lookup proxy.golang.org on 209.222.18.218:53: write udp 127.0.0.1:43894->209.222.18.218:53: write: permission denied
  *** Error code 1
  
  PR:		240282
  Submitted by:	Dmitri Goutnik <dg@syrec.org>
  Approved by:	Yanhui Shen <shen.elf@gmail.com> (maintainer)
  Pointy hat:	jlaffaye

Modified:
  head/net/v2ray/Makefile

Modified: head/net/v2ray/Makefile
==============================================================================
--- head/net/v2ray/Makefile	Sun Sep  8 12:08:15 2019	(r511566)
+++ head/net/v2ray/Makefile	Sun Sep  8 12:11:44 2019	(r511567)
@@ -11,15 +11,12 @@ COMMENT=	Platform for building proxies to bypass netwo
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN=		fails to build
-
-USES=		go
+USES=		go:modules
 USE_GITHUB=	yes
 USE_RC_SUBR=	v2ray
 
 GH_ACCOUNT=	v2ray
 GH_PROJECT=	v2ray-core
-GH_SUBDIR=	src/v2ray.com/core
 GH_TUPLE=	golang:crypto:193df9c0f06f:golang_crypto/vendor/golang.org/x/crypto \
 		golang:mock:v1.2.0:golang_mock/vendor/github.com/golang/mock \
 		golang:net:65e2d4e15006:golang_net/vendor/golang.org/x/net \
@@ -34,7 +31,7 @@ GH_TUPLE=	golang:crypto:193df9c0f06f:golang_crypto/ven
 		h12w:socks:v1.0.0:h12w_socks/vendor/h12.io/socks \
 		miekg:dns:v1.1.4:miekg_dns/vendor/github.com/miekg/dns
 
-GO_BUILDFLAGS=	--ldflags '-s -w'
+GO_BUILDFLAGS=	-ldflags='-s -w'
 
 USERS=		v2ray
 GROUPS=		v2ray
@@ -43,7 +40,7 @@ SUB_LIST=	USER="${USERS}" \
 		GROUP="${GROUPS}"
 
 do-build:
-	@cd ${GO_WRKSRC} && \
+	cd ${GO_WRKSRC} && \
 	${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build ${GO_BUILDFLAGS} -o ${GO_WRKDIR_BIN}/v2ray v2ray.com/core/main && \
 	${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build ${GO_BUILDFLAGS} -o ${GO_WRKDIR_BIN}/v2ctl v2ray.com/core/infra/control/main
 



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