| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/inotify-tools/ |
Upload File : |
PORTNAME= inotify-tools
DISTVERSION= 3.22.6.0
CATEGORIES= sysutils
MAINTAINER= yuri@FreeBSD.org
COMMENT= Command-line utilities to watch for file events
WWW= https://github.com/inotify-tools/inotify-tools/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libinotify.so:devel/libinotify
USES= autoreconf compiler:c11 gmake libtool localbase
USE_GITHUB= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-doxygen
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= STATIC
OPTIONS_SUB= yes
post-patch:
@${REINPLACE_CMD} -e 's|stat64|stat|' \
${WRKSRC}/src/common.c \
${WRKSRC}/libinotifytools/src/inotifytools.c
post-build-STATIC-on:
@cd ${WRKSRC}/src && \
${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-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"
@cd ${WRKSRC}/libinotifytools/src && ${GMAKE} test && ./test
@${ECHO} "integration test"
@cd ${WRKSRC}/t && ${GMAKE}
.include <bsd.port.mk>