summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-07-06 14:29:45 +0000
committerJeroen Roovers <jer@gentoo.org>2011-07-06 14:29:45 +0000
commit29b3c45b2e0cb21eec082e7d358c62f90ecfa7b9 (patch)
treeabbe5a72109cc0470c31a9ae8d0a842c59ba0f9f /dev-libs/geoip
parentBased on 2.6.39.2 + genpatches-2.6.39-4 + grsecurity-2.2.2-2.6.39.2-201107011911 (diff)
downloadgentoo-2-29b3c45b2e0cb21eec082e7d358c62f90ecfa7b9.tar.gz
gentoo-2-29b3c45b2e0cb21eec082e7d358c62f90ecfa7b9.tar.bz2
gentoo-2-29b3c45b2e0cb21eec082e7d358c62f90ecfa7b9.zip
Version bump.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/geoip')
-rw-r--r--dev-libs/geoip/ChangeLog7
-rw-r--r--dev-libs/geoip/geoip-1.4.8.ebuild58
2 files changed, 64 insertions, 1 deletions
diff --git a/dev-libs/geoip/ChangeLog b/dev-libs/geoip/ChangeLog
index c78184bd8ced..a431522370cc 100644
--- a/dev-libs/geoip/ChangeLog
+++ b/dev-libs/geoip/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/geoip
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.117 2011/06/16 14:59:15 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.118 2011/07/06 14:29:45 jer Exp $
+
+*geoip-1.4.8 (06 Jul 2011)
+
+ 06 Jul 2011; Jeroen Roovers <jer@gentoo.org> +geoip-1.4.8.ebuild:
+ Version bump.
*geoip-1.4.7-r1 (16 Jun 2011)
diff --git a/dev-libs/geoip/geoip-1.4.8.ebuild b/dev-libs/geoip/geoip-1.4.8.ebuild
new file mode 100644
index 000000000000..0b0be6ae74bf
--- /dev/null
+++ b/dev-libs/geoip/geoip-1.4.8.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.4.8.ebuild,v 1.1 2011/07/06 14:29:45 jer Exp $
+
+EAPI=4
+
+inherit autotools autotools-utils
+
+MY_P=${P/geoip/GeoIP}
+
+DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
+HOMEPAGE="http://www.maxmind.com/geoip/api/c.shtml"
+SRC_URI="
+ http://www.maxmind.com/download/geoip/api/c/${MY_P}.tar.gz
+ ipv6? ( http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz )
+"
+
+# GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
+LICENSE="LGPL-2.1 GPL-2 MaxMind2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6 perl-geoipupdate static-libs"
+
+RDEPEND="
+ perl-geoipupdate? (
+ dev-perl/PerlIO-gzip
+ dev-perl/libwww-perl
+ )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e "s:usr local share GeoIP:usr share GeoIP:" \
+ -e "s:usr local etc:etc:" \
+ -i apps/geoipupdate-pureperl.pl || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use perl-geoipupdate && dobin apps/geoipupdate-pureperl.pl
+ dodoc AUTHORS ChangeLog README TODO conf/GeoIP.conf.default
+ rm "${ED}/etc/GeoIP.conf.default"
+ use static-libs || remove_libtool_files
+
+ if use ipv6; then
+ insinto /usr/share/GeoIP
+ doins "${WORKDIR}/GeoIPv6.dat" || die
+ fi
+
+ dosbin "${FILESDIR}/geoipupdate.sh"
+}