From 169fd5652794df649939ce76b4f89b101668d08b Mon Sep 17 00:00:00 2001 From: zzz Date: Sun, 27 Mar 2016 12:55:28 +0000 Subject: [PATCH] Transport: Include Maxmind geoip-api-java library v1.3.1 (LGPL v2.1) Use Maxmind database for geoip lookup if it exists Debian: Don't bundle geoip.txt and geoipv6.dat.gz, depend on geoip-database instead --- LICENSE.txt | 3 + build.xml | 13 +- debian/control | 4 +- debian/repack.sh | 2 + .../java/src/com/maxmind/geoip/Country.java | 63 ++ .../src/com/maxmind/geoip/DatabaseInfo.java | 128 +++ .../geoip/InvalidDatabaseException.java | 26 + .../java/src/com/maxmind/geoip/Location.java | 62 ++ .../src/com/maxmind/geoip/LookupService.java | 988 ++++++++++++++++++ router/java/src/com/maxmind/geoip/Region.java | 7 + .../java/src/com/maxmind/geoip/package.html | 15 + .../src/net/i2p/router/transport/GeoIP.java | 118 ++- 12 files changed, 1405 insertions(+), 24 deletions(-) create mode 100644 router/java/src/com/maxmind/geoip/Country.java create mode 100644 router/java/src/com/maxmind/geoip/DatabaseInfo.java create mode 100644 router/java/src/com/maxmind/geoip/InvalidDatabaseException.java create mode 100644 router/java/src/com/maxmind/geoip/Location.java create mode 100644 router/java/src/com/maxmind/geoip/LookupService.java create mode 100644 router/java/src/com/maxmind/geoip/Region.java create mode 100644 router/java/src/com/maxmind/geoip/package.html diff --git a/LICENSE.txt b/LICENSE.txt index 99c83c33d..bc8d615ae 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -103,6 +103,9 @@ Public domain except as listed below: http://creativecommons.org/licenses/by-sa/3.0/ This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/ + GeoIP API 1.3.1: + See licenses/LICENSE-LGPLv2.1.txt + Installer: Launch4j 3.0.1: diff --git a/build.xml b/build.xml index ea5426fa0..80a35b55b 100644 --- a/build.xml +++ b/build.xml @@ -699,7 +699,7 @@ windowtitle="I2P Anonymous Network - Java Documentation - Version ${release.number}"> - + @@ -1478,10 +1478,13 @@ - + - - + + + +