net-proxy/Xray - 1.7.2 (touchfish-os)

Search

Package Information

Description:
Xray, Penetrates Everything.
Homepage:
https://github.com/XTLS/Xray-core
License:
MPL-2.0

Ebuild Details

Version EAPI Keywords Slot
1.7.2 8 ~amd64 ~arm ~arm64 ~x86 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module systemd

DESCRIPTION="Xray, Penetrates Everything."
HOMEPAGE="https://github.com/XTLS/Xray-core"

SRC_URI="https://github.com/XTLS/Xray-core/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/CHN-beta/gentoo-go-dep/releases/download/${P}/${P}-deps.tar.xz"
RESTRICT="mirror"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE=""

BDEPEND=">=dev-lang/go-1.16.2 app-arch/unzip"
RDEPEND="app-misc/ca-certificates dev-libs/v2ray-domain-list-community-bin dev-libs/v2ray-geoip-bin"

S="${WORKDIR}/${PN}-core-${PV}"
PATCHES=("${FILESDIR}/Xray-1.5.5-add-v2ray-asset.patch")

src_compile() {
	ego build -o bin/xray ./main
}

src_install() {
	dobin bin/xray

	newinitd "${FILESDIR}/xray.initd" xray
	systemd_dounit "${FILESDIR}/xray.service"
	systemd_newunit "${FILESDIR}/xray_at.service" "xray@.service"

	keepdir /etc/xray
}

Dependencies

RDEPEND

app-misc/ca-certificates dev-libs/v2ray-domain-list-community-bin dev-libs/v2ray-geoip-bin

BDEPEND

>=dev-lang/go-1.16.2 app-arch/unzip

Manifest for 1.7.2

Type File Size Source URLs
DIST Xray-1.7.2-deps.tar.xz 124454524 bytes https://github.com/CHN-beta/gentoo-go-dep/releases/download/Xray-1.7.2/Xray-1.7.2-deps.tar.xz
DIST Xray-1.7.2.tar.gz 576973 bytes https://github.com/XTLS/Xray-core/archive/v1.7.2.tar.gz