Merge branch 'master' of github.com:borkmann/netsniff-ng
[netsniff-ng.git] / astraceroute / build_geoip.sh
blob6426434641d0fd4474a9a38f72872439bf0f590a
1 #!/bin/bash
3 version=1.4.8
5 wget http://www.maxmind.com/download/geoip/api/c/GeoIP-$version.tar.gz
6 tar xvf GeoIP-$version.tar.gz
7 cd GeoIP-$version && ./configure --prefix=/usr/ && make && make check && make install
8 cp libGeoIP/GeoIPUpdate.h /usr/include/
9 cp libGeoIP/GeoIP.h /usr/include/
10 cp libGeoIP/GeoIPCity.h /usr/include/
11 cd -
12 ../update-geoip.sh