[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter
Subject:    [PATCH v3 0/2] Further improvements to GeoLite2 migration
From:       "Philip Prindeville" <philipp () redfish-solutions ! com>
Date:       2019-04-01 6:05:32
Message-ID: 20190401060532.12033-1-philipp () redfish-solutions ! com
[Download RAW message or body]

From: Philip Prindeville <philipp@redfish-solutions.com>

In preparation for supporting additional grouping criteria, i.e.
not just country but possibly ASN or ISP name, etc. we're grouping
the country databases under a 'cc/' subdirectory.  This will avoid
conflicts when other search criteria get added.

Also, since we don't know what the name of the unpacked directory
will look like (e.g. GeoLite2-Country-CSV.zip may unpack as
GeoLite2-Country-CSV_20190326/ for instance), we look for the newest
directory that matches that naming pattern (since the user might
have opted to keep multiple directory versions around for rollback,
etc).

We've also modified the script to only unpack the English language
name mapping, and the supporting files (copyright, readme, & license).

The unpacked directory is not deleted after it gets post-processed
but is left in place. The zip file, on the other hand, is deleted as
before.

Philip Prindeville (2):
  Put database into country subdirectory
  Keep unpacked directories, and detect latest for rebuilding

 geoip/xt_geoip_build | 28 +++++++++++++++++++++++++++-
 geoip/xt_geoip_dl    | 10 +++++++---
 geoip/xt_geoip_fetch |  2 +-
 3 files changed, 35 insertions(+), 5 deletions(-)

-- 
2.17.2

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic