git: 21c2a7907ece - 2022Q2 - www/trafficserver: Fix packaging

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Thu, 14 Apr 2022 14:53:58 UTC
The branch 2022Q2 has been updated by lwhsu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=21c2a7907ece9c02d7936bad68e348719f10b336

commit 21c2a7907ece9c02d7936bad68e348719f10b336
Author:     Hung-Yi Chen <gaod@hychen.org>
AuthorDate: 2022-04-14 14:50:12 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-04-14 14:53:39 +0000

    www/trafficserver: Fix packaging
    
    PR:             263022
    Reported by:    rainer@ultra-secure.de
    MFH:            2022Q2
    
    (cherry picked from commit de9397402c02d8f6266701dd6625bc6287887e3a)
---
 www/trafficserver/Makefile  | 5 +++--
 www/trafficserver/pkg-plist | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/www/trafficserver/Makefile b/www/trafficserver/Makefile
index 211a2ef026b5..4499d718d6c2 100644
--- a/www/trafficserver/Makefile
+++ b/www/trafficserver/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	trafficserver
 PORTVERSION=	9.1.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www
 MASTER_SITES=	APACHE/${PORTNAME}
 
@@ -50,10 +50,11 @@ CONFIGURE_ARGS=	--with-pcre=${LOCALBASE} \
 		--enable-mime-sanity-check \
 		--enable-experimental-plugins
 
-OPTIONS_DEFINE=	DOCS WCCP MEMCACHED IMAGEMAGICK X11
+OPTIONS_DEFINE=	DOCS GEOIP WCCP MEMCACHED IMAGEMAGICK X11
 OPTIONS_SUB=	yes
 PLIST_SUB+=	ARCH="${ARCH:C/powerpc64.*/powerpc/}"
 
+GEOIP_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
 WCCP_DESC=	Enable WCCPv2 protocol
 WCCP_CONFIGURE_ENABLE=	wccp
 
diff --git a/www/trafficserver/pkg-plist b/www/trafficserver/pkg-plist
index 5134d771097b..2f43368d0570 100644
--- a/www/trafficserver/pkg-plist
+++ b/www/trafficserver/pkg-plist
@@ -146,7 +146,7 @@ libexec/trafficserver/inliner.so
 libexec/trafficserver/ja3_fingerprint.so
 libexec/trafficserver/libloader.so
 %%IMAGEMAGICK%%libexec/trafficserver/magick.so
-libexec/trafficserver/maxmind_acl.so
+%%GEOIP%%libexec/trafficserver/maxmind_acl.so
 libexec/trafficserver/memory_profile.so
 libexec/trafficserver/metalink.so
 libexec/trafficserver/money_trace.so