Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: v2ray-4.40.1
@ 2021-06-25 12:58 ipkalm
  2021-06-25 13:02 ` ipkalm
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: ipkalm @ 2021-06-25 12:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

There is a new pull request by ipkalm against master on the void-packages repository

https://github.com/ipkalm/void-packages v2ray-4.40.1
https://github.com/void-linux/void-packages/pull/31653

New package: v2ray-4.40.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [x] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31653.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-4.40.1-31653.patch --]
[-- Type: text/x-diff, Size: 1928 bytes --]

From 1f0a9182121fe2db9d34ea43a9464ed6b7b2e473 Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Fri, 25 Jun 2021 19:16:44 +0700
Subject: [PATCH] New package: v2ray-4.40.1

---
 srcpkgs/v2ray/files/v2ray/run |  3 +++
 srcpkgs/v2ray/template        | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 srcpkgs/v2ray/files/v2ray/run
 create mode 100644 srcpkgs/v2ray/template

diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100644
index 000000000000..3b1ac46ab240
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -u _v2ray v2ray -config=/etc/v2ray/config.json 2>&1
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 000000000000..2617e5d5ee8e
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,34 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.40.1
+revision=1
+wrksrc=${pkgname}-core-${version}
+build_style=go
+go_import_path="github.com/v2fly/v2ray-core/v4"
+go_ldflags="-s -w"
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="ipkalm <ipkalm@outlook.com>"
+license="MIT"
+homepage="https://github.com/v2fly/v2ray-core"
+distfiles="https://github.com/v2fly/v2ray-core/archive/v${version}/${pkgname}-${version}.tar.gz"
+checksum=75b599cb9866c2469056b71f2c0c69cbdab08cf15f6bd2273c893cd0bd16f175
+conf_files="/etc/v2ray/config.json"
+
+system_accounts="_v2ray"
+
+do_build() {
+		export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
+		go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
+		go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ctl" -tags "confonly" ./infra/control/main
+}
+
+do_check() {
+		go test -p 1 -tags json -v -timeout 30m ./...
+}
+
+post_install() {
+		vlicense LICENSE
+		vmkdir etc/v2ray
+		vcopy release/config/*.json etc/v2ray/
+		vsv v2ray
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.40.1
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
@ 2021-06-25 13:02 ` ipkalm
  2022-03-19 11:58 ` [PR PATCH] [Updated] " ipkalm
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2021-06-25 13:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-868483809

Comment:
I apologise for closing previous PR.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: v2ray-4.40.1
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
  2021-06-25 13:02 ` ipkalm
@ 2022-03-19 11:58 ` ipkalm
  2022-03-25 18:13 ` New package: v2ray-4.44.0 ipkalm
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-19 11:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]

There is an updated pull request by ipkalm against master on the void-packages repository

https://github.com/ipkalm/void-packages v2ray-4.40.1
https://github.com/void-linux/void-packages/pull/31653

New package: v2ray-4.40.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [x] armv7l
  - [ ] armv6l-musl



A patch file from https://github.com/void-linux/void-packages/pull/31653.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-4.40.1-31653.patch --]
[-- Type: text/x-diff, Size: 1920 bytes --]

From b1de3b2bc0fefbb7ba0c1c7e1328a1e340f24b6b Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Sat, 19 Mar 2022 18:33:15 +0700
Subject: [PATCH] New package: v2ray-4.44.0

---
 srcpkgs/v2ray/files/v2ray/run |  3 +++
 srcpkgs/v2ray/template        | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 srcpkgs/v2ray/files/v2ray/run
 create mode 100644 srcpkgs/v2ray/template

diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100644
index 000000000000..3b1ac46ab240
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -u _v2ray v2ray -config=/etc/v2ray/config.json 2>&1
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 000000000000..3389750ba8d4
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,34 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.44.0
+revision=1
+wrksrc=${pkgname}-core-${version}
+build_style=go
+go_import_path="github.com/v2fly/v2ray-core/v4"
+go_ldflags="-s -w"
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="ipkalm <ipkalm@outlook.com>"
+license="MIT"
+homepage="https://github.com/v2fly/v2ray-core"
+distfiles="https://github.com/v2fly/v2ray-core/archive/v${version}/${pkgname}-${version}.tar.gz"
+checksum=d9973bafd3020f60a51fa3495b24ab417b08b3c8f9539a3748d00da6c68d0103
+conf_files="/etc/v2ray/config.json"
+
+system_accounts="_v2ray"
+
+do_build() {
+	export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ctl" -tags "confonly" ./infra/control/main
+}
+
+do_check() {
+	go test -p 1 -tags json -v -timeout 30m ./...
+}
+
+post_install() {
+	vlicense LICENSE
+	vmkdir etc/v2ray
+	vcopy release/config/*.json etc/v2ray/
+	vsv v2ray
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
  2021-06-25 13:02 ` ipkalm
  2022-03-19 11:58 ` [PR PATCH] [Updated] " ipkalm
@ 2022-03-25 18:13 ` ipkalm
  2022-03-26  5:00 ` [PR PATCH] [Updated] " ipkalm
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-25 18:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079280797

Comment:
Greetings @ericonr @leahneukirchen !!! guys, may are you check my PR, please?😉

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (2 preceding siblings ...)
  2022-03-25 18:13 ` New package: v2ray-4.44.0 ipkalm
@ 2022-03-26  5:00 ` ipkalm
  2022-03-26  5:20 ` ipkalm
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26  5:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]

There is an updated pull request by ipkalm against master on the void-packages repository

https://github.com/ipkalm/void-packages v2ray-4.40.1
https://github.com/void-linux/void-packages/pull/31653

New package: v2ray-4.44.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] aarch64-musl
  - [x] armv7l
  - [x] armv6l-musl



A patch file from https://github.com/void-linux/void-packages/pull/31653.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-4.40.1-31653.patch --]
[-- Type: text/x-diff, Size: 2538 bytes --]

From 9145d062f36eda4bfabed1cbfe2ae9b69355c3ce Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Sat, 19 Mar 2022 18:33:15 +0700
Subject: [PATCH] New package: v2ray-4.44.0

---
 srcpkgs/v2ray/files/v2ray/run |  3 ++
 srcpkgs/v2ray/template        | 52 +++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/v2ray/files/v2ray/run
 create mode 100644 srcpkgs/v2ray/template

diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100644
index 000000000000..3b1ac46ab240
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -u _v2ray v2ray -config=/etc/v2ray/config.json 2>&1
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 000000000000..cf6cd28a534a
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,52 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.44.0
+revision=1
+wrksrc=${pkgname}-core-${version}
+build_style=go
+go_import_path="github.com/v2fly/v2ray-core/v4"
+go_ldflags="-X github.com/v2fly/v2ray-core/v4.codename=$pkgname -X github.com/v2fly/v2ray-core/v4.version=$version -X github.com/v2fly/v2ray-core/v4.build=$SOURCE_DATE_EPOCH -s -w -buildid="
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="ipkalm <ipkalm@outlook.com>"
+license="MIT"
+homepage="https://github.com/v2fly/v2ray-core"
+distfiles="https://github.com/v2fly/v2ray-core/archive/v${version}/${pkgname}-${version}.tar.gz"
+checksum=d9973bafd3020f60a51fa3495b24ab417b08b3c8f9539a3748d00da6c68d0103
+conf_files="/etc/v2ray/config.json"
+
+system_accounts="_v2ray"
+
+export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
+export CGO_ENABLED=0
+
+do_build() {
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ctl" -tags "confonly" ./infra/control/main
+}
+
+do_check() {
+	local pkgs=$(go list ./... | grep -v \
+		-e 'app/dns$' \
+		-e 'app/stats$' \
+		-e 'app/router$' \
+		-e 'app/router/command$' \
+		-e 'common/task$' \
+		-e 'common/signal$' \
+		-e 'testing/scenarios$' \
+		-e 'proxy/vmess$' \
+		-e 'transport/pipe$' \
+		-e 'transport/internet/websocket$' \
+		-e 'transport/internet/quic$' \
+		-e 'v4/infra/conf/rule$' \
+		-e 'v4/infra/conf/geodata/memconservative$' \
+		-e 'v4/transport/internet/kcp$' \
+		)
+	go test $pkgs
+}
+
+post_install() {
+	vlicense LICENSE
+	vmkdir etc/v2ray
+	vcopy release/config/*.json etc/v2ray/
+	vsv v2ray
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (3 preceding siblings ...)
  2022-03-26  5:00 ` [PR PATCH] [Updated] " ipkalm
@ 2022-03-26  5:20 ` ipkalm
  2022-03-26 16:08 ` leahneukirchen
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26  5:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079608939

Comment:
@leahneukirchen I fixed _template_ file. `x86_64` target - build successful with check stage (`-Q`). And now this stage take much less time than before. Cross Compile (`-a target`) is work for some target machines (x86_64-musl i686 i686-musl aarch64 aarch64-musl armv7l armv7l-musl armv6l armv6l-musl ppc64le).

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (4 preceding siblings ...)
  2022-03-26  5:20 ` ipkalm
@ 2022-03-26 16:08 ` leahneukirchen
  2022-03-26 16:29 ` [PR PATCH] [Updated] " ipkalm
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-03-26 16:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079723925

Comment:
Please rebase for CI.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (5 preceding siblings ...)
  2022-03-26 16:08 ` leahneukirchen
@ 2022-03-26 16:29 ` ipkalm
  2022-03-26 17:44 ` leahneukirchen
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26 16:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

There is an updated pull request by ipkalm against master on the void-packages repository

https://github.com/ipkalm/void-packages v2ray-4.40.1
https://github.com/void-linux/void-packages/pull/31653

New package: v2ray-4.44.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] x86_64-musl
  - [x] i686
  - [x] i686-musl
  - [x] aarch64
  - [x] aarch64-musl
  - [x] armv7l
  - [x] armv7l-musl
  - [x] armv6l
  - [x] armv6l-musl
  - [x] ppc64le



A patch file from https://github.com/void-linux/void-packages/pull/31653.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-4.40.1-31653.patch --]
[-- Type: text/x-diff, Size: 2538 bytes --]

From f78c5a938fc4884043a458b0ee90bcccb70f8791 Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Sat, 19 Mar 2022 18:33:15 +0700
Subject: [PATCH] New package: v2ray-4.44.0

---
 srcpkgs/v2ray/files/v2ray/run |  3 ++
 srcpkgs/v2ray/template        | 52 +++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/v2ray/files/v2ray/run
 create mode 100644 srcpkgs/v2ray/template

diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100644
index 000000000000..3b1ac46ab240
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -u _v2ray v2ray -config=/etc/v2ray/config.json 2>&1
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 000000000000..cf6cd28a534a
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,52 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.44.0
+revision=1
+wrksrc=${pkgname}-core-${version}
+build_style=go
+go_import_path="github.com/v2fly/v2ray-core/v4"
+go_ldflags="-X github.com/v2fly/v2ray-core/v4.codename=$pkgname -X github.com/v2fly/v2ray-core/v4.version=$version -X github.com/v2fly/v2ray-core/v4.build=$SOURCE_DATE_EPOCH -s -w -buildid="
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="ipkalm <ipkalm@outlook.com>"
+license="MIT"
+homepage="https://github.com/v2fly/v2ray-core"
+distfiles="https://github.com/v2fly/v2ray-core/archive/v${version}/${pkgname}-${version}.tar.gz"
+checksum=d9973bafd3020f60a51fa3495b24ab417b08b3c8f9539a3748d00da6c68d0103
+conf_files="/etc/v2ray/config.json"
+
+system_accounts="_v2ray"
+
+export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
+export CGO_ENABLED=0
+
+do_build() {
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ctl" -tags "confonly" ./infra/control/main
+}
+
+do_check() {
+	local pkgs=$(go list ./... | grep -v \
+		-e 'app/dns$' \
+		-e 'app/stats$' \
+		-e 'app/router$' \
+		-e 'app/router/command$' \
+		-e 'common/task$' \
+		-e 'common/signal$' \
+		-e 'testing/scenarios$' \
+		-e 'proxy/vmess$' \
+		-e 'transport/pipe$' \
+		-e 'transport/internet/websocket$' \
+		-e 'transport/internet/quic$' \
+		-e 'v4/infra/conf/rule$' \
+		-e 'v4/infra/conf/geodata/memconservative$' \
+		-e 'v4/transport/internet/kcp$' \
+		)
+	go test $pkgs
+}
+
+post_install() {
+	vlicense LICENSE
+	vmkdir etc/v2ray
+	vcopy release/config/*.json etc/v2ray/
+	vsv v2ray
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (6 preceding siblings ...)
  2022-03-26 16:29 ` [PR PATCH] [Updated] " ipkalm
@ 2022-03-26 17:44 ` leahneukirchen
  2022-03-26 19:31 ` [PR PATCH] [Updated] " ipkalm
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-03-26 17:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079741601

Comment:
Any idea why x86 segfaults?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Updated] New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (7 preceding siblings ...)
  2022-03-26 17:44 ` leahneukirchen
@ 2022-03-26 19:31 ` ipkalm
  2022-03-26 19:31 ` ipkalm
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26 19:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

There is an updated pull request by ipkalm against master on the void-packages repository

https://github.com/ipkalm/void-packages v2ray-4.40.1
https://github.com/void-linux/void-packages/pull/31653

New package: v2ray-4.44.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] x86_64-musl
  - [x] i686
  - [x] i686-musl
  - [x] aarch64
  - [x] aarch64-musl
  - [x] armv7l
  - [x] armv7l-musl
  - [x] armv6l
  - [x] armv6l-musl
  - [x] ppc64le



A patch file from https://github.com/void-linux/void-packages/pull/31653.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-4.40.1-31653.patch --]
[-- Type: text/x-diff, Size: 5106 bytes --]

From 55675e207d8c1b7c16d5c49a4c86c49143f892ac Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Sat, 19 Mar 2022 18:33:15 +0700
Subject: [PATCH] New package: v2ray-4.44.0

---
 srcpkgs/v2ray/files/v2ray/run                 |  3 ++
 ...equest-API-changed-since-go1.17-1370.patch | 47 +++++++++++++++++
 srcpkgs/v2ray/template                        | 52 +++++++++++++++++++
 3 files changed, 102 insertions(+)
 create mode 100644 srcpkgs/v2ray/files/v2ray/run
 create mode 100644 srcpkgs/v2ray/patches/0001-fix-readRequest-API-changed-since-go1.17-1370.patch
 create mode 100644 srcpkgs/v2ray/template

diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100644
index 000000000000..3b1ac46ab240
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -u _v2ray v2ray -config=/etc/v2ray/config.json 2>&1
diff --git a/srcpkgs/v2ray/patches/0001-fix-readRequest-API-changed-since-go1.17-1370.patch b/srcpkgs/v2ray/patches/0001-fix-readRequest-API-changed-since-go1.17-1370.patch
new file mode 100644
index 000000000000..2a35b075f0a0
--- /dev/null
+++ b/srcpkgs/v2ray/patches/0001-fix-readRequest-API-changed-since-go1.17-1370.patch
@@ -0,0 +1,47 @@
+From 77b88171d6bd837b76a5ad6e6b23689391530ed6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=E6=9C=B1=E8=81=96=E9=BB=8E=20=28Zhu=20Sheng=20Li=29?=
+ <digglife@gmail.com>
+Date: Sat, 6 Nov 2021 22:09:26 +0800
+Subject: [PATCH] fix: readRequest API changed since go1.17 (#1370)
+
+fixed: #1265
+---
+ transport/internet/headers/http/http.go              | 4 ++--
+ transport/internet/headers/http/linkedreadRequest.go | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/transport/internet/headers/http/http.go b/transport/internet/headers/http/http.go
+index c73f7a63..54611889 100644
+--- a/transport/internet/headers/http/http.go
++++ b/transport/internet/headers/http/http.go
+@@ -90,7 +90,7 @@ func (h *HeaderReader) Read(reader io.Reader) (*buf.Buffer, error) {
+ 			buffer.Clear()
+ 			copy(buffer.Extend(lenEnding), leftover)
+ 
+-			if _, err := readRequest(bufio.NewReader(bytes.NewReader(headerBuf.Bytes())), false); err != io.ErrUnexpectedEOF {
++			if _, err := readRequest(bufio.NewReader(bytes.NewReader(headerBuf.Bytes()))); err != io.ErrUnexpectedEOF {
+ 				return nil, err
+ 			}
+ 		}
+@@ -110,7 +110,7 @@ func (h *HeaderReader) Read(reader io.Reader) (*buf.Buffer, error) {
+ 	}
+ 
+ 	// Parse the request
+-	if req, err := readRequest(bufio.NewReader(bytes.NewReader(headerBuf.Bytes())), false); err != nil {
++	if req, err := readRequest(bufio.NewReader(bytes.NewReader(headerBuf.Bytes()))); err != nil {
+ 		return nil, err
+ 	} else { // nolint: golint
+ 		h.req = req
+diff --git a/transport/internet/headers/http/linkedreadRequest.go b/transport/internet/headers/http/linkedreadRequest.go
+index 35154b87..45773312 100644
+--- a/transport/internet/headers/http/linkedreadRequest.go
++++ b/transport/internet/headers/http/linkedreadRequest.go
+@@ -9,4 +9,4 @@ import (
+ )
+ 
+ //go:linkname readRequest net/http.readRequest
+-func readRequest(b *bufio.Reader, deleteHostHeader bool) (req *http.Request, err error)
++func readRequest(b *bufio.Reader) (req *http.Request, err error)
+-- 
+2.33.1
+
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 000000000000..cf6cd28a534a
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,52 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.44.0
+revision=1
+wrksrc=${pkgname}-core-${version}
+build_style=go
+go_import_path="github.com/v2fly/v2ray-core/v4"
+go_ldflags="-X github.com/v2fly/v2ray-core/v4.codename=$pkgname -X github.com/v2fly/v2ray-core/v4.version=$version -X github.com/v2fly/v2ray-core/v4.build=$SOURCE_DATE_EPOCH -s -w -buildid="
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="ipkalm <ipkalm@outlook.com>"
+license="MIT"
+homepage="https://github.com/v2fly/v2ray-core"
+distfiles="https://github.com/v2fly/v2ray-core/archive/v${version}/${pkgname}-${version}.tar.gz"
+checksum=d9973bafd3020f60a51fa3495b24ab417b08b3c8f9539a3748d00da6c68d0103
+conf_files="/etc/v2ray/config.json"
+
+system_accounts="_v2ray"
+
+export GOFLAGS="-x -p=$XBPS_MAKEJOBS -buildmode=pie -trimpath"
+export CGO_ENABLED=0
+
+do_build() {
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ray" ./main
+	go build -ldflags "${go_ldflags}" -o "${GOPATH}/bin/v2ctl" -tags "confonly" ./infra/control/main
+}
+
+do_check() {
+	local pkgs=$(go list ./... | grep -v \
+		-e 'app/dns$' \
+		-e 'app/stats$' \
+		-e 'app/router$' \
+		-e 'app/router/command$' \
+		-e 'common/task$' \
+		-e 'common/signal$' \
+		-e 'testing/scenarios$' \
+		-e 'proxy/vmess$' \
+		-e 'transport/pipe$' \
+		-e 'transport/internet/websocket$' \
+		-e 'transport/internet/quic$' \
+		-e 'v4/infra/conf/rule$' \
+		-e 'v4/infra/conf/geodata/memconservative$' \
+		-e 'v4/transport/internet/kcp$' \
+		)
+	go test $pkgs
+}
+
+post_install() {
+	vlicense LICENSE
+	vmkdir etc/v2ray
+	vcopy release/config/*.json etc/v2ray/
+	vsv v2ray
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (8 preceding siblings ...)
  2022-03-26 19:31 ` [PR PATCH] [Updated] " ipkalm
@ 2022-03-26 19:31 ` ipkalm
  2022-03-26 19:33 ` ipkalm
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26 19:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079760327

Comment:
In golang 1.17 changed signature of func used in test. I found patch for fix this issue. 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (9 preceding siblings ...)
  2022-03-26 19:31 ` ipkalm
@ 2022-03-26 19:33 ` ipkalm
  2022-03-26 19:33 ` ipkalm
  2022-03-26 20:00 ` [PR PATCH] [Merged]: " leahneukirchen
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26 19:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079760327

Comment:
In golang 1.17 changed signature of func used in test. I found patch for fix this issue. I tested it on host machine with `x86_64` voidlinux , and on virtual machine with `i686` voidlinux.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (10 preceding siblings ...)
  2022-03-26 19:33 ` ipkalm
@ 2022-03-26 19:33 ` ipkalm
  2022-03-26 20:00 ` [PR PATCH] [Merged]: " leahneukirchen
  12 siblings, 0 replies; 14+ messages in thread
From: ipkalm @ 2022-03-26 19:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

New comment by ipkalm on void-packages repository

https://github.com/void-linux/void-packages/pull/31653#issuecomment-1079760327

Comment:
In golang 1.17 changed signature of func used in project. I found patch for fix this issue. I tested it on host machine with `x86_64` voidlinux , and on virtual machine with `i686` voidlinux.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Merged]: New package: v2ray-4.44.0
  2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
                   ` (11 preceding siblings ...)
  2022-03-26 19:33 ` ipkalm
@ 2022-03-26 20:00 ` leahneukirchen
  12 siblings, 0 replies; 14+ messages in thread
From: leahneukirchen @ 2022-03-26 20:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1556 bytes --]

There's a merged pull request on the void-packages repository

New package: v2ray-4.44.0
https://github.com/void-linux/void-packages/pull/31653

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] x86_64-musl
  - [x] i686
  - [x] i686-musl
  - [x] aarch64
  - [x] aarch64-musl
  - [x] armv7l
  - [x] armv7l-musl
  - [x] armv6l
  - [x] armv6l-musl
  - [x] ppc64le



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-03-26 20:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 12:58 [PR PATCH] New package: v2ray-4.40.1 ipkalm
2021-06-25 13:02 ` ipkalm
2022-03-19 11:58 ` [PR PATCH] [Updated] " ipkalm
2022-03-25 18:13 ` New package: v2ray-4.44.0 ipkalm
2022-03-26  5:00 ` [PR PATCH] [Updated] " ipkalm
2022-03-26  5:20 ` ipkalm
2022-03-26 16:08 ` leahneukirchen
2022-03-26 16:29 ` [PR PATCH] [Updated] " ipkalm
2022-03-26 17:44 ` leahneukirchen
2022-03-26 19:31 ` [PR PATCH] [Updated] " ipkalm
2022-03-26 19:31 ` ipkalm
2022-03-26 19:33 ` ipkalm
2022-03-26 19:33 ` ipkalm
2022-03-26 20:00 ` [PR PATCH] [Merged]: " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).