View | Details | Raw Unified | Return to bug 282227 | Differences between
and this patch

Collapse All | Expand All

(-)b/net/v2ray/Makefile (-44 / +12 lines)
Lines 1-71 Link Here
1
PORTNAME=	v2ray
1
PORTNAME=	v2ray
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	4.36.2
3
DISTVERSION=	5.22.0
4
PORTREVISION=	23
5
CATEGORIES=	net
4
CATEGORIES=	net
6
5
7
MAINTAINER=	shen.elf@gmail.com
6
MAINTAINER=	shen.elf@gmail.com
8
COMMENT=	Platform for building proxies to bypass network restrictions
7
COMMENT=	Platform for building proxies to bypass network restrictions
9
WWW=		https://www.v2ray.com
8
WWW=		https://www.v2fly.org/
10
9
11
LICENSE=	MIT
10
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
13
12
14
USES=		go:modules
13
USES=		cpe go:1.23,modules
14
CPE_VENDOR=	v2fly
15
CPE_PRODUCT=	v2ray-core
15
USE_GITHUB=	yes
16
USE_GITHUB=	yes
16
USE_RC_SUBR=	v2ray
17
18
GH_ACCOUNT=	v2fly
17
GH_ACCOUNT=	v2fly
19
GH_PROJECT=	v2ray-core
18
GH_PROJECT=	v2ray-core
20
GH_TUPLE=	\
19
USE_RC_SUBR=	v2ray
21
		cheekybits:genny:v1.0.0:cheekybits_genny/vendor/github.com/cheekybits/genny \
22
		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
23
		dgryski:go-metro:85c65e2d0165:dgryski_go_metro/vendor/github.com/dgryski/go-metro \
24
		ebfe:bcrypt_pbkdf:3c8d2dcb253a:ebfe_bcrypt_pbkdf/vendor/github.com/ebfe/bcrypt_pbkdf \
25
		go-yaml:yaml:a5ece683394c:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \
26
		golang:crypto:5ea612d1eb83:golang_crypto/vendor/golang.org/x/crypto \
27
		golang:mock:v1.5.0:golang_mock/vendor/github.com/golang/mock \
28
		golang:net:e18ecbb05110:golang_net/vendor/golang.org/x/net \
29
		golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \
30
		golang:sync:036812b2e83c:golang_sync/vendor/golang.org/x/sync \
31
		golang:sys:v0.6.0:golang_sys/vendor/golang.org/x/sys \
32
		golang:text:v0.3.3:golang_text/vendor/golang.org/x/text \
33
		golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \
34
		google:go-cmp:v0.5.5:google_go_cmp/vendor/github.com/google/go-cmp \
35
		google:go-genproto:cb27e3aa2013:google_go_genproto/vendor/google.golang.org/genproto \
36
		google:starlark-go:6a590ae7f4eb:google_starlark_go/vendor/go.starlark.net \
37
		gorilla:websocket:v1.4.2:gorilla_websocket/vendor/github.com/gorilla/websocket \
38
		grpc:grpc-go:v1.36.0:grpc_grpc_go/vendor/google.golang.org/grpc \
39
		h12w:socks:v1.0.2:h12w_socks/vendor/h12.io/socks \
40
		lucas-clemente:quic-go:v0.19.3:lucas_clemente_quic_go/vendor/github.com/lucas-clemente/quic-go \
41
		marten-seemann:qtls-go1-15:v0.1.1:marten_seemann_qtls_go1_15/vendor/github.com/marten-seemann/qtls-go1-15 \
42
		marten-seemann:qtls:v0.10.0:marten_seemann_qtls/vendor/github.com/marten-seemann/qtls \
43
		miekg:dns:v1.1.40:miekg_dns/vendor/github.com/miekg/dns \
44
		pires:go-proxyproto:v0.5.0:pires_go_proxyproto/vendor/github.com/pires/go-proxyproto \
45
		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
46
		protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
47
		seiflotfy:cuckoofilter:bc6005554a0c:seiflotfy_cuckoofilter/vendor/github.com/seiflotfy/cuckoofilter \
48
		stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify \
49
		v2fly:VSign:e2adc24bf848:v2fly_vsign/vendor/github.com/v2fly/VSign
50
20
51
GO_BUILDFLAGS=	-ldflags='${STRIP} -w'
21
GO_MODULE=	github.com/v2fly/v2ray-core
52
GO_TARGET=	./main:v2ray \
22
GO_TARGET=	./main:v2ray
53
		./infra/control/main:v2ctl
54
GO_TESTFLAGS=	-p 1 -tags json -timeout 30m
23
GO_TESTFLAGS=	-p 1 -tags json -timeout 30m
55
24
25
SUB_LIST=	USER="${USERS}" \
26
		GROUP="${GROUPS}"
27
56
USERS=		v2ray
28
USERS=		v2ray
57
GROUPS=		v2ray
29
GROUPS=		v2ray
58
30
59
SUB_LIST=	USER="${USERS}" \
31
GO_MOD_DIST=	github # https://github.com/v2fly/v2ray-core/issues/3187
60
		GROUP="${GROUPS}"
61
32
62
post-install:
33
post-install:
63
	${MKDIR} ${STAGEDIR}${ETCDIR}
34
	${MKDIR} ${STAGEDIR}${ETCDIR}
64
	${MKDIR} ${STAGEDIR}${DATADIR}
65
	${INSTALL_DATA} ${WRKSRC}/release/config/config.json ${STAGEDIR}${ETCDIR}/config.json.sample
35
	${INSTALL_DATA} ${WRKSRC}/release/config/config.json ${STAGEDIR}${ETCDIR}/config.json.sample
66
	${INSTALL_DATA} ${WRKSRC}/release/config/vpoint_socks_vmess.json ${STAGEDIR}${ETCDIR}/vpoint_socks_vmess.json
36
	${INSTALL_DATA} ${WRKSRC}/release/config/vpoint_socks_vmess.json ${STAGEDIR}${ETCDIR}/vpoint_socks_vmess.json
67
	${INSTALL_DATA} ${WRKSRC}/release/config/vpoint_vmess_freedom.json ${STAGEDIR}${ETCDIR}/vpoint_vmess_freedom.json
37
	${INSTALL_DATA} ${WRKSRC}/release/config/vpoint_vmess_freedom.json ${STAGEDIR}${ETCDIR}/vpoint_vmess_freedom.json
68
	${INSTALL_DATA} ${WRKSRC}/release/config/geoip.dat ${STAGEDIR}${DATADIR}/geoip.dat
69
	${INSTALL_DATA} ${WRKSRC}/release/config/geosite.dat ${STAGEDIR}${DATADIR}/geosite.dat
70
38
71
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)b/net/v2ray/distinfo (-61 / +5 lines)
Lines 1-61 Link Here
1
TIMESTAMP = 1679411079
1
TIMESTAMP = 1731672463
2
SHA256 (v2fly-v2ray-core-v4.36.2_GH0.tar.gz) = e7f7ceefd4cd9d2e57d18cecf55228a5a126c6ed5ee53767660601c35e70535c
2
SHA256 (go/net_v2ray/v2fly-v2ray-core-v5.22.0_GH0/go.mod) = fc67b3258254ca70e4e91aa0db82995412dd457733bfb242aadf72e6960598d4
3
SIZE (v2fly-v2ray-core-v4.36.2_GH0.tar.gz) = 2230993
3
SIZE (go/net_v2ray/v2fly-v2ray-core-v5.22.0_GH0/go.mod) = 4222
4
SHA256 (cheekybits-genny-v1.0.0_GH0.tar.gz) = 6982bf513333fb3ee3e6e0633500a3800fb6a3d6beb9e6c6084a96c85a49dd73
4
SHA256 (go/net_v2ray/v2fly-v2ray-core-v5.22.0_GH0/v2fly-v2ray-core-v5.22.0_GH0.tar.gz) = df25a873c8f7fb30f44cb6d26b18db264dfa209df5aeb6116fc43df7157fb4b8
5
SIZE (cheekybits-genny-v1.0.0_GH0.tar.gz) = 15585
5
SIZE (go/net_v2ray/v2fly-v2ray-core-v5.22.0_GH0/v2fly-v2ray-core-v5.22.0_GH0.tar.gz) = 1072762
6
SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
7
SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152
8
SHA256 (dgryski-go-metro-85c65e2d0165_GH0.tar.gz) = 069a3ea10b4a1f709911616de03d039b6af0d791769e409b8037850c2c07f4e7
9
SIZE (dgryski-go-metro-85c65e2d0165_GH0.tar.gz) = 4470
10
SHA256 (ebfe-bcrypt_pbkdf-3c8d2dcb253a_GH0.tar.gz) = d1ec68ddb19f4b096748622e87e3526de3b000977d779ac40ab4f6bf953d11db
11
SIZE (ebfe-bcrypt_pbkdf-3c8d2dcb253a_GH0.tar.gz) = 15161
12
SHA256 (go-yaml-yaml-a5ece683394c_GH0.tar.gz) = e4b738b2e3cd15fd5f76704d35d3b62d77d808894ff83bfe68f5f28b03ded019
13
SIZE (go-yaml-yaml-a5ece683394c_GH0.tar.gz) = 88436
14
SHA256 (golang-crypto-5ea612d1eb83_GH0.tar.gz) = ab4d88d6121195632d006705a950adebaf4fa99dd15ea0c508297a17c5d3277e
15
SIZE (golang-crypto-5ea612d1eb83_GH0.tar.gz) = 1726242
16
SHA256 (golang-mock-v1.5.0_GH0.tar.gz) = 7a8212b8332072626d1ce440883929a28ab18450926bc5164d926c6e5cae61ff
17
SIZE (golang-mock-v1.5.0_GH0.tar.gz) = 66429
18
SHA256 (golang-net-e18ecbb05110_GH0.tar.gz) = c30374f6fd34c6b77d53224aa3ba7458e3773d7e6e4fa16d88fb05c7d05e0e89
19
SIZE (golang-net-e18ecbb05110_GH0.tar.gz) = 1253124
20
SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610
21
SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969
22
SHA256 (golang-sync-036812b2e83c_GH0.tar.gz) = 75ac8fc16bdceb2496c4a9cc98584b70c29032d91a9e57a624acb073e3232fda
23
SIZE (golang-sync-036812b2e83c_GH0.tar.gz) = 18752
24
SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
25
SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234
26
SHA256 (golang-text-v0.3.3_GH0.tar.gz) = 1604233637e3593749fbbb13b5069b08e6feba6d2b55a02fd3148793d5871185
27
SIZE (golang-text-v0.3.3_GH0.tar.gz) = 7747332
28
SHA256 (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 71975d658357e170fd6a41f92539cde8b39c9cd8bfe5931b6311bc5f5c0da0d7
29
SIZE (golang-xerrors-5ec99f83aff1_GH0.tar.gz) = 13664
30
SHA256 (google-go-cmp-v0.5.5_GH0.tar.gz) = 8f1a0041f484812ae219e7548a13d5269c947cfcdea6031d40cdc85cd0663b3e
31
SIZE (google-go-cmp-v0.5.5_GH0.tar.gz) = 102358
32
SHA256 (google-go-genproto-cb27e3aa2013_GH0.tar.gz) = 1f0c3be40b17772975c71b54ca512ee681f7db384ebc43c8adb24f1ab44d2d0e
33
SIZE (google-go-genproto-cb27e3aa2013_GH0.tar.gz) = 9293098
34
SHA256 (google-starlark-go-6a590ae7f4eb_GH0.tar.gz) = c07b254d4b44edd1409c68dfbc7b6a3d304563cf51b19ffff5fe60d6f78b2e24
35
SIZE (google-starlark-go-6a590ae7f4eb_GH0.tar.gz) = 263261
36
SHA256 (gorilla-websocket-v1.4.2_GH0.tar.gz) = 91937a36bc9e0da3c895c73d4cb74b2cdb1aff54ab21b0d0724000e7b5b85b84
37
SIZE (gorilla-websocket-v1.4.2_GH0.tar.gz) = 54101
38
SHA256 (grpc-grpc-go-v1.36.0_GH0.tar.gz) = d460c8f379ff240f6169924ec399080351e4a03a0492fbb5a761f4e2d14d4fda
39
SIZE (grpc-grpc-go-v1.36.0_GH0.tar.gz) = 1166422
40
SHA256 (h12w-socks-v1.0.2_GH0.tar.gz) = b2b8f09363dee8091e17b807aa0160882d531d1d6b681fe0745dafa64b3cfc67
41
SIZE (h12w-socks-v1.0.2_GH0.tar.gz) = 14625
42
SHA256 (lucas-clemente-quic-go-v0.19.3_GH0.tar.gz) = a1ccd4284dd238d5174192152aec9c180abaaa2a4ce389341c7576e15f3d74d1
43
SIZE (lucas-clemente-quic-go-v0.19.3_GH0.tar.gz) = 495536
44
SHA256 (marten-seemann-qtls-go1-15-v0.1.1_GH0.tar.gz) = 6af56a620c947db5199015776e47fec0d7a7dbfeeb2e3c432da7c3349ea6c6f9
45
SIZE (marten-seemann-qtls-go1-15-v0.1.1_GH0.tar.gz) = 413658
46
SHA256 (marten-seemann-qtls-v0.10.0_GH0.tar.gz) = b852f137be07c4e26c12b3225a13012fe879226210efa40b084e85a9ce726a84
47
SIZE (marten-seemann-qtls-v0.10.0_GH0.tar.gz) = 403869
48
SHA256 (miekg-dns-v1.1.40_GH0.tar.gz) = 82e330b2f5c8a711d9a167200cf4c5513f30e421351c27e8c023b98c1902e63d
49
SIZE (miekg-dns-v1.1.40_GH0.tar.gz) = 199492
50
SHA256 (pires-go-proxyproto-v0.5.0_GH0.tar.gz) = d23df3a6b9eeed9c35b85ba558cdcd57a6867de37f481b2a6df727bebd9aa909
51
SIZE (pires-go-proxyproto-v0.5.0_GH0.tar.gz) = 34787
52
SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
53
SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
54
SHA256 (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = c1c04d6e36c0d0fb6f3374197f9025d7e6df13f38a974098be020617c00fbaf2
55
SIZE (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = 1258804
56
SHA256 (seiflotfy-cuckoofilter-bc6005554a0c_GH0.tar.gz) = de044c02aee635b3b2eb2ce36568995b031ffa0c848a866556fcc5d3fa69aa83
57
SIZE (seiflotfy-cuckoofilter-bc6005554a0c_GH0.tar.gz) = 6761
58
SHA256 (stretchr-testify-v1.7.0_GH0.tar.gz) = 560c0984072cb436b17bbce5699b205d5aa2beb58ef7a94530d7724b5739a8d6
59
SIZE (stretchr-testify-v1.7.0_GH0.tar.gz) = 91073
60
SHA256 (v2fly-VSign-e2adc24bf848_GH0.tar.gz) = c417ab3e50d680e45c85f49c6c9a438d608561cfad1d6602460335da834d1f04
61
SIZE (v2fly-VSign-e2adc24bf848_GH0.tar.gz) = 9337
(-)b/net/v2ray/pkg-plist (-4 lines)
Lines 1-7 Link Here
1
bin/v2ray
1
bin/v2ray
2
bin/v2ctl
3
@sample %%ETCDIR%%/config.json.sample
2
@sample %%ETCDIR%%/config.json.sample
4
%%ETCDIR%%/vpoint_socks_vmess.json
3
%%ETCDIR%%/vpoint_socks_vmess.json
5
%%ETCDIR%%/vpoint_vmess_freedom.json
4
%%ETCDIR%%/vpoint_vmess_freedom.json
6
%%DATADIR%%/geoip.dat
7
%%DATADIR%%/geosite.dat
8
- 

Return to bug 282227