checks for malformed address strings, note GPL dependency, faster ipstring->ipnum conversion, add mmap caching option.
tested on sparc64. ok? Index: Makefile =================================================================== RCS file: /cvs/ports/net/GeoIP/Makefile,v retrieving revision 1.16 diff -u -p -r1.16 Makefile --- Makefile 15 Sep 2007 22:36:51 -0000 1.16 +++ Makefile 1 Feb 2008 21:04:26 -0000 @@ -2,15 +2,15 @@ COMMENT= find the country where IP address/hostname originates from -DISTNAME= GeoIP-1.4.3 -SHARED_LIBS += GeoIP 5.3 # .5.3 +DISTNAME= GeoIP-1.4.4 +SHARED_LIBS += GeoIP 6.0 # .5.4 SHARED_LIBS += GeoIPUpdate 1.0 # .0.0 CATEGORIES= net geo HOMEPAGE= http://www.maxmind.com/geoip/ MASTER_SITES= http://www.maxmind.com/download/geoip/api/c/ -# LGPL +# LGPL, GPL (parts of GeoIPUpdate) PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes Index: distinfo =================================================================== RCS file: /cvs/ports/net/GeoIP/distinfo,v retrieving revision 1.10 diff -u -p -r1.10 distinfo --- distinfo 5 Sep 2007 06:21:55 -0000 1.10 +++ distinfo 1 Feb 2008 21:04:26 -0000 @@ -1,5 +1,5 @@ -MD5 (GeoIP-1.4.3.tar.gz) = 02TsEnoQknSdWJp5AB8tjA== -RMD160 (GeoIP-1.4.3.tar.gz) = yBWzSiGPbhn+g/fKuBSjQtWmXBU= -SHA1 (GeoIP-1.4.3.tar.gz) = o2OJlEjrdYE8F0FaOqbGyOBhe78= -SHA256 (GeoIP-1.4.3.tar.gz) = wQT4ShG2kFeXelHZyWm/dl4J5cSl/D536ksWd6OkLpc= -SIZE (GeoIP-1.4.3.tar.gz) = 917062 +MD5 (GeoIP-1.4.4.tar.gz) = J8EyDkHme53c9BGOTqzNHQ== +RMD160 (GeoIP-1.4.4.tar.gz) = SqMYQOxklmR1UcbhLJxeMtzu1CY= +SHA1 (GeoIP-1.4.4.tar.gz) = Sik356j8fCaqiMBnh5Eka1jYHQI= +SHA256 (GeoIP-1.4.4.tar.gz) = pbLukpjq+MFgzKtbPi7MHDjPZ9ndTpdBlCf4nQjPt44= +SIZE (GeoIP-1.4.4.tar.gz) = 944698 Index: patches/patch-libGeoIP_GeoIP_c =================================================================== RCS file: /cvs/ports/net/GeoIP/patches/patch-libGeoIP_GeoIP_c,v retrieving revision 1.5 diff -u -p -r1.5 patch-libGeoIP_GeoIP_c --- patches/patch-libGeoIP_GeoIP_c 7 Apr 2007 04:56:35 -0000 1.5 +++ patches/patch-libGeoIP_GeoIP_c 1 Feb 2008 21:04:26 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-libGeoIP_GeoIP_c,v 1.5 2007/04/07 04:56:35 steven Exp $ ---- libGeoIP/GeoIP.c.orig Fri Feb 9 00:12:48 2007 -+++ libGeoIP/GeoIP.c Sat Apr 7 06:47:48 2007 -@@ -641,7 +641,7 @@ unsigned long _GeoIP_lookupaddress (const char *host) +--- libGeoIP/GeoIP.c.orig Sun Nov 25 03:27:25 2007 ++++ libGeoIP/GeoIP.c Thu Jan 31 00:10:08 2008 +@@ -687,7 +687,7 @@ unsigned long _GeoIP_lookupaddress (const char *host) free(buf); return 0; } Index: patches/patch-man_geoiplookup_1 =================================================================== RCS file: /cvs/ports/net/GeoIP/patches/patch-man_geoiplookup_1,v retrieving revision 1.2 diff -u -p -r1.2 patch-man_geoiplookup_1 --- patches/patch-man_geoiplookup_1 7 Apr 2007 04:56:35 -0000 1.2 +++ patches/patch-man_geoiplookup_1 1 Feb 2008 21:04:26 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-man_geoiplookup_1,v 1.2 2007/04/07 04:56:35 steven Exp $ ---- man/geoiplookup.1.orig Sat Apr 7 06:54:00 2007 -+++ man/geoiplookup.1 Sat Apr 7 06:55:00 2007 +--- man/geoiplookup.1.orig Thu Aug 16 00:09:29 2007 ++++ man/geoiplookup.1 Thu Jan 31 00:10:08 2008 @@ -3,17 +3,19 @@ .SH NAME geoiplookup - look up country using IP Address or hostname @@ -32,5 +32,5 @@ $OpenBSD: patch-man_geoiplookup_1,v 1.2 -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 GeoIP database date and build number. + Lists the date and build number for the GeoIP datafile(s). .SH AUTHOR