GeoIP information is not displayed. I guess this is because in the file ipcalc-maxmind.c the paths to the MaxMind databases are hardcoded as /usr/share/GeoIP, while `geoipupdate' on FreeBSD stores the databases in /usr/local/share/GeoIP.
See also /usr/local/etc/GeoIP.conf, which is part of net/geoipupdate.
Created attachment 227810 [details]
Fix hardcoded path to geoip db
Thanks again for the report. As I don't have an account, could you please test the attached patch? I'm also displaying a message on how to update the database. I've checked other ports and it seems to be the preferred way to handle this instead of registering it as a dependency.
I've just got myself an account and it seems to work as expected:
root@portjail:/usr/ports/net-mgmt/gnu-ipcalc # ipcalc -g 18.104.22.168
But I still appreciate your feedback :-)
Works like a charm.
Thanks again, Emanuel!
A commit in branch main references this bug:
Author: Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2021-09-10 16:32:39 +0000
Commit: Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2021-09-10 16:32:39 +0000
net-mgmt/gnu-ipcalc: Fix hardcoded path to geoip database
Reported by: firstname.lastname@example.org
net-mgmt/gnu-ipcalc/Makefile | 6 ++++++
net-mgmt/gnu-ipcalc/files/pkg-message.in (new) | 8 ++++++++
2 files changed, 14 insertions(+)
Committed, thanks Rob.