2009-04-24 12:17:22 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2009/04/24 10:17:22 adam Exp $
|
2003-06-01 12:24:42 +02:00
|
|
|
|
2009-04-24 12:17:22 +02:00
|
|
|
DISTNAME= GeoIP-1.4.6
|
2003-06-01 12:24:42 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.maxmind.com/download/geoip/api/c/
|
|
|
|
|
2007-04-04 17:02:05 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-06-01 12:24:42 +02:00
|
|
|
HOMEPAGE= http://www.maxmind.com/download/geoip/api/c/
|
|
|
|
COMMENT= Find the country from any IP address
|
|
|
|
|
Updated to version 1.4.4.
Pkgsrc changes:
- Added support for installation to DESTDIR.
- More fixes for the man page geoiplookup.1 (patch-ab)
- Two additional patches patch-ac and patch-ad to make geoiplookup not
crash with segmentation fault if the data file either does not exist
or has the wrong format.
- Patches -ab, -ac, and -ad submitted to the bugtracker at sourceforge.net.
- Updated DESCR with date of data file.
- Added license information.
Changes since version 1.4.0:
============================
1.4.4 2008-1-21
* Updated original geoipupdate to return "Invalid product ID or
subscription expired"
* Added BL/Saint Barthelemy, MF/Saint Martin (ISO-3166-1 additions)
* Check for illegal IP strings, return 0 if IP is not well formed
IPv4 e.g. 1.2.3.4.5 and 1.2.3
* Clarified that while core GeoIP library is LGPL, libGeoIPUpdate
depends on md5.c and types.h which are GPL.
* speedup the conversion from ipstring to ipnum in _GeoIP_addr_to_num.
Doubles the speed of GEOIP_MEMORY_CACHE and GEOIP_MMAP_CACHE
* Added new mmap shared memory caching option, GEOIP_MMAP_CACHE
(Peter Shipley, LookSmart)
- mmaps: our maps are shared, but we need only private
readonly pages
1.4.3 2007-8-30
! CHANGE with geoiplookup facility: -v flag now returns database info
for all databases, not just GeoIP Country
* Added ability to get netmask of network block from last lookup using
GeoIP_last_netmask
* Fixed GeoIP_database_info bug with GeoLite City
* Replaced 4 with sizeof(char*) to fix issues with geoipupdate on
64 Bit machines
* Added GeoIP_set_charset function - enables UTF8 output of city name
if GEOIP_CHARSET_UTF8 flag is passed to GeoIP_set_charset
* Fixed segfault issue if calling GeoIP_db_avail before opening a
database
* Added continent_code to GeoIP City's record struct (Frank Mather)
1.4.2 2007-2-8
* Added -d flag to enable custom path for geoipupdate utility program
(Frank Mather)
* Replaced _WIN32 with WIN32 since WIN32 is already set by compilers
* Moved var definitions to top of code, defined size_t (Guenter Knauf)
* Added Makefile.win32, Makefile.netware, get_ver.awk, geoip.ico to
EXTRA_DIST in Makefile.am (Guenter Knauf)
1.4.1 2007-1-2
* Replaced CS/Serbia and Montenegro with RS/Serbia, removed ZR/Zaire,
added ME/Montenegro
* Added AX/Aland Islands, GG/Guernsey, IM/Isle of Man, JE/Jersey
(ISO-3166-1 changes)
* Added GeoIP_time_zone_by_country_and_region, to lookup zoneinfo
timezone by country and region (Frank Mather)
* Added GeoIP_region_name_by_code, to lookup region name from region
code (Frank Mather)
* added -f and -d flags to enable custom paths for geoiplookup utility
program (Frank Mather)
* Added benchmarks for GeoIP Region and City in test/benchmark.c
(Frank Mather)
* Fixed build issue when using --as-needed flag (Diego 'Flameeyes'
Pettenò)
* Add sanity checking for filename returned by MaxMind.com server for
geoipupdate filename (Dean Gaudet, arctic.org)
* Fixed memory leaks under error conditions, buffer overflow using
sprintf, and issue where a corrupted cache file could core dump the
file (Nick Galbreath, Right Media Inc)
2008-02-07 00:27:02 +01:00
|
|
|
#LICENSE= gnu-lgpl-v2.1
|
|
|
|
#LICENSE+= gnu-gpl-v2 # md5.c and types.h, from GNUPG
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-02-17 04:34:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2003-06-01 12:24:42 +02:00
|
|
|
USE_LIBTOOL= yes
|
2009-04-24 12:17:22 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2003-06-01 12:24:42 +02:00
|
|
|
|
2004-07-03 02:54:07 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/GeoIP
|
|
|
|
CONF_FILES= ${EGDIR}/GeoIP.conf.default ${PKG_SYSCONFDIR}/GeoIP.conf
|
2003-06-01 12:24:42 +02:00
|
|
|
|
2005-10-22 21:58:42 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2005-03-12 06:22:54 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2003-06-01 12:24:42 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|