* [PR PATCH] New package: v2ray-4.21.2
@ 2019-10-28 16:40 voidlinux-github
2021-02-15 5:31 ` ericonr
2021-02-15 5:31 ` [PR PATCH] [Closed]: " ericonr
0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-28 16:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 375 bytes --]
There is a new pull request by LinArcX against master on the void-packages repository
https://github.com/LinArcX/void-packages v2ray
https://github.com/void-linux/void-packages/pull/15861
New package: v2ray-4.21.2
Related to: https://github.com/void-linux/void-packages/issues/4646
A patch file from https://github.com/void-linux/void-packages/pull/15861.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-v2ray-15861.patch --]
[-- Type: text/x-diff, Size: 6105 bytes --]
From 4fead3846bb4448650dfa9f66d2c173dbce4132f Mon Sep 17 00:00:00 2001
From: linarcx <linarcx@riseup.net>
Date: Mon, 28 Oct 2019 20:08:28 +0330
Subject: [PATCH] New package: v2ray-4.21.2
---
srcpkgs/v2ray/files/config.json | 142 ++++++++++++++++++++++++++++++++
srcpkgs/v2ray/files/v2ray/run | 2 +
srcpkgs/v2ray/template | 24 ++++++
3 files changed, 168 insertions(+)
create mode 100644 srcpkgs/v2ray/files/config.json
create mode 100755 srcpkgs/v2ray/files/v2ray/run
create mode 100644 srcpkgs/v2ray/template
diff --git a/srcpkgs/v2ray/files/config.json b/srcpkgs/v2ray/files/config.json
new file mode 100644
index 00000000000..e79155d5dfe
--- /dev/null
+++ b/srcpkgs/v2ray/files/config.json
@@ -0,0 +1,142 @@
+// Config file of V2Ray. This file follows standard JSON format, with comments support.
+// Uncomment entries below to satisfy your needs. Also read our manual for more detail at
+// https://www.v2ray.com/
+{
+ "log": {
+ // By default, V2Ray writes access log to stdout.
+ // "access": "/path/to/access/log/file",
+
+ // By default, V2Ray write error log to stdout.
+ // "error": "/path/to/error/log/file",
+
+ // Log level, one of "debug", "info", "warning", "error", "none"
+ "loglevel": "warning"
+ },
+ // List of inbound proxy configurations.
+ "inbounds": [{
+ // Port to listen on. You may need root access if the value is less than 1024.
+ "port": 1080,
+
+ // IP address to listen on. Change to "0.0.0.0" to listen on all network interfaces.
+ "listen": "127.0.0.1",
+
+ // Tag of the inbound proxy. May be used for routing.
+ "tag": "socks-inbound",
+
+ // Protocol name of inbound proxy.
+ "protocol": "socks",
+
+ // Settings of the protocol. Varies based on protocol.
+ "settings": {
+ "auth": "noauth",
+ "udp": false,
+ "ip": "127.0.0.1"
+ },
+
+ // Enable sniffing on TCP connection.
+ "sniffing": {
+ "enabled": true,
+ // Target domain will be overriden to the one carried by the connection, if the connection is HTTP or HTTPS.
+ "destOverride": ["http", "tls"]
+ }
+ }],
+ // List of outbound proxy configurations.
+ "outbounds": [{
+ // Protocol name of the outbound proxy.
+ "protocol": "freedom",
+
+ // Settings of the protocol. Varies based on protocol.
+ "settings": {},
+
+ // Tag of the outbound. May be used for routing.
+ "tag": "direct"
+ },{
+ "protocol": "blackhole",
+ "settings": {},
+ "tag": "blocked"
+ }],
+
+ // Transport is for global transport settings. If you have multiple transports with same settings
+ // (say mKCP), you may put it here, instead of in each individual inbound/outbounds.
+ //"transport": {},
+
+ // Routing controls how traffic from inbounds are sent to outbounds.
+ "routing": {
+ "domainStrategy": "IPOnDemand",
+ "rules":[
+ {
+ // Blocks access to private IPs. Remove this if you want to access your router.
+ "type": "field",
+ "ip": ["geoip:private"],
+ "outboundTag": "blocked"
+ },
+ {
+ // Blocks major ads.
+ "type": "field",
+ "domain": ["geosite:category-ads"],
+ "outboundTag": "blocked"
+ }
+ ]
+ },
+
+ // Dns settings for domain resolution.
+ "dns": {
+ // Static hosts, similar to hosts file.
+ "hosts": {
+ // Match v2ray.com to another domain on CloudFlare. This domain will be used when querying IPs for v2ray.com.
+ "domain:v2ray.com": "www.vicemc.net",
+
+ // The following settings help to eliminate DNS poisoning in mainland China.
+ // It is safe to comment these out if this is not the case for you.
+ "domain:github.io": "pages.github.com",
+ "domain:wikipedia.org": "www.wikimedia.org",
+ "domain:shadowsocks.org": "electronicsrealm.com"
+ },
+ "servers": [
+ "1.1.1.1",
+ {
+ "address": "114.114.114.114",
+ "port": 53,
+ // List of domains that use this DNS first.
+ "domains": [
+ "geosite:cn"
+ ]
+ },
+ "8.8.8.8",
+ "localhost"
+ ]
+ },
+
+ // Policy controls some internal behavior of how V2Ray handles connections.
+ // It may be on connection level by user levels in 'levels', or global settings in 'system.'
+ "policy": {
+ // Connection policys by user levels
+ "levels": {
+ "0": {
+ "uplinkOnly": 0,
+ "downlinkOnly": 0
+ }
+ },
+ "system": {
+ "statsInboundUplink": false,
+ "statsInboundDownlink": false
+ }
+ },
+
+ // Stats enables internal stats counter.
+ // This setting can be used together with Policy and Api.
+ //"stats":{},
+
+ // Api enables gRPC APIs for external programs to communicate with V2Ray instance.
+ //"api": {
+ //"tag": "api",
+ //"services": [
+ // "HandlerService",
+ // "LoggerService",
+ // "StatsService"
+ //]
+ //},
+
+ // You may add other entries to the configuration, but they will not be recognized by V2Ray.
+ "other": {}
+}
diff --git a/srcpkgs/v2ray/files/v2ray/run b/srcpkgs/v2ray/files/v2ray/run
new file mode 100755
index 00000000000..a8a6d65c016
--- /dev/null
+++ b/srcpkgs/v2ray/files/v2ray/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec v2ray -config /etc/v2ray/config.json
diff --git a/srcpkgs/v2ray/template b/srcpkgs/v2ray/template
new file mode 100644
index 00000000000..8b7de626edd
--- /dev/null
+++ b/srcpkgs/v2ray/template
@@ -0,0 +1,24 @@
+# Template file for 'v2ray'
+pkgname=v2ray
+version=4.21.2
+revision=1
+build_style=fetch
+hostmakedepends="unzip"
+short_desc="Platform for building proxies to bypass network restrictions"
+maintainer="linarcx <linarcx@gmail.com>"
+license="MIT"
+homepage="https://github.com/v2ray/v2ray-core/"
+distfiles="${homepage}/releases/download/v${version}/${pkgname}-linux-64.zip"
+checksum=b0ce58976902092932afd26f894cabf0d47a48e32fed484a25d4f809e5611e8b
+
+do_install() {
+ unzip v2ray-linux-64.zip -d v2ray-linux-64
+ cd v2ray-linux-64
+
+ vbin v2ray
+ vbin v2ctl
+ vbin geoip.dat
+ vbin geosite.dat
+ vinstall ${FILESDIR}/config.json 644 etc/v2ray
+ vsv v2ray
+}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New package: v2ray-4.21.2
2019-10-28 16:40 [PR PATCH] New package: v2ray-4.21.2 voidlinux-github
@ 2021-02-15 5:31 ` ericonr
2021-02-15 5:31 ` [PR PATCH] [Closed]: " ericonr
1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-02-15 5:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/pull/15861#issuecomment-778952644
Comment:
Closing due to inactivity, feel free to reopen.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Closed]: New package: v2ray-4.21.2
2019-10-28 16:40 [PR PATCH] New package: v2ray-4.21.2 voidlinux-github
2021-02-15 5:31 ` ericonr
@ 2021-02-15 5:31 ` ericonr
1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-02-15 5:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 226 bytes --]
There's a closed pull request on the void-packages repository
New package: v2ray-4.21.2
https://github.com/void-linux/void-packages/pull/15861
Description:
Related to: https://github.com/void-linux/void-packages/issues/4646
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-15 5:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 16:40 [PR PATCH] New package: v2ray-4.21.2 voidlinux-github
2021-02-15 5:31 ` ericonr
2021-02-15 5:31 ` [PR PATCH] [Closed]: " ericonr
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).