Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2019 00:22:15 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490322 - in head/dns/gdnsd2: . files
Message-ID:  <201901150022.x0F0MFOA004133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Tue Jan 15 00:22:14 2019
New Revision: 490322
URL: https://svnweb.freebsd.org/changeset/ports/490322

Log:
  - Remove check that no longer applies (https://blog.maxmind.com/tag/ip-geolocation/)
  
  Reported by:	sbruno

Added:
  head/dns/gdnsd2/files/patch-libgdmaps_gdgeoip2.c   (contents, props changed)
Modified:
  head/dns/gdnsd2/Makefile

Modified: head/dns/gdnsd2/Makefile
==============================================================================
--- head/dns/gdnsd2/Makefile	Mon Jan 14 23:40:03 2019	(r490321)
+++ head/dns/gdnsd2/Makefile	Tue Jan 15 00:22:14 2019	(r490322)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gdnsd
 PORTVERSION=	2.4.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns
 MASTER_SITES=	https://github.com/gdnsd/gdnsd/releases/download/v${PORTVERSION}/ \
 		ZI \

Added: head/dns/gdnsd2/files/patch-libgdmaps_gdgeoip2.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/gdnsd2/files/patch-libgdmaps_gdgeoip2.c	Tue Jan 15 00:22:14 2019	(r490322)
@@ -0,0 +1,16 @@
+--- libgdmaps/gdgeoip2.c.orig	2019-01-15 00:17:32 UTC
++++ libgdmaps/gdgeoip2.c
+@@ -172,12 +172,7 @@ static geoip2_t* geoip2_new(const char* 
+     db->is_city = !!strstr(meta->database_type, "City");
+ 
+     if(db->is_city) {
+-        // 1546300799 == 2018-12-31T23:59:59
+-        if(city_auto_mode && strstr(meta->database_type, "GeoLite2") && meta->build_epoch > (uint64_t)1546300799LLU) {
+-            dmn_log_err("plugin_geoip: map '%s': GeoIP2 DB '%s' appears to be a post-2018 GeoLite2-City database, which will not work with auto_dc_coords as configured because these databases lack the latitude and longitude data present in the commercial version.  See the auto_dc_coords section of the gdnsd-plugin-geoip documentation for more details.", map_name, pathname);
+-            geoip2_destroy(db);
+-            return NULL;
+-        }
++	// noop
+     } else {
+         if(city_auto_mode) {
+             dmn_log_err("plugin_geoip: map '%s': GeoIP2 DB '%s' is not a City-level"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901150022.x0F0MFOA004133>