1
0

net-proxy/v2ray: add 5.6.0, 5.7.0

This commit is contained in:
Puqns67 2023-06-16 15:52:10 +08:00
parent e8dc71a2ca
commit 8b41b5d7ed
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
3 changed files with 98 additions and 3 deletions

View File

@ -1,5 +1,6 @@
AUX v2ray.initd 829 BLAKE2B 50ca3f76aad7f9ecdc6df7f9a17464747d90e235ca91b93399393d705d5b61ce91405e2ab433d8f901a4c81e4ff13952d71bfe3debeeee451d6eac5fef80ae5b SHA512 d2a28766851063ffb418d6fadb0a9968d178765a38182d221c0f298366e513587da76a58e8fcc132ac2e6d39dfe6c53b810a72e6f6aff48199c7ed467ef92bd8
AUX v2ray.initd-r1 832 BLAKE2B 2aa5889f64e1d2f302df87746a8178d438ef0015649945937fe798f8ef9ea7e07316a68341633260a25984dc559d4c18cba0ff078b538bd78f88a624a0a73cfa SHA512 ffa322cbc3382e925a294bf092d9262dee29cf30debcec3ae66df351396104e05665856ec9336483ee51c02b5f69d0f3ee3dd33719421345bcd1f57d0c690c6d
DIST v2ray-5.5.0-deps.tar.xz 128767504 BLAKE2B 8f7d4c99a229280ebbbfb611f9b770257a4d51f2865931d952de257e5065ac21cb6cbd120a22a8b7bbc249de6f23baeb44e5f7b16206a8804a1c45fed1b21aba SHA512 e22577642090c4852885b5184ccb5a368086ead9d083282e7ee5ed32d8b741bfeba9a96eac9cfb8988f2099f98ccce31aed4d67590b70603853104c57304c0a7 DIST v2ray-5.5.0-deps.tar.xz 128767504 BLAKE2B 8f7d4c99a229280ebbbfb611f9b770257a4d51f2865931d952de257e5065ac21cb6cbd120a22a8b7bbc249de6f23baeb44e5f7b16206a8804a1c45fed1b21aba SHA512 e22577642090c4852885b5184ccb5a368086ead9d083282e7ee5ed32d8b741bfeba9a96eac9cfb8988f2099f98ccce31aed4d67590b70603853104c57304c0a7
DIST v2ray-5.5.0.tar.gz 971167 BLAKE2B db6ea1db079e2bbd626e7d65785ec3bf5d37a83affea3a07725c3aef8248370e38e000aba5e3a5ffc6db18c8887b9756315d970dfa4902c576e31bec5fd60763 SHA512 b09dc38f6a33409cd819f64ea76539a5930c6b50f9f37ed38a9e82def21a8d010459acab5581717856a0adf392696392a51fe0dba974fac8d7cd086834701b1a DIST v2ray-5.5.0.tar.gz 971167 BLAKE2B db6ea1db079e2bbd626e7d65785ec3bf5d37a83affea3a07725c3aef8248370e38e000aba5e3a5ffc6db18c8887b9756315d970dfa4902c576e31bec5fd60763 SHA512 b09dc38f6a33409cd819f64ea76539a5930c6b50f9f37ed38a9e82def21a8d010459acab5581717856a0adf392696392a51fe0dba974fac8d7cd086834701b1a
EBUILD v2ray-5.5.0.ebuild 1315 BLAKE2B b78f0c7c3fd908676652522e1aa2c6005219d2b8b794f59af713eb86daddbbe1d2adf28cf5b8fe179e9f4921265ab02c611fc43e89147018dbd5758900ba0878 SHA512 bb4b48285ed3565afe5626923c3f1002cd755f50e145c77fb0050ab7137b7cf2ba9314ff6f06d6f54dfb2501eb3c0aa54209963b8746440011f03918f421a7e0 DIST v2ray-5.6.0-deps.tar.xz 128853104 BLAKE2B aaf68f5e5ffffb6adc37456c02ffae897bb9c44a9238f721208ca4bef691eb525ead53134d831c03888599c0bf36ec3aa82f5a49fce18b214e90c46600a52e35 SHA512 b2734d09a6674f3a7dbdb566f9c197f8df32195ea3b9ebd6f23162b7d8c6e3c65d84abda64740ac00f7c7f90c18c4721850986758fe3d7e788483bccaf587314
DIST v2ray-5.6.0.tar.gz 972240 BLAKE2B ccc34236f795e577e33209d3cf7cf46f1c9341a96ae87f26794c6cbe9574dad5ddb621b19c83cb83452f2d6b40f79e3b478fe2459b61db8d33cf17aac53ec56c SHA512 bdf34dd2227c2860b42eb305b588064d8514c341f81f64ea57f03f3898d7974985c908bec8553283ea663ee17bac21574232396389bfb1af34d083ac2205069a
DIST v2ray-5.7.0-deps.tar.xz 129618072 BLAKE2B a5c6806378d4793436bd8f0998e2e65c27d0ba0ab3d35382c5846ccee7a21f901e7ecf8ed97225515f2dd86262c6e77f69409f4a218181184fb3e80fa5c67dfe SHA512 1ed9e2ea2c8e406ba5441b4a09cf878b1871a7bdfee216839c1a65e5d09eca554bfebcd8ed9a16d3963b35f3fee298eac2ff97904b09b75439a9d0be63894f3d
DIST v2ray-5.7.0.tar.gz 987071 BLAKE2B 6784e1f2753060cd753e575abf803271e4fa04e99f2245be2055b2382177116e8179aa9f88df6832906c3d1940c08ae3f922525bf6724a4d401c3f4a8fd7bbcf SHA512 7e75c5eb7116129e06437d46d7cc6daed6cc7607b090358df8d6079435fb6284031c36ea8d8b5651bded9d87efe307225c3272dcde6ebc4fc2a10d9ddf683e33

View File

@ -0,0 +1,47 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd go-module
DESCRIPTION="A platform for building proxies to bypass network restrictions."
HOMEPAGE="https://www.v2fly.org/"
SRC_URI="https://github.com/v2fly/v2ray-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/Puqns67/gentoo-deps/releases/download/${P}/${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}
!net-proxy/v2ray-bin
dev-libs/v2ray-geoip-bin
dev-libs/v2ray-domain-list-community-bin"
BDEPEND="dev-lang/go"
S="${WORKDIR}/${PN}-core-${PV}"
src_prepare() {
sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' release/config/systemd/system/*.service || die
sed -i '/^User=/s/nobody/v2ray/;/^User=/aDynamicUser=true' release/config/systemd/system/*.service || die
default
}
src_compile() {
ego build -v -work -o "bin/v2ray" -trimpath -ldflags "-s -w" ./main
}
src_install() {
dobin bin/v2ray
insinto /etc/v2ray
doins release/config/*.json
newinitd "${FILESDIR}/v2ray.initd-r1" v2ray
systemd_newunit release/config/systemd/system/v2ray.service v2ray.service
systemd_newunit release/config/systemd/system/v2ray@.service v2ray@.service
}

View File

@ -0,0 +1,47 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd go-module
DESCRIPTION="A platform for building proxies to bypass network restrictions."
HOMEPAGE="https://www.v2fly.org/"
SRC_URI="https://github.com/v2fly/v2ray-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/Puqns67/gentoo-deps/releases/download/${P}/${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}
!net-proxy/v2ray-bin
dev-libs/v2ray-geoip-bin
dev-libs/v2ray-domain-list-community-bin"
BDEPEND="dev-lang/go"
S="${WORKDIR}/${PN}-core-${PV}"
src_prepare() {
sed -i 's|/usr/local/bin|/usr/bin|;s|/usr/local/etc|/etc|' release/config/systemd/system/*.service || die
sed -i '/^User=/s/nobody/v2ray/;/^User=/aDynamicUser=true' release/config/systemd/system/*.service || die
default
}
src_compile() {
ego build -v -work -o "bin/v2ray" -trimpath -ldflags "-s -w" ./main
}
src_install() {
dobin bin/v2ray
insinto /etc/v2ray
doins release/config/*.json
newinitd "${FILESDIR}/v2ray.initd-r1" v2ray
systemd_newunit release/config/systemd/system/v2ray.service v2ray.service
systemd_newunit release/config/systemd/system/v2ray@.service v2ray@.service
}