On 2016/05/25 17:02, Frederic Cambus wrote:
> Hi ports@,
> 
> Here is a new port for net/libmaxminddb.
> 
> There is an example program [1] provided in the Git repository in order
> to test the library, which can be compiled as follow:
> 
> gcc example.c -I/usr/local/include -L/usr/local/lib -lmaxminddb -oexample
> 
> After downloading a GeoLite2 database [2], it can be tested as follow:
> 
> example GeoLite2-Country.mmdb 129.128.5.194
> example GeoLite2-City.mmdb 129.128.5.194
> 
> [1] 
> https://github.com/maxmind/libmaxminddb/blob/master/doc/libmaxminddb.md#example
> [2] https://dev.maxmind.com/geoip/geoip2/geolite2/
> 
> From DESCR:
> 
> The libmaxminddb library provides a C library for reading MaxMind DB files,
> including the GeoIP2 databases from MaxMind. This is a custom binary format
> designed to facilitate fast lookups of IP adresses while allowing for great
> flexibility in the type of data associated with an address.
> 

We could fit a bit more information into COMMENT, how about this?

library for MaxMind GeoIP2/GeoLite2 IP geolocation databases

Do you fancy adding GeoLite2 dbs as subpackages, something like
net/GeoIP does? (They could go in a separate port but I think it
makes it easier for people to find them if it's in the main one).

Otherwise looking good.

Reply via email to