diff options
Diffstat (limited to 'sysutils/inotify-tools/Makefile')
-rw-r--r-- | sysutils/inotify-tools/Makefile | 15 |
1 files changed, 12 insertions, 3 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> |