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

Previously the script was not finding gdb.
This commit is contained in:
Craig Leres
2025-12-11 09:58:04 -08:00
parent 5896c3eac2
commit fb557c35a6

View File

@@ -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