Merge updates from master

This commit is contained in:
Repository mirror & CI 2025-03-31 13:05:07 +00:00
commit 47f0e4ad58
2 changed files with 38 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST Xray-25.3.31-vendor.tar.xz 3757672 BLAKE2B 4cbc36c2c27c729b1d388a40133cbb82a89877b52f3db4d9dafe9305537565201a5220d5ce8f751b54f161038bf4d7ac0ba0ec0d947bac2b4fde4b8c59877125 SHA512 111e8f5eba2477cff6803ece1a7525a37ad9d9dcb5bde4a532fdc398e544887102866e2b20cae040056d808d2ba931ea69053bd73d322090daf9c82389f74b47
DIST Xray-25.3.31.tar.gz 636255 BLAKE2B 1db4df1757cc60157087b0e2b8de12adb42679617a40ab9ebfd2a016cdd750421191194f64ab0de3b5a9e15aedd459fa59e6f19cccb5ce42fb64af88d10d48b1 SHA512 852df3c7ce8a9f4c8eabe91caa29abd8bc272bfd5f5eadbd193f14b5e170a3622f895976a2667b2720fddea115fbf58e586e9615367779d430dc9c27c9049b6a
DIST Xray-25.3.6-vendor.tar.xz 3740384 BLAKE2B bb07e05e4e235a5554475b42aeb157deeff19849f25ecb17e16b10875f53126bbc00c2b22266309a1b89e00de454e09ec5198bcce1ef2f67f35e07ae91c7168f SHA512 68e4e440ff3fd547302e977a03e8fe41c9b65541e65d200d8a60bd06ab542c2b0aa058fb13ac2f5596c89fcb4b37076d03ff0c92c324850d41476b8a9a69d151
DIST Xray-25.3.6.tar.gz 633356 BLAKE2B bd3f5c249787ea64489cf65e9889a66f7306f23909fa67e8cfb6cd801ae9c88eb5a1ad946935670be78e790b79140ab3f90616727f7aa36f30f31effd9756b3e SHA512 bb349c38db4714c9535b6fc50ab8b4a7e19511468522a326fabae53ddcff5077d313428c47207ae105ee9028642c625243ea0c1d7c6c899839308b301728a13f

View File

@ -0,0 +1,36 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd
DESCRIPTION="Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support."
HOMEPAGE="https://xtls.github.io/ https://github.com/XTLS/Xray-core"
SRC_URI="https://github.com/XTLS/Xray-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz"
S="${WORKDIR}/${PN}-core-${PV}"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
DEPEND="app-alternatives/v2ray-geoip
app-alternatives/v2ray-geosite"
RDEPEND="${DEPEND}"
BDEPEND=">=dev-lang/go-1.24"
src_compile() {
ego build -o xray -trimpath -ldflags "-w -s -X 'github.com/XTLS/Xray-core/core.build=${PV}'" ./main
}
src_install() {
dobin xray
newinitd "${FILESDIR}/xray.initd" xray
systemd_dounit "${FILESDIR}/xray.service"
systemd_newunit "${FILESDIR}/xray_at.service" xray@.service
dosym -r /usr/share/v2ray/geosite.dat /usr/share/xray/geosite.dat
dosym -r /usr/share/v2ray/geoip.dat /usr/share/xray/geoip.dat
keepdir /etc/xray
}