[packages/GeoIP-db-Country] fix ipv6 file timestamp calculation
glen
glen at pld-linux.org
Tue Aug 14 11:20:41 CEST 2018
commit dc1de192789531f487c1eae806f70d2803eb11f1
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Aug 14 12:18:43 2018 +0300
fix ipv6 file timestamp calculation
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 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/GeoIP-db-Country.spec b/GeoIP-db-Country.spec
index 5f75f6c..9d13612 100644
--- a/GeoIP-db-Country.spec
+++ b/GeoIP-db-Country.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GeoIP-db-Country.git/commitdiff/dc1de192789531f487c1eae806f70d2803eb11f1
More information about the pld-cvs-commit
mailing list