net-mgmt/gnu-ipcalc: Fix hardcoded path to geoip database
PR: 258400 Reported by: freebsd@ohreally.nl
This commit is contained in:
parent
efc2290ca0
commit
1817b81260
@ -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>
|
||||
|
8
net-mgmt/gnu-ipcalc/files/pkg-message.in
Normal file
8
net-mgmt/gnu-ipcalc/files/pkg-message.in
Normal 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
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user