Install this version:
emerge -a =dev-libs/sing-geosite-20231015073627
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/sing-geosite-20231015073627
Or alternatively:
emerge --autounmask-write -a =dev-libs/sing-geosite-20231015073627
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 20231015073627 | 8 | ~amd64 | 0 |
EAPI=8
inherit go-module
DESCRIPTION="sing-geoip database"
HOMEPAGE="https://github.com/IllyaTheHath/sing-geosite"
LICENSE="GPL-3 BSD-3 MIT Apache-2 ISC"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
dev-lang/go
"
GEOSITE_VER="20231017"
SRC_URI="
https://github.com/IllyaTheHath/sing-geosite/archive/refs/tags/${GEOSITE_VER}.tar.gz -> ${PN}.tar.gz
https://github.com/v2fly/domain-list-community/releases/download/${PV}/dlc.dat
"
SRC_URI+="
https://github.com/IllyaTheHath/gentoo-overlay/releases/download/${P}/${P}-deps.tar.xz -> ${P}-deps.tar.xz
"
S="${WORKDIR}/${PN}-${GEOSITE_VER}"
src_unpack() {
go-module_src_unpack
cp ${DISTDIR}/dlc.dat ${S}
}
src_compile() {
ego run . ${S}/dlc.dat ${S}/geosite.db
}
src_install() {
insinto /usr/share/${PN}
doins geosite.db
}
dev-lang/go
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | dlc.dat | 1604623 bytes | https://github.com/v2fly/domain-list-community/releases/download/20231015073627/dlc.dat |
| DIST | sing-geosite.tar.gz | 6607 bytes | https://github.com/IllyaTheHath/sing-geosite/archive/refs/tags/20231017.tar.gz |