Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255147 - dev-libs/geoip request for use="network-cron"
Summary: dev-libs/geoip request for use="network-cron"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 471172 (view as bug list)
Depends on: 255965
Blocks:
  Show dependency tree
 
Reported: 2009-01-16 08:59 UTC by toto
Modified: 2013-05-27 01:35 UTC (History)
2 users (show)

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


Attachments
geoipupdate.sh (geoipupdate.sh,776 bytes, text/plain)
2011-06-07 17:46 UTC, Christian Ruppert (idl0r)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description toto 2009-01-16 08:59:10 UTC
Seems need release it, like put file with contents for ex.:
#!/bin/sh
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /usr/share/GeoIP/GeoIP.dat.gz && rm /usr/share/GeoIP/GeoIP.dat && gunzip /usr/share/GeoIP/GeoIP.dat.gz
thx

Reproducible: Always
Comment 1 toto 2009-01-16 09:01:54 UTC
http://www.maxmind.com/app/geoip_country
url with data file =]
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2009-01-22 09:19:11 UTC
Thank you for report. But I'd better fixed bug 255965 and used geoipupdate-pureperl.pl. We'll see how it goes...
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2009-03-01 10:52:13 UTC
Well, I was wrong: geoipupdate-pureperl.pl and other geoipupdate does not work with geolight databases. We need to find another solution. Either cron job or I'm thinking about another package - geolite-databases with automatic updates...
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-07 14:54:42 UTC
If we are to do this, then we need to update the IPv6 database too if USE=ipv6 (see bug #358287).
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2011-06-07 17:46:54 UTC
Created attachment 276171 [details]
geoipupdate.sh

We're using this for infra and we'd like to share that with others.

<snip>
# Update geoip dbs every fourth of a month.
# They update it once per month, first or third of month.
0 0 4 * * root /usr/local/sbin/geoipupdate.sh
</snip>
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2011-06-16 15:02:05 UTC
Thank you Christian! I dropped bind part and added script to the tree.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-27 01:35:33 UTC
*** Bug 471172 has been marked as a duplicate of this bug. ***