git: fb557c35a6fe - main - security/zeek: Update PATH the crash-diag so it can locate gdb

From: Craig Leres <leres_at_FreeBSD.org>
Date: Thu, 11 Dec 2025 17:58:27 UTC
The branch main has been updated by leres:

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

commit fb557c35a6fe895a00d26f6557113bcb2ccac092
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2025-12-11 17:58:04 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2025-12-11 17:58:04 +0000

    security/zeek: Update PATH the crash-diag so it can locate gdb
    
    Previously the script was not finding gdb.
---
 security/zeek/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/security/zeek/Makefile b/security/zeek/Makefile
index 7760be2c5d1b..0488d6873fb4 100644
--- a/security/zeek/Makefile
+++ b/security/zeek/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	zeek
 DISTVERSION=	8.0.4
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	https://download.zeek.org/
 
@@ -160,6 +161,11 @@ STRIP=
 USE_RC_SUBR=	zeek
 .endif
 
+# Let crash-diag find gdb (when installed)
+post-patch:
+	${REINPLACE_CMD} -e "2s,^\#,export PATH=${LOCALBASE}/bin"':$${PATH}', \
+	    ${WRKSRC}/auxil/zeekctl/bin/crash-diag
+
 post-install:
 	${MV} ${STAGEDIR}${DATADIR}/site/local.zeek \
 	    ${STAGEDIR}${DATADIR}/site/local.zeek.sample