Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 611192

Summary: dev-libs/geoip: geoipupdate.sh script no longer works
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=674852
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 611286    

Description Hanno Böck gentoo-dev 2017-02-28 11:00:54 UTC
Our dev-libs/geoip package contains a script geoipupdate.sh that updates the geoip database. However it doesn't work, probably because upstream URLs changed. It also doesn't print any error message on failure, thus it may confuse users.

Given that upstream maintains its own update script and we already have an ebuild for it (net-misc/geoipupdate), the best course of action is probably to just remove it and point to the geoipupdate package.
Comment 1 Hanno Böck gentoo-dev 2017-02-28 11:36:43 UTC
It seems net-misc/geoipupdate is not really working either.

It has the following problems:
* geoip expects files with different names, symlinks have to be set:
GeoIPASNum.dat -> GeoLiteASNum.dat
GeoIPCity.dat -> GeoLiteCity.dat
GeoIPCityv6.dat -> GeoLiteCityv6.dat
GeoIP.dat -> GeoLiteCountry.dat
* GeoIPASNumv6.dat is missing, but can be manually downloaded here:
https://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz

I'm not sure what to do here, maybe we could add a script "realgeoipupdate" to geoipupdate that runs it and does all this fixing up.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2017-03-01 06:50:19 UTC
Should be fixed in -r1.