Hi, since I've upgraded to FreeBSD 12, I don't find a package providing the lightweight geoip database API incl. GeoIP.h and libGeoIP.so. I only find `geoipupdate` which is the non-free variant of the API. Has the package been renamed? Thanks - Alex
On Mon, 6 Jan 2020 at 16:17, Alexander Koeppe <format_c at online.de> wrote:> > Hi, > > since I've upgraded to FreeBSD 12, I don't find a package providing the > lightweight geoip database API incl. GeoIP.h and libGeoIP.so. > > I only find `geoipupdate` which is the non-free variant of the API.Looking at ports history it seems the database it relied on is no longer available. It appears both free and paid access is available with API v2.
Alexander, Unfortunately maxmind have changed their rules and as per AdamW's notification in the geoipupdate message for version 4.1.5_1, https://svnweb.freebsd.org/ports/head/net/geoipupdate/files/pkg-message.in?view=markup advises to go to https://www.maxmind.com/en/geolite2/signup to create an account, then you will need to go to (I think it was) "My Licence" where you provide a key description (you enter text) and then you will need to generate a key. Adam advises to go to https://www.maxmind.com/en/accounts/155743/license-key for the licence, but that is actually his account number (155743), which I would suggest is inappropriate. (Adam!) ;) I have walked through the steps, and the account setup involves providing you email address, to which additional details are sent for the account creation process. Once done, you acquire the key. Once you login to your account, you will notice a number at the end of the url, after accounts/ (see above) that is your account information that you plug into your geoipupdate.conf file, and you'll need your licence key as well. Its a little convoluted, but it also provides a config file segment which you can conveniently cut/paste. Regards, Dewayne. PS our version of geoipupdate doesn't provide a version number, but the current version is 4.1.5_1, anything after 3.1.1 should work as described, if earlier, the account creation process will advise. So it continues to work.
## Alexander Koeppe (format_c at online.de):> since I've upgraded to FreeBSD 12, I don't find a package providing > the lightweight geoip database API incl. GeoIP.h and libGeoIP.so.The so-called "legacy" database format used by libGeoIP has been discontinued by MaxMind, and is only available for paying customers: https://blog.maxmind.com/2018/01/02/discontinuation-of-the-geolite-legacy-databases/ For that reason, net/GeoIP has been removed quite some time ago: https://svnweb.freebsd.org/ports?view=revision&revision=493168 And the free (as in no payment required) GeoLite2 databases have seen some licensing/handling changes, too: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ Regards, Christoph -- Spare Space
On Mon, Jan 6, 2020 at 1:17 PM Alexander Koeppe <format_c at online.de> wrote:> Hi, > > since I've upgraded to FreeBSD 12, I don't find a package providing the > lightweight geoip database API incl. GeoIP.h and libGeoIP.so. > > I only find `geoipupdate` which is the non-free variant of the API. > > Has the package been renamed? > > Thanks > > - AlexGeoIP and the GeoIP 1 database were discontinued early last year. They were replaced by net/libmaxminddb and GeoIP 2 database. I have no idea if any form of free data is available.