View previous topic :: View next topic |
Author |
Message |
cz0 Guru

Joined: 13 Jun 2005 Posts: 315 Location: /earth/russia/moscow
|
Posted: Sat Mar 08, 2025 8:59 pm Post subject: [SOLVED] Getting xray-core on Gentoo? |
|
|
Hi folks.
I just got my xray server up and running allowing me to circumvent some of ISP-enforced limitations.
But I was surprised that there is no ebuild for xray-core available for Gentoo yet. I know it comes as a precompiled binary installed by a shell script, but it does not seem the right way to bring things to Gentoo.
The only package I found is this everlay: https://gpo.zugaina.org/net-proxy/Xray but the problem is it depends on app-alternatives/v2ray-geoip and alike that are not available anywhere.
Nothing like nekobox or whatever is available also.
Any ideas?
Last edited by cz0 on Wed Mar 12, 2025 10:31 am; edited 1 time in total |
|
Back to top |
|
 |
druggo Guru

Joined: 24 Sep 2003 Posts: 328 Location: Hangzhou
|
Posted: Mon Mar 10, 2025 11:20 am Post subject: |
|
|
Xray and its denpends are all in the gentoo-zh overlay:
Code: | emerge -pv Xray
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-libs/v2ray-geoip-bin-202412120057::gentoo-zh 14,896 KiB
[ebuild N ] dev-libs/v2ray-domain-list-community-bin-20241210004721::gentoo-zh 203 KiB
[ebuild N ] virtual/v2ray-geoip-0::gentoo-zh 0 KiB
[ebuild N ] virtual/v2ray-domain-list-community-0::gentoo-zh 0 KiB
[ebuild N ] app-alternatives/v2ray-geoip-0-r2::gentoo-zh USE="v2fly -loyalsoldier" 0 KiB
[ebuild N ] app-alternatives/v2ray-geosite-0-r2::gentoo-zh USE="v2fly -loyalsoldier" 0 KiB
[ebuild N ] net-proxy/Xray-25.3.6::gentoo-zh 4,272 KiB
|
_________________ AMD FX-8300 / Loongson-2f (lemote-yeeloong) |
|
Back to top |
|
 |
cz0 Guru

Joined: 13 Jun 2005 Posts: 315 Location: /earth/russia/moscow
|
Posted: Wed Mar 12, 2025 10:31 am Post subject: |
|
|
Thank you very much for pointing this out!
So, the complete answer is:
Code: |
emerge app-eselect/eselect-repository
eselect repository enable gentoo-zh
emaint sync -r gentoo-zh
|
Then make /etc/portage/package.accept_keywords/Xray contain something like this:
Code: |
net-proxy/Xray ~amd64
=dev-lang/go-1.24.0 ~amd64
app-alternatives/v2ray-geoip ~amd64
app-alternatives/v2ray-geosite ~amd64
virtual/v2ray-geoip ~amd64
virtual/v2ray-domain-list-community ~amd64
dev-libs/v2ray-geoip-bin ~amd64
dev-libs/v2ray-domain-list-community-bin ~amd64
|
And finally:
Code: |
emerge net-proxy/Xray
|
|
|
Back to top |
|
 |
|