Install this version:
emerge -a =dev-util/mmdbinspect-2.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/mmdbinspect-2.0.0
Or alternatively:
emerge --autounmask-write -a =dev-util/mmdbinspect-2.0.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo go-module
COMMIT="507c17e7cf266bb47bca4922aa62071cb21f6d06"
DESCRIPTION="Look up records for one or more IPs/networks in one or more .mmdb databases"
HOMEPAGE="https://github.com/maxmind/mmdbinspect"
SRC_URI="https://github.com/maxmind/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/SpiderX/portage-overlay/releases/download/${P}/${P}-deps.tar.xz
test? ( https://github.com/maxmind/MaxMind-DB/archive/${COMMIT}.tar.gz -> ${P}-db.tar.gz )"
LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS=( {CHANGELOG,README}.md )
src_prepare() {
default
if use test ; then
edo rmdir test/data
edo ln -s ../../MaxMind-DB-"${COMMIT}" test/data
fi
}
src_compile() {
ego build ./cmd/mmdbinspect/...
}
src_test() {
ego test -work ./...
}
src_install() {
einstalldocs
dobin mmdbinspect
}
Manage flags for this package:
euse -i <flag> -p dev-util/mmdbinspect |
euse -E <flag> -p dev-util/mmdbinspect |
euse -D <flag> -p dev-util/mmdbinspect
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | mmdbinspect-2.0.0-db.tar.gz | 186613 bytes | https://github.com/maxmind/MaxMind-DB/archive/507c17e7cf266bb47bca4922aa62071cb21f6d06.tar.gz |
| DIST | mmdbinspect-2.0.0-deps.tar.xz | 1102368 bytes | https://github.com/SpiderX/portage-overlay/releases/download/mmdbinspect-2.0.0/mmdbinspect-2.0.0-deps.tar.xz |
| DIST | mmdbinspect-2.0.0.tar.gz | 26084 bytes | https://github.com/maxmind/mmdbinspect/archive/v2.0.0.tar.gz |