Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471172 - dev-libs/geoip update database script for unlicensed users
Summary: dev-libs/geoip update database script for unlicensed users
Status: RESOLVED DUPLICATE of bug 255147
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 17:31 UTC by Philippe Chaintreuil
Modified: 2013-05-27 01:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
GeoIP Database update script (geolite_db_update.sh,5.04 KB, text/plain)
2013-05-24 17:32 UTC, Philippe Chaintreuil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Chaintreuil 2013-05-24 17:31:45 UTC
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
Comment 1 Philippe Chaintreuil 2013-05-24 17:32:30 UTC
Created attachment 349084 [details]
GeoIP Database update script
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-25 15:55:44 UTC
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?
Comment 3 Philippe Chaintreuil 2013-05-25 20:59:15 UTC
/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.
Comment 4 Philippe Chaintreuil 2013-05-25 21:03:34 UTC
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.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-27 01:35:33 UTC
(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 ***