net-proxy/v2ray-bin - 5.52.0 (ruizhi-overlay)

Search

Notice: This package is in a virtual group: virtual/v2ray
Equivalents: net-proxy/v2ray

Install

Install this version:

emerge -a =net-proxy/v2ray-bin-5.52.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-proxy/v2ray-bin-5.52.0

Or alternatively:

emerge --autounmask-write -a =net-proxy/v2ray-bin-5.52.0

Package Information

Description:
A platform for building proxies to bypass network restrictions
Homepage:
https://www.v2fly.org https://github.com/v2fly/v2ray-core
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
5.52.0 8 -* ~amd64 0
View Raw Ebuild
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit systemd

DESCRIPTION="A platform for building proxies to bypass network restrictions"
HOMEPAGE="
	https://www.v2fly.org
	https://github.com/v2fly/v2ray-core
"
SRC_URI="
	amd64? ( https://github.com/v2fly/v2ray-core/releases/download/v${PV}/v2ray-linux-64.zip -> v2ray-${PV}-linux-64.zip )
	x86? ( https://github.com/v2fly/v2ray-core/releases/download/v${PV}/v2ray-linux-32.zip -> v2ray-${PV}-linux-32.zip )
	arm? (
		https://github.com/v2fly/v2ray-core/releases/download/v${PV}/v2ray-linux-arm32-v7a.zip -> v2ray-${PV}-linux-arm.zip
	)
	arm64? (
		https://github.com/v2fly/v2ray-core/releases/download/v${PV}/v2ray-linux-arm64-v8a.zip -> v2ray-${PV}-linux-arm64.zip
	)
"

S="${WORKDIR}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64"

DEPEND="
	app-alternatives/v2ray-geoip
	app-alternatives/v2ray-geosite
"
RDEPEND="
	!net-proxy/v2ray
	${DEPEND}
"
BDEPEND="app-arch/unzip"
RESTRICT="strip mirror"
QA_PREBUILT="
	/usr/bin/v2ray
"

src_install() {
	dobin v2ray

	insinto /etc/v2ray
	doins *.json

	sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' systemd/system/*.service || die
	sed -i '/^User=/s/nobody/v2ray/;/^User=/aDynamicUser=true' systemd/system/*.service || die

	newinitd "${FILESDIR}/v2ray.initd-r1" v2ray
	systemd_dounit systemd/system/v2ray.service
	systemd_dounit systemd/system/v2ray@.service
}

Inherited Eclasses

Dependencies

DEPEND

	app-alternatives/v2ray-geoip
	app-alternatives/v2ray-geosite

RDEPEND

	!net-proxy/v2ray
	
	app-alternatives/v2ray-geoip
	app-alternatives/v2ray-geosite

BDEPEND

app-arch/unzip

Manifest for 5.52.0

Type File Size Source URLs
DIST v2ray-5.52.0-linux-32.zip 18234594 bytes https://github.com/v2fly/v2ray-core/releases/download/v5.52.0/v2ray-linux-32.zip
DIST v2ray-5.52.0-linux-64.zip 19223970 bytes https://github.com/v2fly/v2ray-core/releases/download/v5.52.0/v2ray-linux-64.zip
DIST v2ray-5.52.0-linux-arm.zip 18138223 bytes https://github.com/v2fly/v2ray-core/releases/download/v5.52.0/v2ray-linux-arm32-v7a.zip
DIST v2ray-5.52.0-linux-arm64.zip 17782849 bytes https://github.com/v2fly/v2ray-core/releases/download/v5.52.0/v2ray-linux-arm64-v8a.zip