diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2021-09-10 16:32:39 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2021-09-10 16:32:39 +0000 |
commit | 1817b81260d995086bbb8dafed2b7a8b168a449d (patch) | |
tree | d5282f1154b3c9235832bdd29a9ef58d8e26eb53 /net-mgmt | |
parent | efc2290ca02ccbf4f45d3bbd439fb0902fa77d35 (diff) | |
download | ports-1817b81260d995086bbb8dafed2b7a8b168a449d.tar.gz ports-1817b81260d995086bbb8dafed2b7a8b168a449d.zip |
net-mgmt/gnu-ipcalc: Fix hardcoded path to geoip database
PR: 258400
Reported by: freebsd@ohreally.nl
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/gnu-ipcalc/Makefile | 6 | ||||
-rw-r--r-- | net-mgmt/gnu-ipcalc/files/pkg-message.in | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/gnu-ipcalc/Makefile b/net-mgmt/gnu-ipcalc/Makefile index ded809a05f5b..89ae4cf4fc54 100644 --- a/net-mgmt/gnu-ipcalc/Makefile +++ b/net-mgmt/gnu-ipcalc/Makefile @@ -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> diff --git a/net-mgmt/gnu-ipcalc/files/pkg-message.in b/net-mgmt/gnu-ipcalc/files/pkg-message.in new file mode 100644 index 000000000000..e1299f5caf8f --- /dev/null +++ b/net-mgmt/gnu-ipcalc/files/pkg-message.in @@ -0,0 +1,8 @@ +[ +{ type: install + message: <<EOM +To obtain MaxMind's GeoIP tables, install net/geoipupdate +and run %%LOCALBASE%%/bin/geoipupdate manually. +EOM +} +] |