BE AWARE! GeoIP legacy databases are deprecated upstream and updates to these
will stop. The free GeoLite legacy databases will no longer be updated after
1 April 2018. See https://blog.maxmind.com/tag/geolite-legacy/
The free GeoLite2 databases could be used instead e.g. for command line lookup:
# pkg_add libmaxminddb geolite2-country
$ mmdblookup -f /var/db/GeoIP/GeoLite2-Country.mmdb -i 9.9.9.9 country iso_code
(GEOIP_CITY_EDITION_REV0 and GEOIP_CITY_EDITION_REV1). If people want to use the
commercial DB they still can since that's a @sample and won't be overwritten on
install/update.
discussed with and ok sthen@ (maintainer)
(along with a maintainer Makefile target to ease updates).
Handled properly with @sample to allow user updates.
Note that upstream no longer bundles the geoipupdate tool in the main
GeoIP software distribution (thus making this package LGPL only rather
than having any GPL components). geoipupdate could be provided as a
separate port if there's interest (it's only useful for paid subs
though).
Submitted by Xavier Santolaria <xavier@santolaria.net>.
GeoIP is a C library that enables the user to find the country that any IP
address or hostname originates from.