Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2025 17:58:27 +0000
From:      Craig Leres <leres@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fb557c35a6fe - main - security/zeek: Update PATH the crash-diag so it can locate gdb
Message-ID:  <693b0643.f2aa.6ee44bd7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?693b0643.f2aa.6ee44bd7>