Github messages for voidlinux
 help / color / mirror / Atom feed
From: ipkalm <ipkalm@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: v2ray-4.39.2
Date: Thu, 24 Jun 2021 06:19:37 +0200	[thread overview]
Message-ID: <20210624041937.pG3i2KO2s15XaH_Ok9laJzexZ1ijA9AJquhARHjucDw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-30762@inbox.vuxu.org>

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

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

https://github.com/ipkalm/void-packages master
https://github.com/void-linux/void-packages/pull/30762

New package: v2ray-4.39.2
<!-- 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, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 38acb6d5c8772e7ed8b96b7c698574fb668b1e81 Mon Sep 17 00:00:00 2001
From: ipkalm <ipkalm@outlook.com>
Date: Sun, 9 May 2021 19:06:35 +0700
Subject: [PATCH] New package: v2ray-4.39.2

---
 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..f9cf205ecd9a
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,34 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.39.2
+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=bcb35c0fd3fed604762b4c2a0950718b0118d7f4cb0ca9987d716a6a6e471b2b
+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
+}

  parent reply	other threads:[~2021-06-24  4:19 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09 12:38 [PR PATCH] New package: v2ray-4.38.3 ipkalm
2021-05-09 19:28 ` noarchwastaken
2021-05-09 19:28 ` noarchwastaken
2021-05-09 20:15 ` ericonr
2021-05-09 20:15 ` [PR REVIEW] " noarchwastaken
2021-05-09 20:15 ` noarchwastaken
2021-05-09 20:32 ` ericonr
2021-05-10  4:23 ` [PR PATCH] [Updated] " ipkalm
2021-05-10  4:24 ` ipkalm
2021-05-10  4:26 ` noarchwastaken
2021-05-10  4:32 ` ipkalm
2021-05-10  4:35 ` noarchwastaken
2021-05-10  4:35 ` noarchwastaken
2021-05-10  4:36 ` ipkalm
2021-05-10  9:18 ` [PR PATCH] [Updated] " ipkalm
2021-05-10  9:21 ` ipkalm
2021-05-10  9:40 ` [PR PATCH] [Updated] " ipkalm
2021-05-10  9:42 ` ipkalm
2021-05-10 10:02 ` ipkalm
2021-05-10 10:15 ` ipkalm
2021-05-10 10:19 ` ipkalm
2021-05-10 10:20 ` ipkalm
2021-05-10 14:28 ` noarchwastaken
2021-05-10 16:53 ` ipkalm
2021-05-10 20:25 ` noarchwastaken
2021-05-10 20:25 ` noarchwastaken
2021-05-10 20:39 ` ipkalm
2021-05-10 20:46 ` ipkalm
2021-05-11 17:14 ` ipkalm
2021-05-11 18:03 ` ericonr
2021-05-11 18:21 ` ipkalm
2021-05-11 18:21 ` ipkalm
2021-05-11 18:24 ` ipkalm
2021-05-11 18:24 ` ipkalm
2021-05-11 18:38 ` ericonr
2021-05-11 18:40 ` ipkalm
2021-05-12 18:06 ` [PR PATCH] [Updated] " ipkalm
2021-05-12 18:11 ` ipkalm
2021-05-12 19:06 ` [PR PATCH] [Closed]: " ipkalm
2021-05-12 19:06 ` [PR PATCH] [Updated] " ipkalm
2021-05-12 19:10 ` ipkalm
2021-05-12 19:15 ` ipkalm
2021-05-14  9:26 ` ipkalm
2021-05-14  9:26 ` ipkalm
2021-05-28  3:45 ` [PR PATCH] [Updated] " ipkalm
2021-06-24  4:19 ` ipkalm [this message]
2021-06-24  4:22 ` [PR PATCH] [Updated] New package: v2ray-4.39.2 ipkalm
2021-06-24  4:24 ` [PR PATCH] [Closed]: " ipkalm
2021-06-24  4:25 ` abenson
2021-06-25 11:55 ` ipkalm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210624041937.pG3i2KO2s15XaH_Ok9laJzexZ1ijA9AJquhARHjucDw@z \
    --to=ipkalm@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).