git: 0b82100ce449 - main - sysutils/extrace: New port: Trace exec() calls system-wide

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 18 Oct 2025 22:57:23 UTC
The branch main has been updated by eduardo:

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

commit 0b82100ce449bbe3a05757205a5d6d43b2a2d002
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-10-18 22:49:51 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-10-18 22:55:36 +0000

    sysutils/extrace: New port: Trace exec() calls system-wide
    
    extrace traces all program executions occurring on a system, or ones
    which descend from a specified process. Execution duration and exit
    status can be logged.
    Useful for debugging and security analysis.
    
    WWW: https://github.com/leahneukirchen/extrace-freebsd
    
    Reported by:    Leah Neukirchen (author) via e-mail
---
 sysutils/Makefile          |  1 +
 sysutils/extrace/Makefile  | 27 +++++++++++++++++++++++++++
 sysutils/extrace/distinfo  |  3 +++
 sysutils/extrace/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 7341fe812938..de3906cdfff8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -370,6 +370,7 @@
     SUBDIR += evtviewer
     SUBDIR += exa
     SUBDIR += extipl
+    SUBDIR += extrace
     SUBDIR += eza
     SUBDIR += ezjail
     SUBDIR += f-upgrade
diff --git a/sysutils/extrace/Makefile b/sysutils/extrace/Makefile
new file mode 100644
index 000000000000..d78835bcf87d
--- /dev/null
+++ b/sysutils/extrace/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	extrace
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1
+CATEGORIES=	sysutils
+
+MAINTAINER=	eduardo@FreeBSD.org
+COMMENT=	Trace exec() calls system-wide
+WWW=		https://github.com/leahneukirchen/extrace-freebsd
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	leahneukirchen
+GH_PROJECT=	extrace-freebsd
+
+MAKE_ARGS=	CFLAGS="${CFLAGS}"
+CFLAGS+=	-fPIC
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
+
+.include <bsd.port.mk>
diff --git a/sysutils/extrace/distinfo b/sysutils/extrace/distinfo
new file mode 100644
index 000000000000..683324537ce4
--- /dev/null
+++ b/sysutils/extrace/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760822101
+SHA256 (leahneukirchen-extrace-freebsd-v0.1_GH0.tar.gz) = 626a4a8f18f3f2740c04524159676a0907237a2f8d44a66649eeeb0eb521d909
+SIZE (leahneukirchen-extrace-freebsd-v0.1_GH0.tar.gz) = 4954
diff --git a/sysutils/extrace/pkg-descr b/sysutils/extrace/pkg-descr
new file mode 100644
index 000000000000..3abf656a773e
--- /dev/null
+++ b/sysutils/extrace/pkg-descr
@@ -0,0 +1,4 @@
+extrace traces all program executions occurring on a system, or ones
+which descend from a specified process. Execution duration and exit
+status can be logged.
+Useful for debugging and security analysis.