To my knowledge, geoip's update program requires a license to work. However, GeoIP allows free use of their program/libraries/databases. I've attached a script that downloads the latest versions of the free databases for unlicensed users. Most useful as a monthly cron script. Feel free to make it better, or close this without taking it. Reproducible: Always
Created attachment 349084 [details] GeoIP Database update script
What is wrong with /usr/bin/geoipupdate or for that matter /usr/bin/geoipupdate-pureperl.pl ? What problems does this script solve that those two do not?
/usr/bin/geoipupdate doesn't seem to work for unlicensed users. If you run it out of the box it says "Invalid UserID". The perl implementation similarly says "License Key Invalid". This script works for unlicensed users by downloading the latest free database files. It does not download any licensed files.
I just noticed that in the portage tree, there is files/geoipupdate-r{1,2}.sh -- the attached script is similar in function. Perhaps one of those or the attached script (or some improvement on both) should be installable on a USE flag for unlicensed users. That's what I was originally thinking, I guess.
(In reply to Philippe Chaintreuil from comment #4) > I just noticed that in the portage tree, there is > files/geoipupdate-r{1,2}.sh -- the attached script is similar in function. > Perhaps one of those or the attached script (or some improvement on both) > should be installable on a USE flag for unlicensed users. That's what I was > originally thinking, I guess. geoipupdate.sh is always installed and we already maintain it properly. If you find problems with that script, please let us know (in a new bug report). *** This bug has been marked as a duplicate of bug 255147 ***