git: f6edf62dccac - main - sysutils/inotify-tools: Remove Linux-specific executables fsnotify; Improve COMMENT and pkg-descr; Add test results info

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 29 Sep 2025 07:20:53 UTC
The branch main has been updated by yuri:

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

commit f6edf62dccac9b64e368eeba20b8c8541c627a87
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-29 07:19:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-29 07:20:48 +0000

    sysutils/inotify-tools: Remove Linux-specific executables fsnotify; Improve COMMENT and pkg-descr; Add test results info
---
 sysutils/inotify-tools/Makefile  | 15 ++++++++++++---
 sysutils/inotify-tools/pkg-descr | 13 +++++++++++--
 sysutils/inotify-tools/pkg-plist |  4 ----
 3 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/sysutils/inotify-tools/Makefile b/sysutils/inotify-tools/Makefile
index 298a69f5ae68..f945d96b99d6 100644
--- a/sysutils/inotify-tools/Makefile
+++ b/sysutils/inotify-tools/Makefile
@@ -1,9 +1,10 @@
 PORTNAME=	inotify-tools
 DISTVERSION=	4.25.9.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	yuri@FreeBSD.org
-COMMENT=	Command-line utilities to watch for file events
+COMMENT=	Utilities to monitor and react to filesystem events in real-time
 WWW=		https://github.com/inotify-tools/inotify-tools/
 
 LICENSE=	GPLv2
@@ -36,14 +37,22 @@ post-build-STATIC-on:
 		${CC} -pthread ${LDFLAGS} -static -o inotifywait.static inotifywait.o common.o ../libinotifytools/src/.libs/libinotifytools.a ${LOCALBASE}/lib/libinotify.a && \
 		${CC} -pthread ${LDFLAGS} -static -o inotifywatch.static inotifywatch.o common.o ../libinotifytools/src/.libs/libinotifytools.a ${LOCALBASE}/lib/libinotify.a
 
+post-install:
+	# delete fsnotify* commands because they are Linux-specific: they depend on Linux's fanotify interface
+	@${FIND} ${STAGEDIR}${PREFIX} -name "fsnotify*" -delete
+
 post-install-STATIC-on:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/inotifywait.static ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/src/inotifywatch.static ${STAGEDIR}${PREFIX}/bin
 
 do-test: # Some tests are known to fail: https://github.com/inotify-tools/inotify-tools/issues/108
-	@${ECHO} "unit test"
+	@${ECHO} "====> Unit tests"
 	@cd ${WRKSRC}/libinotifytools/src && ${GMAKE} test && ./test
-	@${ECHO} "integration test"
+	@${ECHO} "====> Integration tests"
 	@cd ${WRKSRC}/t && ${GMAKE}
 
+# tests as of 4.25.9.0:
+# Unit tests: Out of 480076 tests, 480076 succeeded and 0 failed. (1-4 tests may fail due to "Too many open files", adjusting kern.maxfiles helps)
+# Integration tests: some tests fail due to unreported MOVED_TO events, see https://github.com/inotify-tools/inotify-tools/issues/238
+
 .include <bsd.port.mk>
diff --git a/sysutils/inotify-tools/pkg-descr b/sysutils/inotify-tools/pkg-descr
index 04e30575fd3a..4b38bf1eff24 100644
--- a/sysutils/inotify-tools/pkg-descr
+++ b/sysutils/inotify-tools/pkg-descr
@@ -1,2 +1,11 @@
-The set of command-line programs providing a simple interface
-to file system events to shell scripts.
+inotify-tools is a set of command-line utilities that provides a simple
+interface to the inotify kernel subsystem. It allows users to monitor and react
+to changes in files and directories in real-time.
+
+The package includes two main utilities:
+- inotifywait: for continuous monitoring and real-time output of
+  filesystem events. It is often used in shell scripts to trigger
+  actions like deployments, backups, or log monitoring.
+- inotifywatch: gathers filesystem access statistics and outputs a
+  summary count of events received on each file or directory. It is
+  suitable for short-term monitoring to collect event statistics.
diff --git a/sysutils/inotify-tools/pkg-plist b/sysutils/inotify-tools/pkg-plist
index 54dacf82fde9..aaafdc2ef791 100644
--- a/sysutils/inotify-tools/pkg-plist
+++ b/sysutils/inotify-tools/pkg-plist
@@ -1,5 +1,3 @@
-bin/fsnotifywait
-bin/fsnotifywatch
 bin/inotifywait
 bin/inotifywatch
 %%STATIC%%bin/inotifywait.static
@@ -13,7 +11,5 @@ lib/libinotifytools.a
 lib/libinotifytools.so
 lib/libinotifytools.so.0
 lib/libinotifytools.so.0.4.1
-share/man/man1/fsnotifywait.1.gz
-share/man/man1/fsnotifywatch.1.gz
 share/man/man1/inotifywait.1.gz
 share/man/man1/inotifywatch.1.gz