diff options
author | makefu <root@pigstarter.de> | 2013-02-08 10:11:01 +0000 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-02-08 10:11:01 +0000 |
commit | 194e1622b0b901780ceea40ea9c453c573b69995 (patch) | |
tree | dc6a3c82a744733d5ce926759b7d9f0a40473d29 /util/lib/geo/Makefile | |
parent | 59ccc0fd871c4bbd12066f2f6aacf835a839885d (diff) | |
parent | dd6ad821a5a5bcb633b28a6d35e5e612d1f59094 (diff) |
Merge branch 'master' of https://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; \ + } + |