]> git.pld-linux.org Git - packages/GeoIP-db-Country.git/commitdiff
fix ipv6 file timestamp calculation
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Aug 2018 09:18:43 +0000 (12:18 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Aug 2018 09:18:43 +0000 (12:18 +0300)
NOTE: ipv4 database no longer updated, stays with March 2018 GeoLite Legacy builds

https://dev.maxmind.com/geoip/legacy/geolite/

Updated versions of the GeoLite Legacy databases are now only available
to redistribution license customers, although anyone can continue to
download the March 2018 GeoLite Legacy builds. Starting January 2, 2019,
the last build will be removed from our website. GeoLite Legacy database
users will need to switch to the GeoLite2 or commercial GeoIP databases
and update their integrations by January 2, 2019.

GeoIP-db-Country.spec

index 5f75f6cce5c38c57557cf0fb8850df46ffb848bd..9d136125ea671a3bdca6592220338943255dcdfa 100644 (file)
@@ -6,11 +6,11 @@ Version:      2018.08.07
 Release:       1
 License:       CC 3.0 BY-SA
 Group:         Applications/Databases
-Source0:       http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz?/GeoIP-%{version}.dat.gz
+Source0:       https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz?/GeoIP-%{version}.dat.gz
 # Source0-md5: d538e57ad9268fdc7955c6cf9a37c4a9
-Source1:       http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz?/GeoIPv6-%{version}.dat.gz
+Source1:       https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz?/GeoIPv6-%{version}.dat.gz
 # Source1-md5: f797eec3c3d33c456848f4a32215cd2f
-URL:           http://dev.maxmind.com/geoip/legacy/geolite/
+URL:           https://dev.maxmind.com/geoip/legacy/geolite/
 Requires:      GeoIP-libs >= 1.4.5-2
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,7 +38,7 @@ cp -p %{SOURCE1} .
 
 gzip -d GeoIP-%{version}.dat.gz GeoIPv6-%{version}.dat.gz
 dt4=$(TZ=GMT stat -c '%y' GeoIP-%{version}.dat | awk '{print $1}' | tr - .)
-dt5=$(TZ=GMT stat -c '%y' GeoIP-%{version}.dat | awk '{print $1}' | tr - .)
+dt6=$(TZ=GMT stat -c '%y' GeoIPv6-%{version}.dat | awk '{print $1}' | tr - .)
 if [ "$(echo $dt4 | tr -d .)" -gt "$(echo $dt6 | tr -d .)" ]; then
        ver=$dt4
 else
This page took 0.068058 seconds and 4 git commands to generate.