Install this version:
emerge -a =dev-libs/v2ray-rules-dat-bin-202603102222
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/v2ray-rules-dat-bin-202603102222
Or alternatively:
emerge --autounmask-write -a =dev-libs/v2ray-rules-dat-bin-202603102222
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Enhanced edition of V2Ray rules dat files."
HOMEPAGE="https://github.com/Loyalsoldier/v2ray-rules-dat"
SRC_URI="
geosite? ( https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geosite.dat -> ${P}-geosite.dat )
geoip? ( https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geoip.dat -> ${P}-geoip.dat )
"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
IUSE="+geosite +geoip"
REQUIRED_USE="|| ( geosite geoip )"
src_install() {
if use geosite; then
insinto /usr/share/geosite/
newins "${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
fi
if use geosite; then
insinto /usr/share/geoip/
newins "${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat
fi
}
Manage flags for this package:
euse -i <flag> -p dev-libs/v2ray-rules-dat-bin |
euse -E <flag> -p dev-libs/v2ray-rules-dat-bin |
euse -D <flag> -p dev-libs/v2ray-rules-dat-bin
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | v2ray-rules-dat-bin-202603102222-geoip.dat | 19775916 bytes | https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/202603102222/geoip.dat |
| DIST | v2ray-rules-dat-bin-202603102222-geosite.dat | 10442073 bytes | https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/202603102222/geosite.dat |