net-mgmt/gnu-ipcalc: Fix hardcoded path to geoip database

PR:		258400
Reported by:	freebsd@ohreally.nl
This commit is contained in:
Emanuel Haupt 2021-09-10 18:32:39 +02:00
parent efc2290ca0
commit 1817b81260
2 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= ipcalc
PORTVERSION= 1.0.1
PORTREVISION= 1
CATEGORIES= net-mgmt
PKGNAMEPREFIX= gnu-
@ -25,5 +26,10 @@ MAXMINDDB_DESC= Enable GeoIP1 + GeoIP2 Support
DOCS_BUILD_DEPENDS= ronn:textproc/rubygem-ronn
MAXMINDDB_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb
MAXMINDDB_MESON_ENABLED= use_maxminddb
MAXMINDDB_SUB_FILES= pkg-message
post-patch-MAXMINDDB-on:
@${REINPLACE_CMD} -e "s|/usr/share|${LOCALBASE}/share|g" \
${WRKSRC}/ipcalc-maxmind.c
.include <bsd.port.mk>

View File

@ -0,0 +1,8 @@
[
{ type: install
message: <<EOM
To obtain MaxMind's GeoIP tables, install net/geoipupdate
and run %%LOCALBASE%%/bin/geoipupdate manually.
EOM
}
]