head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.8 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.2 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q1:1.2.0.14 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.12 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.10 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.4 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.1.0.18 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.16 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.14 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.12 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.10 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.8 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.6 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.4 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.2 pkgsrc-2005Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2009.04.24.10.17.22; author adam; state dead; branches; next 1.2; 1.2 date 2008.02.06.23.27.02; author heinz; state Exp; branches; next 1.1; 1.1 date 2005.10.22.21.50.59; author heinz; state Exp; branches; next ; desc @@ 1.3 log @Changes 1.4.6: * Fix geoipupdate's my_printf function * Fix typo in apps/geoipupdate-pureperl.pl replace PerlIO::Gzip with PerlIO::gzip * Update region codes in libGeoIP/regionName.c * Fix regioncode/generate_regionName.pl to handle regioncodes with ',' correct * Update fips codes 20090201 * Fix unicode builds on WIN32 and eliminate some warnings * Fix sign error in _iso_8859_1__utf8 for PPC64 * Change WIN32 to _WIN32, since _WIN32 is defined by default * Remove the WSAStartup call from GeoIP_open * Silence various warnings * Add more timezone region's for Australia * Fix possible segfault in apps/geoiplookup with null pointers in non gnu printf implementations for example solaris * Add README.OSX to build fat binaries easy * Silence vasprintf warning via AC_GNU_SOURCE * Add several Makefiles to build a static GeoIP.lib for w32 * Silence signedness warnings * Remove --with-city configure option * Remove configure's --with-dbdir option. Use the similar --datadir instead * Various autotools improvements and cleanups. Including parallel build fix. * Fix libGeoIP/timeZone.c * Fix timezone/generate_timeZone.pl * Sync FIPS codes again Jan 14th, 2009 * Fix CA,NL regioncode * Change logic in generate_regionName.pl and GeoIP_region_name_by_code * Sync regionName.c with http://www.maxmind.com/app/fips10_4 from Dec 17th, 2008 * Fix _GeoIP_lookupaddress for 64bit big endian systems like ppc64 * Add proper WIN32/64 support * Escape - in all manpages * Add manpage for geoiplookup6 * Fix -d command line option * GeoIPUpdate.c use vasprintf if avail, otherwise try vsnprintf and sprintf * avoid pre/postincrement and assignment on the same variable @ text @$NetBSD: patch-ab,v 1.2 2008/02/06 23:27:02 heinz Exp $ - synchronize man page with the code http://sourceforge.net/tracker/index.php?func=detail&aid=1888355&group_id=66844&atid=515957 --- man/geoiplookup.1.orig 2007-08-16 01:09:29.000000000 +0200 +++ man/geoiplookup.1 @@@@ -3,27 +3,24 @@@@ .SH NAME geoiplookup - look up country using IP Address or hostname .SH SYNOPSIS -geoiplookup [-lv] +geoiplookup [-d directory] [-f filename] [-v] .SH DESCRIPTION geoiplookup uses the GeoIP library and database to find the Country that an IP address or hostname originates from. .PP For example .PP -.I geoiplookup -l 80.60.233.195 +.I geoiplookup 80.60.233.195 .PP -will find the Country that 80.60.233.195 originates from, in long format: +will find the Country that 80.60.233.195 originates from, in the following format: .PP -.I Netherlands +.I NL, Netherlands .PP .SH OPTIONS .IP "-f" Specify a custom path to a single GeoIP datafile. .IP "-d" Specify a custom directory containing GeoIP datafile(s). By default geoiplookup looks in DATADIR -.IP "-l" -By default, geoiplookup returns the ISO 3166 country code. By specifying this -option, geoiplookup prints the long format, namely the full country name. .IP "-v" Lists the date and build number for the GeoIP datafile(s). .SH AUTHOR @ 1.2 log @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) @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @According to the man page, geoiplookup has an option "-l". In reality this is not true, so I added the same patch Debian is using for the man page. @ text @d3 4 a6 1 --- man/geoiplookup.1.orig Thu Nov 21 07:12:38 2002 d8 1 a8 1 @@@@ -3,23 +3,19 @@@@ d13 1 a13 1 +geoiplookup [-v] a23 2 -.PP -.I Netherlands d26 1 d28 1 d30 4 d38 1 a38 1 Lists the GeoIP database date and build number. @