mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
geoipgen: added
This commit is contained in:
parent
ef8ebf7695
commit
71d1f7d47f
2 changed files with 37 additions and 0 deletions
2
net-analyzer/geoipgen/Manifest
Normal file
2
net-analyzer/geoipgen/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST geoipgen-0.4.tar.gz 12332 RMD160 8b0f8656f56bc1ebce18d4b1a95f23c258c34cea SHA1 001fdbb64c41155d4416a2bfe9e0a4a2fc346f8e SHA256 b97d378c46c8d7eec969af1eeb0fc11ccda1e1c360df558e358cbf8969c9fbd7
|
||||
EBUILD geoipgen-0.4.ebuild 791 RMD160 5aec16fd4c735a6bfa876c71b71b5fa06916fc57 SHA1 6b99d59ebd6be68f3e2bf43420f1ac7a4de63636 SHA256 0bc6ccf2ee7ab1ad42db6eb42252bc64655f0c3949220bcf2a17a7739a9920c9
|
||||
35
net-analyzer/geoipgen/geoipgen-0.4.ebuild
Normal file
35
net-analyzer/geoipgen/geoipgen-0.4.ebuild
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="Generate a list of hostnames based on country"
|
||||
HOMEPAGE="http://www.morningstarsecurity.com/research/geoipgen"
|
||||
SRC_URI="http://geoipgen.googlecode.com/files/$P.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
Loading…
Reference in a new issue