Page MenuHomeFreeBSD

[NEW PORT]: net/v2ray: Platform for building proxies to bypass network restrictions
Needs ReviewPublic

Authored by loader on Feb 2 2019, 7:35 PM.

Details

Reviewers
koobs
Summary

Proposed commit log message:

[NEW PORT]: net/v2ray: Platform for building proxies to bypass network restrictions

Project V is a set of network tools that help you to build your
own computer network. It secures your network connections and
thus protects your privacy.

WWW: https://www.v2ray.com

PR: 235418
Submitted by: Yanhui Shen <shen.elf@gmail.com>
Reviewed_by: koobs, mat
Approved by: koobs (mentor)
Differential_Revision: D19066
Test Plan
  • portlint: OK (looks fine.)
  • testport: OK (poudriere: 1300008, amd64, '', tested)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 22325
Build 21508: arc lint + arc unit

Event Timeline

loader created this revision.Feb 2 2019, 7:35 PM
loader edited the summary of this revision. (Show Details)Feb 2 2019, 7:37 PM
mat added inline comments.Feb 2 2019, 8:27 PM
net/v2ray/Makefile
9

As the distname is not versionned, you should add the port version to this.

20

WRKSRC_SUBDIR.

loader updated this revision to Diff 53553.Feb 3 2019, 6:18 AM
loader edited the summary of this revision. (Show Details)

DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}

loader marked an inline comment as done.Feb 3 2019, 6:20 AM
loader added inline comments.
net/v2ray/Makefile
9

Thanks @mat.

20

This one was trying to set ${EXTRACT_WRKDIR} to ${WRKDIR}/src

The default GOPATH is ${WRKDIR} in ${GO_ENV}:
https://svnweb.freebsd.org/ports/head/Mk/Uses/go.mk?revision=478076&view=markup#l61

61      GO_ENV+=        GOPATH="${WRKDIR}:${LOCAL_GOPATH}" \
62                      CGO_CFLAGS="${CGO_CFLAGS}" \
63                      CGO_LDFLAGS="${CGO_LDFLAGS}" \
64                      GOBIN=""

Go loads the packages from GOPATH/src (https://github.com/golang/go/wiki/GOPATH):

# make 
===>  Building for v2ray-4.14.0
can't load package: package v2ray.com/core/main: cannot find package "v2ray.com/core/main" in any of:
        /usr/local/go/src/v2ray.com/core/main (from $GOROOT)
        /usr/ports/net/v2ray/work/src/v2ray.com/core/main (from $GOPATH)
        /usr/local/share/go/src/v2ray.com/core/main
*** Error code 1
loader edited the summary of this revision. (Show Details)Feb 7 2019, 6:03 AM