net-analyzer/geoipgen - 0.4 (pentoo)

Search

Install

Install this version:

emerge -a =net-analyzer/geoipgen-0.4

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

autounmask =net-analyzer/geoipgen-0.4

Or alternatively:

emerge --autounmask-write -a =net-analyzer/geoipgen-0.4

Package Information

Description:
Generate a list of hostnames based on country
Homepage:
https://www.morningstarsecurity.com/research/geoipgen
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
0.4 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Generate a list of hostnames based on country"
HOMEPAGE="https://www.morningstarsecurity.com/research/geoipgen"
SRC_URI="https://www.morningstarsecurity.com/downloads/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="dev-lang/ruby
		 dev-libs/geoip
		 app-arch/unzip"

src_prepare() {
	# fix db path
	sed -i 's|/usr/local/share/|/etc/maxmind/|g' ${PN} || die
	default
}

src_install() {
	dobin ${PN} || die
	dodoc README CHANGELOG TODO || die
}

pkg_postinst() {
	elog "For ${PN} to work you have to download"
	elog "http://www.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip"
	elog "save it to /etc/maxmind and unzip it"
}

Dependencies

RDEPEND

dev-lang/ruby
		 dev-libs/geoip
		 app-arch/unzip

Manifest for 0.4

Type File Size Source URLs
DIST geoipgen-0.4.tar.gz 12332 bytes https://www.morningstarsecurity.com/downloads/geoipgen-0.4.tar.gz