Index: head/devel/gamin/Makefile =================================================================== --- head/devel/gamin/Makefile (revision 487658) +++ head/devel/gamin/Makefile (revision 487659) @@ -1,64 +1,64 @@ # Created by: Joe Marcus Clarke # $FreeBSD$ # $MCom: ports/trunk/devel/gamin/Makefile 18634 2013-07-26 10:42:35Z kwm $ PORTNAME= gamin PORTVERSION= 0.1.10 -PORTREVISION?= 9 +PORTREVISION?= 10 CATEGORIES?= devel MASTER_SITES= http://people.gnome.org/~veillard/gamin/sources/ MAINTAINER?= ports@FreeBSD.org COMMENT?= File and directory monitoring system USES+= gettext gmake libtool pathfix pkgconfig USE_GNOME?= glib20 USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS?=--with-html-dir=${PREFIX}/share/doc \ --without-python CPPFLAGS+= -DHAVE_LINUX -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip CONFLICTS= fam-[0-9]* .if !defined(GAMIN_SLAVE) OPTIONS_DEFINE= GAM_POLLER LIBINOTIFY RUN_AS_EUID OPTIONS_DEFAULT=RUN_AS_EUID GAM_POLLER_DESC=Use gamin's poller instead of kqueue's LIBINOTIFY_DESC=Use libinotify as the FAM backend RUN_AS_EUID_DESC=Drop privileges to effective user .endif .include .if !defined(GAMIN_SLAVE) .if ${PORT_OPTIONS:MGAM_POLLER} CPPFLAGS+= -DUSE_GAMIN_POLLER=1 .endif .if ${PORT_OPTIONS:MLIBINOTIFY} CONFIGURE_ARGS+=--enable-inotify LIBS+= -linotify LIB_DEPENDS+= libinotify.so:devel/libinotify .else CONFIGURE_ARGS+=--disable-inotify .endif .endif .if ${PORT_OPTIONS:MRUN_AS_EUID} CPPFLAGS+= -DRUN_AS_EUID=1 .endif post-patch: @${REINPLACE_CMD} "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/server/gam_conf.c .if !defined(GAMIN_SLAVE) regression-test: build @${ECHO_MSG} "===> Running gamin regression tests" @(cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ Makefile ${MAKE_ARGS} tests) .endif .include Index: head/devel/gamin/pkg-message =================================================================== --- head/devel/gamin/pkg-message (revision 487658) +++ head/devel/gamin/pkg-message (revision 487659) @@ -1,26 +1,21 @@ =============================================================================== Gamin will only provide realtime notification of changes for at most n files, where n is the minimum value between (kern.maxfiles * 0.7) and (kern.maxfilesperproc - 200). Beyond that limit, files will be polled. If you often open several large folders with Nautilus, you might want to increase the kern.maxfiles tunable (you do not need to set kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles). -For a typical desktop, add the following line to /boot/loader.conf, then -reboot the system: - - kern.maxfiles="25000" - The behavior of gamin can be controlled via the various gaminrc files. See http://www.gnome.org/~veillard/gamin/config.html on how to create these files. In particular, if you find gam_server is taking up too much CPU time polling for changes, something like the following may help in one of the gaminrc files: # reduce polling frequency to once per 10 seconds # for UFS file systems in order to lower CPU load fsset ufs poll 10 =============================================================================== Index: head/devel/libinotify/Makefile =================================================================== --- head/devel/libinotify/Makefile (revision 487658) +++ head/devel/libinotify/Makefile (revision 487659) @@ -1,23 +1,24 @@ # Created by: stas # $FreeBSD$ PORTNAME= libinotify PORTVERSION= 20180201 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= sunpoet@FreeBSD.org COMMENT= Kevent based inotify compatible library LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes USES= autoreconf libtool GH_ACCOUNT= ${PORTNAME}-kqueue GH_PROJECT= ${PORTNAME}-kqueue USE_GITHUB= yes .include Index: head/devel/libinotify/pkg-message =================================================================== --- head/devel/libinotify/pkg-message (revision 487658) +++ head/devel/libinotify/pkg-message (revision 487659) @@ -1,44 +1,39 @@ ============================================================================ Libinotify functionality on FreeBSD is missing support for - detecting a file being moved into or out of a directory within the same filesystem - certain modifications to a symbolic link (rather than the file it points to.) in addition to the known limitations on all platforms using kqueue(2) where various open and close notifications are unimplemented. This means the following regression tests will fail: Directory notifications: IN_MOVED_FROM IN_MOVED_TO Open/close notifications: IN_OPEN IN_CLOSE_NOWRITE IN_CLOSE_WRITE Symbolic Link notifications: IN_DONT_FOLLOW IN_ATTRIB IN_MOVE_SELF IN_DELETE_SELF Kernel patches to address the missing directory and symbolic link notifications are available from: https://github.com/libinotify-kqueue/libinotify-kqueue/tree/master/patches ============================================================================= You might want to consider increasing the kern.maxfiles tunable if you plan to use this library for applications that need to monitor activity of a lot of files. - -If the default on your system is too low, add the following line to -/boot/loader.conf, then reboot the system: - - kern.maxfiles="25000" =============================================================================