Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64
@ 2022-08-02  4:31 ketlrznt
  2022-08-02  4:38 ` classabbyamp
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/ketlrznt/void-packages master
https://github.com/void-linux/void-packages/pull/38420

New package: v2raya-bin-1.5.8.1_1.x86_64


#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)


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

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

From 78377430e4b5bbf50360ac6db840e60f5e0a3675 Mon Sep 17 00:00:00 2001
From: ketlrznt <tansuanyinliao8888@gmail.com>
Date: Tue, 2 Aug 2022 12:18:59 +0800
Subject: [PATCH] add v2raya

---
 srcpkgs/v2raya-bin/files/v2raya-bin/run |  3 ++
 srcpkgs/v2raya-bin/template             | 42 +++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 srcpkgs/v2raya-bin/files/v2raya-bin/run
 create mode 100644 srcpkgs/v2raya-bin/template

diff --git a/srcpkgs/v2raya-bin/files/v2raya-bin/run b/srcpkgs/v2raya-bin/files/v2raya-bin/run
new file mode 100644
index 000000000000..ad7f4db3f469
--- /dev/null
+++ b/srcpkgs/v2raya-bin/files/v2raya-bin/run
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec /usr/bin/v2raya --log-disable-timestamp
diff --git a/srcpkgs/v2raya-bin/template b/srcpkgs/v2raya-bin/template
new file mode 100644
index 000000000000..09df6a8f27e5
--- /dev/null
+++ b/srcpkgs/v2raya-bin/template
@@ -0,0 +1,42 @@
+# Template file for 'v2raya-bin'
+pkgname=v2raya-bin
+version=1.5.8.1
+revision=1
+archs="x86_64"
+hostmakedepends="tar xz"
+depends="v2ray>=4.37.0-1 iptables"
+short_desc="A web GUI client of Project V which supports various protocols"
+maintainer="ketlrznt <tansuanyinliao8888@gmail.com>"
+license="AGPL-3.0"
+homepage="https://github.com/v2rayA/v2rayA"
+
+
+_v2raya_url="https://apt.v2raya.org/pool/main/v/v2raya"
+_file_name="v2raya_${version}_amd64.deb"
+distfiles="${_v2raya_url}/${_file_name}"
+checksum="aa9276f063ce42a2899cce7d195c555dc87768fc79ae0ea8b5ea75a102b994a4"
+
+do_extract() {
+	mkdir -p ${DESTDIR}
+	ar x ${XBPS_SRCDISTDIR}/v2raya-bin-$version/$_file_name
+}
+
+
+do_install() {
+
+	tar xf data.tar.gz -C ${DESTDIR}
+
+	# set permission
+	# v2ray
+	chmod 755 ${DESTDIR}/usr/bin/v2raya
+	# desktop launcher
+	chmod 644 ${DESTDIR}/usr/share/applications/v2raya.desktop
+	# icon
+	chmod 755 ${DESTDIR}/usr/share/icons/hicolor/512x512/apps/v2raya.png
+}
+
+post_install() {
+	vsv ${pkgname}
+	# remove unused systemd service
+        rm ${DESTDIR}/usr/lib/systemd/user/v2raya-lite.service
+}

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
@ 2022-08-02  4:38 ` classabbyamp
  2022-08-02  4:47 ` ketlrznt
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: classabbyamp @ 2022-08-02  4:38 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202008180

Comment:
why not build from source, [like here](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=v2raya)?

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
  2022-08-02  4:38 ` classabbyamp
@ 2022-08-02  4:47 ` ketlrznt
  2022-08-02  4:48 ` ketlrznt
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:47 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202012877

Comment:
> why not build from source, [like here](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=v2raya)?

@classabbyamp v2raya-git in aur needs several npm dependencies in user host machine, which may be very slow depending on user's Internet accessibility (e.g. Chinese user). So I choose to fetch pre-buil deb file which is stored in a mirror.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
  2022-08-02  4:38 ` classabbyamp
  2022-08-02  4:47 ` ketlrznt
@ 2022-08-02  4:48 ` ketlrznt
  2022-08-02  4:48 ` ketlrznt
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:48 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202012877

Comment:
> why not build from source, [like here](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=v2raya)?

@classabbyamp v2raya-git in aur needs several npm dependencies in user host machine, which may be very slow depending on user's Internet accessibility (e.g. for Chinese user). So I choose to fetch pre-build deb file which is stored in a mirror.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (2 preceding siblings ...)
  2022-08-02  4:48 ` ketlrznt
@ 2022-08-02  4:48 ` ketlrznt
  2022-08-02  4:54 ` ketlrznt
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:48 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202012877

Comment:
> why not build from source, [like here](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=v2raya)?

@classabbyamp v2raya-git in aur needs several npm dependencies in user host machine, which may be very slow depending on user's Internet accessibility (e.g. for Chinese user). So I choose to fetch pre-build deb file which is stored in a mirror.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (3 preceding siblings ...)
  2022-08-02  4:48 ` ketlrznt
@ 2022-08-02  4:54 ` ketlrznt
  2022-08-02  4:55 ` classabbyamp
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  4:54 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202012877

Comment:
> why not build from source, [like here](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=v2raya)?

@classabbyamp v2raya-git in aur need to download several npm dependencies in user host machine, which may be very slow depending on user's Internet accessibility (e.g. for Chinese user). So I choose to fetch pre-build deb file which is stored in a mirror.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (4 preceding siblings ...)
  2022-08-02  4:54 ` ketlrznt
@ 2022-08-02  4:55 ` classabbyamp
  2022-08-02  5:01 ` ketlrznt
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: classabbyamp @ 2022-08-02  4:55 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202016397

Comment:
On void, users don't need to build packages from templates/sources themselves, that's what the builders do. Users would only be downloading the resulting binary package.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (5 preceding siblings ...)
  2022-08-02  4:55 ` classabbyamp
@ 2022-08-02  5:01 ` ketlrznt
  2022-08-02  5:03 ` ketlrznt
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:01 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202019245

Comment:
> On void, users don't need to build packages from templates/sources themselves, that's what the builders do. Users would only be downloading the resulting binary package.

OK. I get your point. I will try to build it from scratch later.

Another problem is I think shipping such software in Void repository may cause legal affairs in some countries (which has Void Linux mirror). it would be better to make it "restricted" and don't distribute it, that's another reason why I choose to use binary file.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (6 preceding siblings ...)
  2022-08-02  5:01 ` ketlrznt
@ 2022-08-02  5:03 ` ketlrznt
  2022-08-02  5:03 ` ketlrznt
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:03 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202019245

Comment:
> On void, users don't need to build packages from templates/sources themselves, that's what the builders do. Users would only be downloading the resulting binary package.

OK. I get your point. I will try to build it from scratch later.

Another problem is I think shipping such software in Void repository may cause legal affairs in some countries (which has Void Linux mirror). it would be better to make it "restricted" and don't distribute it, that's another reason why I choose to use binary file, as user could get the output only from template file.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (7 preceding siblings ...)
  2022-08-02  5:03 ` ketlrznt
@ 2022-08-02  5:03 ` ketlrznt
  2022-08-02  5:03 ` classabbyamp
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:03 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202019245

Comment:
> On void, users don't need to build packages from templates/sources themselves, that's what the builders do. Users would only be downloading the resulting binary package.

OK. I get your point. I will try to build it from scratch later.

Another problem is I think shipping such software in Void repository may cause legal affairs in some countries (which has Void Linux mirror), though its license allows redistributions. it would be better to make it "restricted" and don't distribute it, that's another reason why I choose to use binary file, as user could get the output only from template file.

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (8 preceding siblings ...)
  2022-08-02  5:03 ` ketlrznt
@ 2022-08-02  5:03 ` classabbyamp
  2022-08-02  5:09 ` ketlrznt
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: classabbyamp @ 2022-08-02  5:03 UTC (permalink / raw)
  To: ml

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

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202020669

Comment:
hm well v2ray itself is already in the repos so not sure how that interacts with what you're saying

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (9 preceding siblings ...)
  2022-08-02  5:03 ` classabbyamp
@ 2022-08-02  5:09 ` ketlrznt
  2022-08-02  5:14 ` ketlrznt
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:09 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202023718

Comment:
> hm well v2ray itself is already in the repos so not sure how that interacts with what you're saying

v2ray does exist in repository, In fact I am not sure about its legality. I haven't seen a distro ships v2raya binary file in its officail repository directly. I will contact v2raya's official team to consult this question. One of its developers maintains v2raya-git / v2raya-bin in AUR. Thanks!

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (10 preceding siblings ...)
  2022-08-02  5:09 ` ketlrznt
@ 2022-08-02  5:14 ` ketlrznt
  2022-08-02  5:15 ` ketlrznt
  2022-08-02  5:15 ` [PR PATCH] [Closed]: " ketlrznt
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:14 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202023718

Comment:
> hm well v2ray itself is already in the repos so not sure how that interacts with what you're saying

v2ray does exist in repository, In fact I am not sure about its legality (Chinese government declares personal proxy to bypass GFW is illegal, so I don't think it's appropriate to ship v2raya directly in main repo if taking Chinses users into cosideration). Actually, I haven't seen a distro ships v2raya binary file in its officail repository yet. I will contact v2raya's official team to consult this question. One of its developers maintains v2raya-git / v2raya-bin in AUR. Thanks!

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

* Re: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (11 preceding siblings ...)
  2022-08-02  5:14 ` ketlrznt
@ 2022-08-02  5:15 ` ketlrznt
  2022-08-02  5:15 ` [PR PATCH] [Closed]: " ketlrznt
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:15 UTC (permalink / raw)
  To: ml

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

New comment by ketlrznt on void-packages repository

https://github.com/void-linux/void-packages/pull/38420#issuecomment-1202026675

Comment:
I will temporarily close this pr. Thank you for reviewing!

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

* Re: [PR PATCH] [Closed]: New package: v2raya-bin-1.5.8.1_1.x86_64
  2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
                   ` (12 preceding siblings ...)
  2022-08-02  5:15 ` ketlrznt
@ 2022-08-02  5:15 ` ketlrznt
  13 siblings, 0 replies; 15+ messages in thread
From: ketlrznt @ 2022-08-02  5:15 UTC (permalink / raw)
  To: ml

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

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

New package: v2raya-bin-1.5.8.1_1.x86_64
https://github.com/void-linux/void-packages/pull/38420

Description:


#### Testing the changes
- I tested the changes in this PR: **YES**


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-LIBC)


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

end of thread, other threads:[~2022-08-02  5:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02  4:31 [PR PATCH] New package: v2raya-bin-1.5.8.1_1.x86_64 ketlrznt
2022-08-02  4:38 ` classabbyamp
2022-08-02  4:47 ` ketlrznt
2022-08-02  4:48 ` ketlrznt
2022-08-02  4:48 ` ketlrznt
2022-08-02  4:54 ` ketlrznt
2022-08-02  4:55 ` classabbyamp
2022-08-02  5:01 ` ketlrznt
2022-08-02  5:03 ` ketlrznt
2022-08-02  5:03 ` ketlrznt
2022-08-02  5:03 ` classabbyamp
2022-08-02  5:09 ` ketlrznt
2022-08-02  5:14 ` ketlrznt
2022-08-02  5:15 ` ketlrznt
2022-08-02  5:15 ` [PR PATCH] [Closed]: " ketlrznt

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).