git: b59ab55b9287 - main - sysutils/filemon: Adds filemon(1), a trivial wrapper around filemon(4)

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Sun, 15 May 2022 13:33:10 UTC
The branch main has been updated by rodrigo:

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

commit b59ab55b92871c132a56a70ff7a0a303fc4908a3
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2022-05-15 13:12:31 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2022-05-15 13:21:15 +0000

    sysutils/filemon: Adds filemon(1), a trivial wrapper around filemon(4)
    
    Filemon is a simple application who log child process file access
    using filemon iocl.
    
    PR:             259099
    Reported by:    Daniel O'Connor <darius@dons.net.au>
---
 sysutils/Makefile          |  1 +
 sysutils/filemon/Makefile  | 22 ++++++++++++++++++++++
 sysutils/filemon/distinfo  |  3 +++
 sysutils/filemon/pkg-descr |  5 +++++
 4 files changed, 31 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index e01e43960e2d..53e5eede79b3 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -359,6 +359,7 @@
     SUBDIR += file
     SUBDIR += filedupe
     SUBDIR += filelight
+    SUBDIR += filemon
     SUBDIR += fileprune
     SUBDIR += fileschanged
     SUBDIR += filetype
diff --git a/sysutils/filemon/Makefile b/sysutils/filemon/Makefile
new file mode 100644
index 000000000000..8de8d25adfa1
--- /dev/null
+++ b/sysutils/filemon/Makefile
@@ -0,0 +1,22 @@
+# Created by: Rodrigo OSORIO <rodrigo@FreeBSD.org>
+
+PORTNAME=	filemon
+PORTVERSION=	0.0.1
+CATEGORIES=	sysutils
+MASTER_SITES=	http://rodrigo.osorio.free.fr/freebsd/distfiles/
+
+MAINTAINER=	rodrigo@FreeBSD.org
+COMMENT=	Trivial tool to log child process file access using filemon ioctl
+
+LICENSE=	BSD2CLAUSE
+
+MANDIRS=	${MANPREFIX}/man/man1
+
+PLIST_FILES=	bin/filemon \
+		man/man1/filemon.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1  ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/sysutils/filemon/distinfo b/sysutils/filemon/distinfo
new file mode 100644
index 000000000000..d59fcfeef73f
--- /dev/null
+++ b/sysutils/filemon/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634030329
+SHA256 (filemon-0.0.1.tar.gz) = f7b33c359ce78d3f70d19ae35fe6f1535d81a4fa3dd08143bdd0be62fc3466d7
+SIZE (filemon-0.0.1.tar.gz) = 2051
diff --git a/sysutils/filemon/pkg-descr b/sysutils/filemon/pkg-descr
new file mode 100644
index 000000000000..3f610f5a02a9
--- /dev/null
+++ b/sysutils/filemon/pkg-descr
@@ -0,0 +1,5 @@
+The filemon utility is a simple wrapper around the
+filemon(4) kernel facility. Unlike ktrace(1) the
+trace file can be a named pipe.
+
+This tool requires filemon kernel module.