Changes:
* Made code thread safe by replacing gethostbyname with gethostbyname_r
* Added GeoIP_country_code_by_ipnum and GeoIP_id_by_ipnum to use
existing ulong IP Address in numeric form instead of having to
convert it to string (Boris Hajduk)
* Updated geoipupdate to report invalid userID and productID errors
* Added support for GEOIP_INDEX_CACHE - which just caches
the most frequently access index portion of the database, resulting
in faster lookups than GEOIP_STANDARD, but less memory usage than
GEOIP_MEMORY_CACHE (Frank Mather)
* Made GEOIP_CHECK_CACHE work with GEOIP_STANDARD mode - reloads filehandle
in case file changes.
* Made GeoIP City code thread safe
* Fixed bug with geoipupdate reading in product ids
* Added support for GeoIP Netspeed geoipupdate
* Fix memleak in lookupaddress (Ludwig Nussel/SUSE)
* Add prototype for _full_path_to to make 64bit clean (Ludwig Nussel/SUSE)
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.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:
lib/libfoo.a
lib/libfoo.la
lib/libfoo.so
lib/libfoo.so.0
lib/libfoo.so.0.1
one simply needs:
lib/libfoo.la
and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.
Also make LIBTOOLIZE_PLIST default to "yes".
Changes since 1.3.1:
* Fixed bug where *.gz file(s) didn't get removed after geoipupdate
* Added support for NetSpeed lookup to geoiplookup
* inet_addr patch for 64 bit systems (Thomas Steudten)
* Added Support for automated downloads of GeoIP Region, City, ISP
and Organization databases (Frank Mather)
* INADDR_NONE Patch for Solaris 9 (John Young)
* Added support for Maxmind NetSpeed
* Check for stdint.h in autoconf
* prevent the geoipupdate man page from trying to install itself directly
in the system directory
* Fixed includes to compile on Windows
* Removed the _addr_to_num() calls from GeoIP_*_by_name()
* _seek_record() optimizations
* Added GeoIP_assign_region_by_inetaddr which doesn't do any mallocs and
made all other region APIs go thru it
* Replaced _h_addr_to_num() with ntohl() and removed _h_addr_to_num()
* Fixed bug when IP address not found in region rev1 database
* Added added extern "C" to GeoIPCity.h fixes problems when included
in C ++ library
* Added support for GeoIP ISP Edition identifier
* Fixed bug in GeoIP_database_info
* Added support for GeoIP AS Number Edition
* renamed GeoIP_org_by_* functions to GeoIP_name_by_* to reduce confusion
since these functions are used by GeoIP ISP and GeoIP ASNum as well as
GeoIP Organization
* Added support for GeoIP Proxy Edition
* renamed GeoIP_country_id_by_* functions to GeoIP_id_by_*
* Added GeoIP_record_id_by_addr and GeoIP_next_record functions
* Added support for new GeoIP Region format, including Canadian Provinces
* Added support for GeoIP City format revision 1, including dma code and
area code
* geoiplookup returns results from GeoIP Region, City, ISP and Organization
databases
* Standardized location for GeoIP Region, City, ISP and Organization data bases
* Added GeoIP_open_type to open database from default location for other
dbs besides country
* Added check to make sure that the appropriate database is loaded for each
lookup method
* Updated update code to check for first 12 characters of license key
* Added GeoIP_country_continent array to lookup continent by country ID
Closes PR pkg/23909.
GeoIP is a C library that enables the user to find the country that any IP
address or hostname originates from. It uses a file based database that is
accurate as of March 2002. This database simply contains IP blocks as keys,
and countries as values. It should be more complete and accurate than using
reverse DNS lookups.
This module can be used to automatically select the geographically closest
mirror, to analyze your web server logs to determine the countries of your
visitors, for credit card fraud detection, and for software export controls.
Package initially provided by Juan RP through pkgsrc-wip, with several
changes by me.