# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_P=${P/-/_}

DESCRIPTION="Determine geo information from IP addresses"
HOMEPAGE="http://www.maxmind.com/app/geolitecity"
SRC_URI="http://geolite.maxmind.com/download/geoip/database/${PN}_CSV/${MY_P}.zip"

LICENSE="MaxMind"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=""
DEPEND="app-arch/unzip"

src_install() {
	insinto /usr/share/${PN}
	doins ${MY_P}/${PN}-{Blocks,Location}.csv || die
}