pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/GeoIP



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Wed Oct 19 11:59:25 UTC 2016

Modified Files:
        pkgsrc/net/GeoIP: DESCR Makefile PLIST distinfo
Added Files:
        pkgsrc/net/GeoIP: MESSAGE
Removed Files:
        pkgsrc/net/GeoIP/patches: patch-aa

Log Message:
Update net/GeoIP to 1.6.9.
Based on a PR by Jussi Sallinen.

1.6.9 2016-01-11

- Fix a regression introduced in version 1.6.8, which caused
  GeoIP_database_info to erroneously return NULL.

1.6.8 2016-01-11

- Allow compilation on older systems by relaxing the autoconf and automake
  minimum versions. Thank you, Jose Rubio!
- Avoid potential problems in multi-threaded environments by consistently using
  pread() rather than read().
- Fix various small issues reported by clang's static analyser.

1.6.7 2015-10-30

- Fixed a MSVC parser stack overflow when parsing `regionName.c` and
 `timeZone.c`. Fix by elliotlo. GitHub #64.
- Updated region codes and timezones.
- When using `GEOIP_MEMORY_CACHE` with an invalid database file, the search
  tree traversal could attempt to read memory outside of the memory allocated
  for the memory cache, resulting in a segmentation fault. A check was added
  to ensure that the traversal code does not try to read beyond the end of the
  file, whether in memory, memory mapped, or on disk.
- Previously the return values from file reads were ignored. We now check
  these values to ensure that there were no errors.

1.6.6 2015-07-28

- Replaced usage of deprecated fileno, read, and lseek on Visual Studio 2005+
  with their ISO C++ conformant replacements.
- A warning about using a double as a float was fixed.
- Fixed segfault when doing a lookup on an empty database.
- Fixed a memcheck error from valgrind in the `_check_mtime`
  function.
- Fixed `_check_mtime` to check the return value of `gettimeofday` rather than
  just assuming it worked.

1.6.5 2015-02-25

- A segmentation fault in `geoiplookup` was fixed when the utility was passed
  an invalid database.
- Additional validation was added for validation of the size used in the
  creation of the index cache.
- Changed the code to only look up country codes by using functions which
  ensure that we do not try to look past the end of an array.

1.6.4 2015-01-12

- Update Fips codes
- Several issues with the MinGW build were fixed.
- Use a constructor in pread.c to ensure the critical section is always
  initialized.
- Added missing include of `io.h` on Windows.
- Fixed `configure` warning that `'missing' script is too old or missing`.
- Previously `nmake /f Makefile.vc clean` would fail on Windows. This was
  fixed.
- Obsolete win32 and NetWare make files were removed.
- Numerous documentation updates.

1.6.3 2014-10-29

- Added a GEOIP_SILENCE flag. Include this flag when calling GeoIP_open to
  prevent any messages from being written to stderr.
- Mitigate a possible race condition when running under threads in the
  GeoIP_cleanup function.
- Added some recommendations to the docs on using this library in a
  threaded application.
- Fixed some bugs discovered by coverity, including failure to check some
  system call return values and making sure all strings are
  null-terminated.

1.6.2 2014-07-08

- Two files required for building on Win32 were missing from the 1.6.1
  release. These files were added. There are no changes affecting other
  platforms.

1.6.1 2014-06-26

- Improve Win32 support
- Update FIPS codes

1.6.0 2013-10-29

- Remove geoipupdate

1.5.2 2013-10-29

- Update region and time zones
- Fix benchmark script
- Remove autogenerated files ltmain.sh, man/geoip*.1
- Explain how to download free geolite databases in the README.md and
  GeoIP.conf.default
- geoipupdate returns 1 on error 0 on success instead of the error code
- README is replaced by README.md
- Add support for OS X Mavericks

1.5.1 2013-05-14

- Update time_zone for Ontario, Canada
- geoiplookup and geoiplookup6 exit code is 0 when user asked for help
- Added -h option to geoiplookup6
- Do not load the database file if nodes and file size do not make
  sense.
- Keep README and man pages in pure ascii.
- It doesn't make sense to use GEOIP_INDEX_MODE with small databases
  like GEOIP_COUNTRY_EDITION. Instead of undefined behaviour we handle
  it silently as GEOIP_MEMORY_MODE
- Update FIPS codes for Greece

1.5.0 2013-02-21

- Rename custom_directory to GeoIP_custom_directory.
- Make sure the database match the requested type. This is helpful for
  Databases with the same default name and the general geoiplookup form
  (geoiplookup without a specific database)
- apps/geoiplookup6.c use the ipnum instead of the hostname for lookups.
- Use configure.ac instead of configure.in
- Region lookup is a bit faster
- Add pkg-config file
- Updates required to build a Windows DLL under MinGW
- Make API thread safe
- geoiplookup's default charset is UTF8
  -l change the charset back to iso8859-1
- geoipupdate skips \r otherwise it might be part of the last
  product_id
- Update time zones
- Update Region codes
- Remove the unused CITYCONFIDENCE* database types
- bootstrap rebuilds ltmain.sh
- Update README.OSX for Lion
- Change Macedonia to Macedonia, The Former Yugoslav Republic of
- Add region_name to geoiplookup GEOIP_CITY_EDITION_REV1
- Add region_name to geoiplookup GEOIP_CITY_EDITION_REV0
- Add a --disable-data-files option. This allows you to build and install
  the library without having a data/GeoIP.dat file. This is useful when
  building the library from a checkout of the source tree, rather than a
  tarball
- Add GEOIP_ACCURACYRADIUS_EDITION and GEOIP_ACCURACYRADIUS_EDITION_V6
- Add more database types GEOIP_COUNTRYCONF_EDITION,
  GEOIP_CITYCONF_EDITION, GEOIP_REGIONCONF_EDITION and
  GEOIP_POSTALCONF_EDITION
- Fix default filenames for GEOIP_NETSPEED_EDITION_REV1 and
  GEOIP_NETSPEED_EDITION_REV1_V6


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/GeoIP/DESCR
cvs rdiff -u -r0 -r1.1 pkgsrc/net/GeoIP/MESSAGE
cvs rdiff -u -r1.30 -r1.31 pkgsrc/net/GeoIP/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/GeoIP/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/net/GeoIP/distinfo
cvs rdiff -u -r1.6 -r0 pkgsrc/net/GeoIP/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/GeoIP/DESCR
diff -u pkgsrc/net/GeoIP/DESCR:1.3 pkgsrc/net/GeoIP/DESCR:1.4
--- pkgsrc/net/GeoIP/DESCR:1.3  Wed Feb  6 23:27:02 2008
+++ pkgsrc/net/GeoIP/DESCR      Wed Oct 19 11:59:25 2016
@@ -1,9 +1,2 @@
-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 January 2008. 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.
+The GeoIP Legacy C library enables the user to find geographical
+and network information of an IP address.

Index: pkgsrc/net/GeoIP/Makefile
diff -u pkgsrc/net/GeoIP/Makefile:1.30 pkgsrc/net/GeoIP/Makefile:1.31
--- pkgsrc/net/GeoIP/Makefile:1.30      Thu Oct  9 14:06:44 2014
+++ pkgsrc/net/GeoIP/Makefile   Wed Oct 19 11:59:25 2016
@@ -1,20 +1,19 @@
-# $NetBSD: Makefile,v 1.30 2014/10/09 14:06:44 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2016/10/19 11:59:25 fhajny Exp $
 
-DISTNAME=      GeoIP-1.4.8
+DISTNAME=      GeoIP-1.6.9
 CATEGORIES=    net
-MASTER_SITES=  http://geolite.maxmind.com/download/geoip/api/c/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=maxmind/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.maxmind.com/app/c
-COMMENT=       Find the country from any IP address
-LICENSE=       gnu-lgpl-v2.1 AND gnu-gpl-v2 #  md5.c and types.h, from GNUPG
+COMMENT=       GeoIP Legacy C API
+LICENSE=       gnu-lgpl-v2.1
 
-USE_LIBTOOL=           yes
-GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+GITHUB_PROJECT=        geoip-api-c
+GITHUB_RELEASE=        v${PKGVERSION_NOREV}
 
-EGDIR=         ${PREFIX}/share/examples/GeoIP
-CONF_FILES=    ${EGDIR}/GeoIP.conf.default ${PKG_SYSCONFDIR}/GeoIP.conf
+USE_LIBTOOL=   yes
+GNU_CONFIGURE= yes
 
 TEST_TARGET=   check
 

Index: pkgsrc/net/GeoIP/PLIST
diff -u pkgsrc/net/GeoIP/PLIST:1.7 pkgsrc/net/GeoIP/PLIST:1.8
--- pkgsrc/net/GeoIP/PLIST:1.7  Sun Jun 14 18:09:19 2009
+++ pkgsrc/net/GeoIP/PLIST      Wed Oct 19 11:59:25 2016
@@ -1,14 +1,9 @@
-@comment $NetBSD: PLIST,v 1.7 2009/06/14 18:09:19 joerg Exp $
+@comment $NetBSD: PLIST,v 1.8 2016/10/19 11:59:25 fhajny Exp $
 bin/geoiplookup
 bin/geoiplookup6
-bin/geoipupdate
 include/GeoIP.h
 include/GeoIPCity.h
-include/GeoIPUpdate.h
 lib/libGeoIP.la
-lib/libGeoIPUpdate.la
+lib/pkgconfig/geoip.pc
 man/man1/geoiplookup.1
 man/man1/geoiplookup6.1
-man/man1/geoipupdate.1
-share/GeoIP/GeoIP.dat
-share/examples/GeoIP/GeoIP.conf.default

Index: pkgsrc/net/GeoIP/distinfo
diff -u pkgsrc/net/GeoIP/distinfo:1.14 pkgsrc/net/GeoIP/distinfo:1.15
--- pkgsrc/net/GeoIP/distinfo:1.14      Wed Nov  4 00:34:51 2015
+++ pkgsrc/net/GeoIP/distinfo   Wed Oct 19 11:59:25 2016
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.14 2015/11/04 00:34:51 agc Exp $
+$NetBSD: distinfo,v 1.15 2016/10/19 11:59:25 fhajny Exp $
 
-SHA1 (GeoIP-1.4.8.tar.gz) = 7bafb9918e3c35a6ccc71bb14945245d45c4b796
-RMD160 (GeoIP-1.4.8.tar.gz) = 51388ff9c738c9e4d60fff790b7d7599a7133bf5
-SHA512 (GeoIP-1.4.8.tar.gz) = aec70bdf002f1041ecb14f091e32206af033dc6ed89d20dffcc80e4c4edad993c9dfab7810576cb75f07d356ef34529ca3f2613e43e7f97c2b7ae099ce3be317
-Size (GeoIP-1.4.8.tar.gz) = 1074829 bytes
-SHA1 (patch-aa) = a53740728808c4eb363092cf2e342dddbaa012dc
+SHA1 (GeoIP-1.6.9.tar.gz) = ac0deb2309c14d5763e82fa4139de1f3193ab6b1
+RMD160 (GeoIP-1.6.9.tar.gz) = 244fa293f86bc24df6a4b7a6643f111830faf1ed
+SHA512 (GeoIP-1.6.9.tar.gz) = d9fc385db994d48066fb18e98ebaa882f80c04faf3d3e59004e3f05f455fd8c4b95041aeb5f197f3c2352ffe5c5913c58f0353fa16d2a1780cb0ccb5b7e8b986
+Size (GeoIP-1.6.9.tar.gz) = 926978 bytes

Added files:

Index: pkgsrc/net/GeoIP/MESSAGE
diff -u /dev/null pkgsrc/net/GeoIP/MESSAGE:1.1
--- /dev/null   Wed Oct 19 11:59:25 2016
+++ pkgsrc/net/GeoIP/MESSAGE    Wed Oct 19 11:59:25 2016
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2016/10/19 11:59:25 fhajny Exp $
+
+To use this library, you may download the free GeoLite Legacy
+Country or City databases. These are updated at the beginning
+of every month. The latest versions are available at:
+
+http://dev.maxmind.com/geoip/legacy/geolite
+
+===========================================================================



Home | Main Index | Thread Index | Old Index