git: 74edd3d9781c - main - security/zeek: Clean up some stage nits

From: Craig Leres <leres_at_FreeBSD.org>
Date: Sat, 03 Aug 2024 17:37:54 UTC
The branch main has been updated by leres:

URL: https://cgit.FreeBSD.org/ports/commit/?id=74edd3d9781c8318ce79c8f116011ece9061a34a

commit 74edd3d9781c8318ce79c8f116011ece9061a34a
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2024-08-03 17:37:29 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2024-08-03 17:37:29 +0000

    security/zeek: Clean up some stage nits
    
     - Change the legacy lib/broctl symlink from an absolute to a
       relative path.
    
     - Remove unnecessary USES=gettext-runtime
    
     - Add @dir pkg-plist entries for empty directories.
    
    Reported by:    Daniel Engberg
---
 security/zeek/Makefile  | 7 +++++--
 security/zeek/pkg-plist | 4 ++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/security/zeek/Makefile b/security/zeek/Makefile
index 6aacbcd2de35..0cd9bebfb8cd 100644
--- a/security/zeek/Makefile
+++ b/security/zeek/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	zeek
 DISTVERSION=	7.0.0
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	https://download.zeek.org/
 
@@ -15,8 +16,8 @@ BUILD_DEPENDS=	bison>=3.3:devel/bison \
 LIB_DEPENDS=	libcares.so:dns/c-ares
 RUN_DEPENDS=	c-ares>=1.25.0:dns/c-ares
 
-USES=		bison cmake compiler:c++17-lang cpe gettext-runtime perl5 \
-		python shebangfix ssl
+USES=           bison cmake compiler:c++17-lang cpe perl5 python \
+		shebangfix ssl
 
 USE_LDCONFIG=	yes
 
@@ -166,6 +167,8 @@ post-install-ZEEKCTL-on:
 	${RM} ${STAGEDIR}${PREFIX}/share/zeekctl/scripts/zeekctl-config.sh
 	${LN} -s ../../../spool/zeekctl-config.sh \
 	    ${STAGEDIR}${PREFIX}/share/zeekctl/scripts/zeekctl-config.sh
+	${RM} ${STAGEDIR}${PREFIX}/lib/broctl
+	${LN} -s zeek/python/zeekctl ${STAGEDIR}${PREFIX}/lib/broctl
 
 post-install:
 	${MV} ${STAGEDIR}${DATADIR}/site/local.zeek \
diff --git a/security/zeek/pkg-plist b/security/zeek/pkg-plist
index eaf13a68c02f..a8c69b79bf19 100644
--- a/security/zeek/pkg-plist
+++ b/security/zeek/pkg-plist
@@ -2180,4 +2180,8 @@ share/man/man8/zeek.8.gz
 %%ZEEKCTL%%@dir logs
 %%SPICY%%@dir lib/zeek/spicy
 @dir lib/zeek/plugins
+@dir include/zeek/script_opt/ZAM/maint
+@dir include/zeek/script_opt/ZAM/OPs
+@dir include/zeek/analyzer/protocol/quic
+@dir include/zeek/analyzer/protocol/ldap
 %%ZEEKCTL%%@postexec su -fm %%ZEEKUSER%% -c '%D/bin/zeekctl install; rm -f %D/spool/debug.log'