Skip to content

Commit

Permalink
net-proxy/Xray: add 24.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Puqns67 authored and peeweep committed Sep 9, 2024
1 parent 7fecc95 commit 0cf5532
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net-proxy/Xray/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DIST Xray-1.8.24-vendor.tar.xz 3697348 BLAKE2B ac051c45ba0be69cccbb04ac99ea304d36f57bca207c1876e69ae75f51a9298d719b3e46a1a6ba3e79c01609f359599790299f27f70d7736d935fe3e9a38469b SHA512 93b87ca1404b884961f4c2c9c516f3ee3d8584580cf12f45059d54ecccac678dc751e35bdd80bd35462da7bd7a62d020768fe8486972ac6a6516796325f1a52a
DIST Xray-1.8.24.tar.gz 650254 BLAKE2B 7e4e2d5cf680f8218bbec348bba05510f9cda87b5b856b5813dc7639d60936bcf8721cfe13459b70c668e8336a52d23aa2591f34e1975898f1cd54f07e612fe1 SHA512 e37ced125dc1f28d81b29a6af4d2bef0f2724c728edab76a2ea88f5d87764710eaa430d960cdd140fa537bb9484cff0e248dbc989056e06fe16a020ba6c44624
DIST Xray-24.9.7-vendor.tar.xz 3620680 BLAKE2B 7d4b6683d25001ccc575e0d71da51fe543cf2e6cddbfd2c236901f6b550ccceb9a27f9d7df6b47702d5f32a8608ddb1c155cc3d487fca8f9a64b7d21bd04de9b SHA512 aecec787d5a5f8d4b91739248490d0f42ecd0593cd495c0add9dc302a42d3e3460998cc9225a8545240ea530507b17e6eca67dce2c2d443197a0818df87dc284
DIST Xray-24.9.7.tar.gz 630463 BLAKE2B bb8aadf19b59023921b42ad9416edc0c5329d6f273d60f7eb2cf40a161e8b19a8d80b42509fef58634a25bcdca5213000682797b266703ad21898ed05f312580 SHA512 bf2e6725181e9b20efc29197cf9fe78835ed00af04f831205a169f8cd4c546311b78e34bcc8f74b519b4edbf0f3a0c3d27a21411e72bd311c53e25568edab06e
36 changes: 36 additions & 0 deletions net-proxy/Xray/Xray-24.9.7.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 1999-2024 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/Puqns67/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.21.4"

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" [email protected]
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
}

0 comments on commit 0cf5532

Please sign in to comment.