summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Teixeira <eduardo@FreeBSD.org>2025-10-18 23:49:51 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2025-10-18 23:55:36 +0100
commit0b82100ce449bbe3a05757205a5d6d43b2a2d002 (patch)
treeb8c1fff76cd479e3203c8b4d9387545977af2413
parentwww/grafana: Update 12.1.0 => 12.2.0 (diff)
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
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/extrace/Makefile27
-rw-r--r--sysutils/extrace/distinfo3
-rw-r--r--sysutils/extrace/pkg-descr4
4 files changed, 35 insertions, 0 deletions
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.