packages/libs/measurement-kit/patches/002-replace-curl-with-wget.patch
Jan Pavlinec 7c14a1c031
measurement-kit: update to version 0.9.4
Added patches for fixing autogen script.

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-03-11 20:06:49 +01:00

18 lines
877 B
Diff

--- a/script/autogen.d/geoip
+++ b/script/autogen.d/geoip
@@ -5,13 +5,13 @@ autogen_get_geoip() {
echo "* Fetching geoip databases"
base=https://geolite.maxmind.com/download/geoip/database
if [ ! -f "country.mmdb" ]; then
- curl -fsSLO $base/GeoLite2-Country.tar.gz
+ command -v curl && curl -fsSLO $base/GeoLite2-Country.tar.gz || wget $base/GeoLite2-Country.tar.gz
tar -xf GeoLite2-Country.tar.gz
mv GeoLite2-Country_20??????/GeoLite2-Country.mmdb country.mmdb
rm -rf GeoLite2-Country_20??????
fi
if [ ! -f "asn.mmdb" ]; then
- curl -fsSLO $base/GeoLite2-ASN.tar.gz
+ command -v curl && curl -fsSLO $base/GeoLite2-ASN.tar.gz || wget $base/GeoLite2-ASN.tar.gz
tar -xf GeoLite2-ASN.tar.gz
mv GeoLite2-ASN_20??????/GeoLite2-ASN.mmdb asn.mmdb
rm -rf GeoLite2-ASN_20??????