Bug 187906 - [patch] net/GeoIP: geoipupdate.sh to fetch GeoIPv6.dat
Summary: [patch] net/GeoIP: geoipupdate.sh to fetch GeoIPv6.dat
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dennis Herrmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-24 18:40 UTC by Miroslav Lachman
Modified: 2014-07-22 12:34 UTC (History)
3 users (show)

See Also:


Attachments
file.diff (447 bytes, patch)
2014-03-24 18:40 UTC, Miroslav Lachman
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Lachman 2014-03-24 18:40:00 UTC
Update for script geoipupdate.sh to fetch GeoIPv6.dat too.

Fix: Fetch it from Maxmind server. According to this page: http://dev.maxmind.com/geoip/legacy/geolite/

fetch -o - http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz | gunzip > /usr/local/share/GeoIP/GeoIPv6.dat

Patch attached with submission follows:
How-To-Repeat: Some tools are expecting /usr/local/share/GeoIP/GeoIPv6.dat 
For example sa-update from SpamAssassin package.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-24 18:40:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dhn

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2014-05-28 09:48:51 UTC
What is the state of this PR?
Comment 3 Kristian K. Nielsen 2014-06-13 14:55:47 UTC
+1

This patch would be really nice if it was included or committed to the ports tree.

Anyone?
Comment 4 Yasuhito FUTATSUKI 2014-06-14 09:01:04 UTC
Please see also Bug 189618.
This doesn't update GeoIPv6.dat atomically, ie. breaks data when starting update.
To avoid this, download data as other file, then replace the old data.
Comment 5 Miroslav Lachman 2014-06-14 10:43:15 UTC
Yes you are right, I didn't try to fix anything beside absence of IPv6 data in the same way as IPv4 data is fetched.

So please anybody commit the patch in Bug 189618
Comment 6 Yasuhito FUTATSUKI 2014-07-22 10:16:51 UTC
The maintainer of net/GeoIP has changed in Jun 12, but assignee these
Bugs is still assigned to previous maintainer....
Comment 7 Adam Weinberger freebsd_committer freebsd_triage 2014-07-22 12:34:12 UTC
Sorry, I had no idea that this PR was out there! Thanks to Yasuhito FUTATSUKI for assigning it to me!

I've committed the patch from But 189618. Thanks to everyone involved for submitting this PR!