net-firewall/nftables-geoip - 20260202 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =net-firewall/nftables-geoip-20260202

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-firewall/nftables-geoip-20260202

Or alternatively:

emerge --autounmask-write -a =net-firewall/nftables-geoip-20260202

Package Information

Description:
Generates nftables maps of geolocation IP address blocks.
Homepage:
https://github.com/pvxe/nftables-geoip
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
20260202 8 ~amd64 0
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PYTHON_COMPAT=( python3_1{0,1,2,3,4,5} )
inherit python-r1

DESCRIPTION="Generates nftables maps of geolocation IP address blocks."
HOMEPAGE="https://github.com/pvxe/nftables-geoip"
SHA="87239547814b242f9ae61c7ecfcc3487d35f7e9c"
SRC_URI="https://github.com/pvxe/nftables-geoip/archive/${SHA}.tar.gz -> ${P}-${SHA:0:7}.tar.gz"
S="${WORKDIR}/${PN}-${SHA}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
	${PYTHON_DEPS}"
DEPEND="${RDEPEND}"

src_prepare() {
	sed -re "s|^DEFAULT_FILE_LOCATION =.*|DEFAULT_FILE_LOCATION = '/usr/share/${PN}/location.csv'|" \
		-i nft_geoip.py
	default
}

src_install() {
	python_foreach_impl python_newscript nft_geoip.py nft-geoip
	insinto "/usr/share/${PN}"
	doins location.csv
	einstalldocs
}

Inherited Eclasses

Dependencies

DEPEND

dev-python/requests[]
	

RDEPEND

dev-python/requests[]
	

Manifest for 20260202

Type File Size Source URLs
DIST nftables-geoip-20260202-8723954.tar.gz 18445 bytes https://github.com/pvxe/nftables-geoip/archive/87239547814b242f9ae61c7ecfcc3487d35f7e9c.tar.gz