Skip to content

Commit

Permalink
Rewrite to avoid using cmake
Browse files Browse the repository at this point in the history
We can get away with a simple download script.
  • Loading branch information
bassosimone committed Mar 27, 2019
1 parent a4ec769 commit fa5e355
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

15 changes: 0 additions & 15 deletions CMakeLists.txt

This file was deleted.

27 changes: 27 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh
set -ex

# autogen_get_geoip is copied from MK v0.10.0. It downloads the
# maxmind DB databases from MaxMind's site.
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
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
tar -xf GeoLite2-ASN.tar.gz
mv GeoLite2-ASN_20??????/GeoLite2-ASN.mmdb asn.mmdb
rm -rf GeoLite2-ASN_20??????
fi
}

version=`date +%Y%m%d`
autogen_get_geoip
curl -fsSLo ca-bundle.pem https://curl.haxx.se/ca/cacert.pem
tar -cvzf "generic-assets-${version}.tar.gz" \
"README.md" "asn.mmdb" "ca-bundle.pem" "country.mmdb"
1 change: 0 additions & 1 deletion cmake/Modules
Submodule Modules deleted from 38755d

0 comments on commit fa5e355

Please sign in to comment.