diff options
| author | makefu <github@syntax-fehler.de> | 2013-03-07 11:40:38 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2013-03-07 11:40:38 +0100 |
| commit | 7fa8fb85b072f612adb322f8a02617e1bd737020 (patch) | |
| tree | 683df8268baae71451633518aa7ff7ea258a4aa8 /util/lib/geo/Makefile | |
| parent | dbe2d838ba6834788265029162b2dd7d82473335 (diff) | |
| parent | ef4eb3189363f5cd9a33b43693322a68d3142979 (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'util/lib/geo/Makefile')
| -rw-r--r-- | util/lib/geo/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/lib/geo/Makefile b/util/lib/geo/Makefile new file mode 100644 index 00000000..d13cd471 --- /dev/null +++ b/util/lib/geo/Makefile @@ -0,0 +1,15 @@ +all: node_modules GeoLiteCity.dat + +node_modules: package.json + npm install + @touch -r $< $@ + +GeoLiteCity.dat: + @test -e GeoLiteCity.dat && ln -s GeoLiteCity.dat $@ || { \ + echo 'No GeoIP City database found.'; \ + echo 'You can get one from http://dev.maxmind.com/geoip/geolite:'; \ + echo ' wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'; \ + echo ' gunzip GeoLiteCity.dat.gz'; \ + exit 23; \ + } + |
