1.51 2017-10-11
- Added the following missing methods for IPv6 lookups to the pure Perl
implementation: name_by_addr_v6, name_by_name_v6, org_by_addr_v6, and
org_by_name_v6. Reported by Earl Killian. GitHub #28.
----------------------------
1.50 2016-07-21
- MYMETA files are now no longer included in releases.
- Geo::Mirror is no longer included in this distribution.
-------------------
1.45 2014-09-29
* Fixed typo in 1.44 release notes.
* Replaced `use vars` with `our`.
1.44 2014-09-29
- On installation, this API will now default to the pure Perl version rather
than failing if libGeoIP is not found. (GitHub #6, #11)
- Add support for GEOIP_SILENCE ( Philip Prindeville )
- Unit tests for different databases were added.
1.43 2013-12-02
- Update FIPS codes ( Boris Zentner )
- Fix test case ( Boris Zentner )
- Update time zones ( Boris Zentner )
1.42 2013-06-06
- Fix testcase any CAPI >= 1.5.0 should work ( Boris Zentner )
- Add new pure perl region code TH 81 Bueng Kan ( Boris Zentner )
1.41 2013-02-20
- Add South Sudan ( Boris Zentner )
- Doc fixes ( Tina Mueller )
- Update FIPS Codes ( Boris Zentner )
- Update PurePerl country list. ( Boris Zentner )
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package
Like last time, where this caused no complaints.
Changes from previous:
----------------------
1.40 Aug 23th 2011
- Add new CAPI method region_name_by_code ( Boris Zentner )
- Add support for GEOIP_NETSPEED_EDITION_REV1 ( Boris Zentner )
- Add new CAPI method record_by_ipnum_v6 ( Boris Zentner )
- Add new CAPI glue methods to use GeoIPCityv6 databases
record_by_addr_v6 record_by_name_v6 ( Boris Zentner )
1.39 May 7th 2011
- Upd Docs ( Boris Zentner )
- Add glue for the CAPI lib_version method ( Boris Zentner )
- Add CAPI glue for the methods enable_teredo and teredo.
currently only avail in conjunction with the CAPI ( Boris Zentner )
- Add example/benchmark.pl and example/country_v6.pl ( Boris Zentner )
- Add name_by_name and name_by_addr ( Boris Zentner )
- Add org_by_name_v6 and org_by_addr_v6 only XS ( Boris Zentner )
- Add name_by_ipnum_v6, name_by_name_v6 and name_by_addr_v6 XS glue ( Boris Zentner )
- Add sub Geo::IP::CLONE_SKIP {1} in conjunction with .xs Avoid thread
issues ( Boris Zentner )
- Export GEOIP_DOMAIN_EDITION by default ( Boris Zentner )
- Update region codes 20100810 ( Boris Zentner )
- Fix some PP 3letter country codes ( Boris Zentner )
- Fix PP continent codes ( Boris Zentner )
- Add PP continent_code_by_country_code ( Boris Zentner )
- Add PP Geo::IP->time_zone ( Boris Zentner )
- Update region codes 20100420 ( Boris Zentner )
- Link at least to CAPI 1.4.7 ( Boris Zentner )
- Add example/geolite-mirror-simple.pl to download maxmind databases ( Boris Zentner )
- Update region codes ( Boris Zentner )
- Update timezones ( Boris Zentner )
- Add isp_by_name and isp_by_addr if the CAPI is used ( Boris Zentner )
- Add isp_by_addr and org_by_addr to the PurePerl API ( Boris Zentner )
- Add api method, so users know if they use the PurePerl or CAPI glue
print Geo::IP->api ( Boris Zentner )
- Silence redefined warning, when perl is started with -w and the
PurePerl API is used ( Boris Zentner )
- Export GEOIP_CITYCONFIDENCE_EDITION, GEOIP_LOCATIONA_EDITION,
GEOIP_ACCURACYRADIUS_EDITION and GEOIP_COUNTRY_EDITION_V6 ( Boris Zentner )
- Add some more v6 XS glue. IPv6 support require the CAPI to work.
GeoIP_country_code_by_addr_v6
GeoIP_country_code_by_name_v6
GeoIP_country_code3_by_addr_v6
GeoIP_country_code3_by_name_v6
( Boris Zentner )
! Change RU's continent code from AS to EU ( Boris Zentner )
! Change Turkey's continent code from AS to EU ( Boris Zentner )
! org_by_* and friends return UTF8 scalars, if the charset is set to GEOIP_CHARSET_UTF8 ( Boris Zentner )
- Add PP ASNum support ( Boris Zentner )
- Add XS glue for time_zone and continent_code_by_country_code ( Boris Zentner )
- Add glue for database_edition ( Boris Zentner )
- Workaround centos/mod_perl issue when the PP fallback is used and
Sys::Mmap is not installed ( Boris Zentner )
- Update PurePerl region names 20090723 ( Boris Zentner )
- Add XS glue for GeoIP_country_code_by_ipnum_v6 ( Boris Zentner )
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.
sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
- added license term
ChangeLog:
1.38 May 16th 2009
- PurePerl region_by_addr and region_by_name return '00' for unknown regions, like the CAPI does ( Boris Zentner )
- Update to latest FIPS codes from 20090401 ( Boris Zentner )
- Fix Pureperl handling of GEOIP_REGION_EDITION_REV0 ( Boris Zentner )
- Fix segfault when undef is supplied as filename to open ( Boris Zentner )
- Fix PP GEOIP_ISP_EDITION handling ( Boris Zentner )
- Add PP support for GEOIP_DOMAIN_EDITION ( Boris Zentner )
- Handle database types in the same way, as the CAPI does ( Boris Zentner )
- Remove Australia double timezones entries. ( Boris Zentner )
1.37 March 6th 2009
- Document region_by_addr and region_by_name ( Boris Zentner )
- region_by_addr and region_by_name return undef for unknown countries and regions. Instead of "\0" and '000' ( Boris Zentner )
- Add PP function region_by_addr ( Boris Zentner )
- Change the default values of Geo::IP::Record fields for metro_code and area_code to 0 instead of '' PurePerl only ( Boris Zentner )
- Change the default values of Geo::IP::Record fields for region, postal_code and region_name to undef instead of '' ( Boris Zentner )
- Force the output of Geo::IP::Record::longitude and ::latitude to four decimal places ( Boris Zentner )
- Fix PurePerl three letter code for Romania ( Boris Zentner )
- Update PurePerl regionnames 20090201 ( Boris Zentner )
- Update PurePerl timezones 20090201 ( Boris Zentner )
- Update timezones for Australia
! Fix: PurePerl's get_city_record_as_hash, record_by_addr and record_by_name to return undef for private and unknown IP's. Former we returned a Geo::IP::Record object with everything undef. The PurePerl code and the CAPI wrapper are now behave the same. ( Boris Zentner )
- Update region codes from http://www.maxmind.com/app/fips10_4 Dec 17th, 2008 ( Boris Zentner )
Upstream changes:
1.36 December 20th 2008
- Add the methodes charset and set_charset to the pureperl fallback ( Boris Zentner )
- Fix: We require CAPI 1.4.5 not 1.4.4 for range_by_ip ( Boris Zentner )
- Add isp_by_addr and org_by_addr to the pureperl fallback ( Boris Zentner )
Upstream changes:
1.35 September 29th 2008
- Add GEOIP_DOMAIN_EDITION for the PurePerl ( Boris Zentner )
- Add open_type method to the PurePerl fallback ( Boris Zentner )
- Add CAPI Version detection, for the case, where a outdated
CAPI is installed. ( Boris Zentner )
- Add metro_code, a replacement for the depreciated dma_code
method. ( Boris Zentner )
- Add range_by_ip, netmask and last_netmask to the PurePerl
API ( Boris Zentner )
- Add range_by_ip to the C API wrapper ( Boris Zentner )
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
Pkgsrc changes:
o Add a commented-out HOMEPAGE using search.cpan.org
Upstream changes:
1.34 August 4th 2008
- Add Geo::IP::Record::region_name to the PurePerl API (Boris Zentner)
- Add missing record_by_name function to the PurePerl API
(Boris Zentner)
- Add missing country/country code 'Other' for the pureperl
fallback (Boris Zentner)
- Fix trash of $_ in Geo::Mirror (Boris Zentner)
- Geo::Mirror die, if open failed (Boris Zentner)
- Fix pureperl time_zone for countries with region codes,
but only one time_zone (Boris Zentner)
- Add continent_code to the pureperl and C API (Boris Zentner)
- minimum perl version is 5.6 now (Boris Zentner)
Pkgsrc changes:
- none
Changes since version 1.30:
===========================
1.33 May 5th 2008
- make cpantesters happy exit 0 early, if libGeoIP is not found.
( Boris Zentner )
1.32 May 4th 2008
- make Geo::IP::Record::time_zone work for the pure perl part of
Geo::IP ( Boris Zentner )
- BEGIN{$Geo::IP::GEOIP_PP_ONLY=1} use Geo::IP; disable the C API,
even if it is installed. ( Boris Zentner )
! rename $Geo::IP::TESTING_PERL_ONLY to $Geo::IP::GEOIP_PP_ONLY.
( Boris Zentner )
- Fix Geo::IP::Record to use the C API, only, when Geo::IP use it
( Boris Zentner )
1.31 March 22nd 2008
- Added BL/Saint Barthelemy, MF/Saint Martin (ISO-3166-1 additions)
- Change default database name for NetWare to sys:/etc/GeoIP/GeoIP.dat
and MSWin32 to c:/GeoIP/GeoIP.dat ( Guenter Knauf )
- Added support for time_zone lookup in GeoIP City API
Pkgsrc changes:
- The package supports installation to DESTDIR.
- A C compiler is necessary.
Changes since version 1.27:
=====================================
1.30 December 16th 2007
- Add GEOIP_MMAP_CACHE support ( Peter Shipley )
- Added last_netmask - gets netmask of network block from last lookup
- Merged in Geo::IP::PurePerl code, PurePerl code is mostly
API compatible with XS code, except for charset functions
- Added set_charset - enables UTF8 output of city name
1.28 July 4th 2007
- Added support for region name lookup in GeoIP City API
- Fixed database_info method (Ken Neighbors)
From Changes:
1.27 September 8th 2005
- Fixed Autoloader/open issue (Alexander Vasiljev)
- Fixed compilation error in Perl 5.005 with semicolon
in GeoIP_database_info in IP.xs (Stephen Schulte)
- Added support for open_type (Frank Mather)
1.26 May 19th 2005
- Fixed segfault issue if non-resolvable domain name is
passed to region_by_addr or region_by_name
- Added support for GEOIP_INDEX_CACHE - which just caches
the most frequently accessed index portion of the database, resulting
in faster lookups than GEOIP_STANDARD, but less memory usage than
GEOIP_MEMORY_CACHE
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").
binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.
addresses PR pkg/28619 from H. Todd Fujinaka.
Changes since 1.21:
- Updated test case, removed www.bundesregierung.de
- Geo::Mirror: fallback to using Geo::IP::PurePerl if Geo::IP
is not available
- Geo::Mirror: added support for mirror freshness
- Added support for Netspeed
- Fixed IP address in examples
in the process. (More information on tech-pkg.)
Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.
Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
This module a simple file-based database. This database simply contains IP
blocks as keys, and countries as values. The data contains all public IP
addresses and should be more complete and accurate than reverse complete
COMPLETE and accurate than reverse DNS lookups.
This module can be used to automatically select the geographically closest
mirror, or to analyze your web server logs to determine the countries of
your visitors.