It looks as though after version 1.6.0-r1, the ebuilds for this package no longer included the renaming of the GeoLiteCity.dat and GeoLiteCityv6.dat files to GeoIPCity.dat and GeoIPCityv6.dat, respectively. When running the geoiplookup command on an IP address, the City information is no longer shown. When I rename the files, it works correctly: ======================================================================== vitesse GeoIP # pwd /usr/share/GeoIP vitesse GeoIP # ls vitesse GeoIP # geoipupdate.sh -f Updating GeoIP databases... 2014-10-19 20:23:45 URL:https://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz [679060/679060] -> "geoipupdate.oih3Ly7LbN/GeoIPv6.dat.gz" [1] 2014-10-19 20:25:24 URL:https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz [11860823/11860823] -> "geoipupdate.oih3Ly7LbN/GeoLiteCity.dat.gz" [1] 2014-10-19 20:27:16 URL:https://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz [12111257/12111257] -> "geoipupdate.oih3Ly7LbN/GeoLiteCityv6.dat.gz" [1] 2014-10-19 20:27:20 URL:https://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz [438450/438450] -> "geoipupdate.oih3Ly7LbN/GeoIP.dat.gz" [1] 2014-10-19 20:27:38 URL:https://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz [2018118/2018118] -> "geoipupdate.oih3Ly7LbN/GeoIPASNum.dat.gz" [1] 2014-10-19 20:27:50 URL:https://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz [2290672/2290672] -> "geoipupdate.oih3Ly7LbN/GeoIPASNumv6.dat.gz" [1] vitesse GeoIP # ls GeoIPASNum.dat GeoIPASNumv6.dat GeoIP.dat GeoIPv6.dat GeoLiteCity.dat GeoLiteCityv6.dat vitesse GeoIP # geoiplookup 74.125.227.105 GeoIP Country Edition: US, United States GeoIP ASNum Edition: AS15169 Google Inc. vitesse GeoIP # perl-rename 's/Lite/IP/' *Lite* vitesse GeoIP # ls GeoIPASNum.dat GeoIPASNumv6.dat GeoIPCity.dat GeoIPCityv6.dat GeoIP.dat GeoIPv6.dat vitesse GeoIP # geoiplookup 74.125.227.105 GeoIP Country Edition: US, United States GeoIP City Edition, Rev 1: US, CA, California, Mountain View, 94043, 37.419201, -122.057404, 807, 650 GeoIP ASNum Edition: AS15169 Google Inc. ======================================================================== I believe that version 1.6.0-r3 may also be affected by this, but I haven't looked tried it. Thanks^^
Yes, README.md seems to note: Free users should create symlinks for the GeoIP databases. For example: ``` cd /usr/local/share/GeoIP ln -s GeoLiteCity.dat GeoIPCity.dat ln -s GeoLiteCountry.dat GeoIPCountry.dat ln -s GeoLiteASNum.dat GeoIPASNum.dat ``` which seems a bit odd. We could create those symlinks in geoipupdate.sh
Created attachment 387026 [details, diff] geoipupdate.sh-525924.patch Would this do?
It's difficult for me to test now since I once again hit the limit for my IP address.
Also, I see now that the extra cd call shouldn't be needed. It doesn't harm in testing though.
Hm, they were always named that way. I'm not sure if they're indented to be renamed.
(In reply to Christian Ruppert (idl0r) from comment #5) > Hm, they were always named that way. I'm not sure if they're indented to be > renamed. Oh, I haven't seen Jer's comment so ignore mine.
Created attachment 387118 [details] files/geoipupdate-r5.sh Or you could replace the whole file instead of patching...
Jer, there's a missing / on that sed call: "sed: -e expression #1, char 15: unterminated `s' command sed: -e expression #1, char 15: unterminated `s' command" Otherwise it seems to work as expected. (Just tested the patch).
Fixed in 1.6.2 and 1.6.2-r1.