diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/geoip.rb | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/Library/Formula/geoip.rb b/Library/Formula/geoip.rb index d1d28aded..6c8a41332 100644 --- a/Library/Formula/geoip.rb +++ b/Library/Formula/geoip.rb @@ -4,12 +4,8 @@ class Geoip < Formula homepage "https://github.com/maxmind/geoip-api-c" stable do - url "https://github.com/maxmind/geoip-api-c/archive/v1.6.2.tar.gz" - sha1 "aa9a91b61667b605f62964c613e15400cbca2cae" - - # Download test data so `make check` works. Fixed in HEAD. - # See https://github.com/maxmind/geoip-api-c/commit/722707cc3a0adc06aec3e98bc36e7262f67ec0da - patch :DATA + url "https://github.com/maxmind/geoip-api-c/archive/v1.6.3.tar.gz" + sha1 "7561dcb5ba928a3f190426709063829093283c32" end head "https://github.com/maxmind/geoip-api-c.git" @@ -67,24 +63,3 @@ class Geoip < Formula system "#{bin}/geoiplookup", "-f", "GeoIP.dat", "8.8.8.8" end end - -__END__ -diff --git a/bootstrap b/bootstrap -index 30fc0f9..f20f095 100755 ---- a/bootstrap -+++ b/bootstrap -@@ -1,5 +1,14 @@ - #!/bin/sh - -+# dl the dat file if needed -+DIR="$( cd "$( dirname "$0" )" && pwd )" -+ -+# download geolite database for the tests -+mkdir -p $DIR/data -+if [ ! -f $DIR/data/GeoIP.dat ]; then -+ curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz | gzip -d > $DIR/data/GeoIP.dat -+fi -+ - # make sure to use the installed libtool - rm -f ltmain.sh - autoreconf -fiv |
