Hello community,

here is the log from the commit of package geoipupdate for openSUSE:Factory 
checked in at 2020-03-26 23:34:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/geoipupdate (Old)
 and      /work/SRC/openSUSE:Factory/.geoipupdate.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "geoipupdate"

Thu Mar 26 23:34:09 2020 rev:11 rq:788574 version:4.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/geoipupdate/geoipupdate.changes  2020-03-17 
13:09:58.313790976 +0100
+++ /work/SRC/openSUSE:Factory/.geoipupdate.new.3160/geoipupdate.changes        
2020-03-26 23:35:00.222812511 +0100
@@ -1,0 +2,8 @@
+Thu Mar 26 10:21:28 UTC 2020 - Vítězslav Čížek <vci...@suse.com>
+
+- Make /etc/GeoIP.conf readable only by root as it contains MaxMind
+  account information now
+- Add README.SUSE with description how to get the latest data
+  (jsc#SLE-11184, jsc#ECO-1405)
+
+-------------------------------------------------------------------

New:
----
  README.SUSE

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ geoipupdate.spec ++++++
--- /var/tmp/diff_new_pack.8LQ0qi/_old  2020-03-26 23:35:01.682813038 +0100
+++ /var/tmp/diff_new_pack.8LQ0qi/_new  2020-03-26 23:35:01.682813038 +0100
@@ -29,6 +29,7 @@
 Source2:        geoipupdate.timer
 Source3:        geoipupdate.service
 Source4:        geoipupdate-legacy
+Source5:        README.SUSE
 Patch0:         disable-pandoc.patch
 %if 0%{?suse_version} >= 1500
 # Build-time parameters
@@ -74,6 +75,7 @@
 install -D -m0755 build/geoipupdate       %{buildroot}%{_bindir}/geoipupdate
 %endif
 install -D -m0755 %{SOURCE4}              
%{buildroot}%{_bindir}/geoipupdate-legacy
+install -D -m0644 %{SOURCE5}              
%{buildroot}%{_docdir}/geoipupdate/README.SUSE
 install -D -m0644 conf/GeoIP.conf.default %{buildroot}%{_sysconfdir}/GeoIP.conf
 install -d -m0755 %{buildroot}%{_localstatedir}/lib/GeoIP
 sed -ri \
@@ -98,10 +100,10 @@
 
 %files
 %license LICENSE-*
-%config(noreplace) %{_sysconfdir}/GeoIP.conf
+%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/GeoIP.conf
 %dir %{_localstatedir}/lib/GeoIP
 %if 0%{?suse_version} >= 1500
-%doc README.md build/geoipupdate.md build/GeoIP.conf.md
+%doc README.md README.SUSE build/geoipupdate.md build/GeoIP.conf.md
 %{_bindir}/geoipupdate
 %{_unitdir}/%{name}.service
 %{_unitdir}/%{name}.timer

++++++ README.SUSE ++++++
Automatically fetching GeoIP "free" databases
==============================================

On January 2, 2019, Maxmind, the company behind the geoip database,
discontinued the GeoLite Legacy databases, which are no longer
available for download.
(https://support.maxmind.com/geolite-legacy-discontinuation-notice/)

Free geolocation data is still available through the GeoLite2 databases.
However, due to some legal changes
(https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/)
starting December 30, 2019, the Geolite2 database users are required to
register for a MaxMind account and obtain a license key in
order to download GeoLite2 databases.

The following packages are introduced to work with the new database format
and distribution:

libmaxminddb is the library for working with the geolite2 format. It doesn't
download any data, just works with a local .mmdb database.

geoipupdate is the official Maxmind's tool for downloading the
geo database. Users need to fill in its configuration file with their
Maxmind account details. It's possible to generate the entire config
from the Maxmind web page, once one has an account.

geolite2legacy is a script for converting geolite2 data to the old
geoip format. Accepts only the CSV format as input.

We also ship a geoipupdate-legacy subpackage, which is a wrapper around
geoipupdate. It downloads the data and converts them to the old format
using geolite2legacy. The data will be stored at the usual place
(/var/lib/GeoIP), so this should be transparent to existing applications.
It's basically a re-implementation of geoip-fetch which was shipped
within GeoIP package (but no longer works).

How to get the latest GeoIP data
================================

(1) Register a MaxMind account at https://www.maxmind.com/en/geolite2/signup

(2) Fill in the account information in /etc/GeoIP.conf

(3) Install geoipupdate package

# zypper in geoipupdate

(4) Download the latest GeoIP data

# geoipupdate

Local libmaxminddb is up-to-date and packages are to work with the geo data.

Optional:

(5) Install geoipupdate-legacy package

# zypper in geoipupdate-legacy

(6) Download and export the data to the old format

# geoipupdate-legacy

Local GeoIP database is up-to-date and packages are ready to work with
the new geo data using the old GeoIP library.

Tips
====

These databases can become out-of-date quite quickly unless
the user manually fetches and replaces them regularly.
Maxmind generally release updates every couple of weeks.

Script can be called manually (as root), but the best solution is to add
a crontab entry or a systemd timer such as the one shipped with the package.

Reply via email to