[packages/GeoLite2-db-City] Up to 20181121 (last version with CC license)
arekm
arekm at pld-linux.org
Mon Jun 22 09:26:26 CEST 2026
commit 54095ff07eb5fd2abc19b956c6d9af604189c148
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jun 22 09:25:51 2026 +0200
Up to 20181121 (last version with CC license)
GeoLite2-db-City.spec | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/GeoLite2-db-City.spec b/GeoLite2-db-City.spec
index 4394604..8144b3a 100644
--- a/GeoLite2-db-City.spec
+++ b/GeoLite2-db-City.spec
@@ -2,14 +2,16 @@
Summary: GeoLite2 City - City database for GeoIP
Summary(pl.UTF-8): GeoLite2 City - baza danych miast dla GeoIP
Name: GeoLite2-db-%{dbname}
-# Updated every month:
-Version: 20131210
+Version: 20181121
Release: 1
-License: CC 3.0 BY-SA
+License: CC-BY-SA v4.0
Group: Applications/Databases
-Source0: http://geolite.maxmind.com/download/geoip/database/GeoLite2-%{dbname}.mmdb.gz?/GeoLite2-%{dbname}-%{version}.mmdb.gz
-# Source0-md5: ca142991d3594c8b65faa45ac442e1f3
+# Last freely-redistributable (CC-BY-SA 4.0) GeoLite2 build before MaxMind's
+# 2019-12-30 license-key wall, recovered from the Internet Archive.
+Source0: https://web.archive.org/web/20181121191440id_/http://geolite.maxmind.com/download/geoip/database/GeoLite2-%{dbname}.mmdb.gz?/GeoLite2-%{dbname}-%{version}.mmdb.gz
+# Source0-md5: 65ed700788fb5878b7422e652b79e033
URL: http://dev.maxmind.com/geoip/geoip2/geolite2/
+BuildRequires: gzip
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -17,13 +19,17 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
GeoLite2 databases are free IP geolocation databases comparable to,
but less accurate than, MaxMind's GeoIP2 databases.
-GeoLite2 databases are updated on the first Tuesday of each month.
+This package ships the last freely-redistributable (CC-BY-SA 4.0) GeoLite2
+release, made before MaxMind required a license key in December 2019. It is
+a frozen historical snapshot and is no longer updated; for current data use
+the geoipupdate package with a (free) MaxMind license key.
%prep
%setup -qcT
cp -p %{SOURCE0} GeoLite2-%{dbname}.mmdb.gz
-gunzip GeoLite2-%{dbname}.mmdb.gz
+# -N: take the build date from the gzip header, not the archive download mtime
+gunzip -N GeoLite2-%{dbname}.mmdb.gz
ver=$(TZ=GMT stat -c '%y' GeoLite2-%{dbname}.mmdb | awk '{print $1}' | tr -d -)
if [ "$ver" != %{version} ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GeoLite2-db-City.git/commitdiff/54095ff07eb5fd2abc19b956c6d9af604189c148
More information about the pld-cvs-commit
mailing list