Index: sysutils/inotify-tools/Makefile =================================================================== --- sysutils/inotify-tools/Makefile +++ sysutils/inotify-tools/Makefile @@ -2,12 +2,10 @@ # $FreeBSD$ PORTNAME= inotify-tools -PORTVERSION= 3.14.01 -DISTVERSIONPREFIX= v -PORTREVISION= 1 +DISTVERSION= 3.20.1 CATEGORIES= sysutils -MAINTAINER= yuri@rawbw.com +MAINTAINER= yuri@FreeBSD.org COMMENT= Command-line utilities to watch for file events LICENSE= GPLv2 @@ -18,7 +16,6 @@ USES= autoreconf gmake libtool localbase USE_GITHUB= yes GH_ACCOUNT= rvoicilas -GH_TAGNAME= 1df9af4 GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-doxygen USE_LDCONFIG= yes Index: sysutils/inotify-tools/distinfo =================================================================== --- sysutils/inotify-tools/distinfo +++ sysutils/inotify-tools/distinfo @@ -1,2 +1,3 @@ -SHA256 (rvoicilas-inotify-tools-v3.14.01-1df9af4_GH0.tar.gz) = 3cb567344dad1fbe9a935d5a7c3f9c9bbce151df982631eb319763b2708ef4ea -SIZE (rvoicilas-inotify-tools-v3.14.01-1df9af4_GH0.tar.gz) = 70023 +TIMESTAMP = 1517817616 +SHA256 (rvoicilas-inotify-tools-3.20.1_GH0.tar.gz) = a433cc1dedba851078276db69b0e97f9fe41e4ba3336d2971adfca4b3a6242ac +SIZE (rvoicilas-inotify-tools-3.20.1_GH0.tar.gz) = 79564 Index: sysutils/inotify-tools/files/patch-src_inotifywatch.c =================================================================== --- sysutils/inotify-tools/files/patch-src_inotifywatch.c +++ sysutils/inotify-tools/files/patch-src_inotifywatch.c @@ -1,4 +1,4 @@ ---- src/inotifywatch.c.orig 2015-11-09 01:40:46 UTC +--- src/inotifywatch.c.orig 2018-01-06 11:10:51 UTC +++ src/inotifywatch.c @@ -12,6 +12,9 @@ #include @@ -10,41 +10,42 @@ #include #include #include -@@ -93,6 +96,9 @@ int main(int argc, char ** argv) - char * exc_iregex = NULL; - char * inc_regex = NULL; - char * inc_iregex = NULL; +@@ -82,6 +85,10 @@ int main(int argc, char **argv) { + char *inc_regex = NULL; + char *inc_iregex = NULL; + +#ifdef __FreeBSD__ -+ sigset_t set, oset; ++ sigset_t set, oset; +#endif // __FreeBSD__ ++ + signal(SIGINT, handle_impatient_user); - signal( SIGINT, handle_impatient_user ); - -@@ -121,11 +127,27 @@ int main(int argc, char ** argv) - return EXIT_FAILURE; - } + // Parse commandline options, aborting if something goes wrong +@@ -110,11 +117,27 @@ int main(int argc, char **argv) { + return EXIT_FAILURE; + } +#ifdef __FreeBSD__ -+ // Block some signals in libinotify's worker thread, so that -+ // handle_signal runs in the context of the main thread and -+ // the 'done' flag is actually honored. -+ sigemptyset(&set); -+ sigaddset(&set, SIGINT); -+ sigaddset(&set, SIGHUP); -+ sigaddset(&set, SIGTERM); -+ sigaddset(&set, SIGALRM); -+ pthread_sigmask(SIG_BLOCK, &set, &oset); ++ // Block some signals in libinotify's worker thread, so that ++ // handle_signal runs in the context of the main thread and ++ // the 'done' flag is actually honored. ++ sigemptyset(&set); ++ sigaddset(&set, SIGINT); ++ sigaddset(&set, SIGHUP); ++ sigaddset(&set, SIGTERM); ++ sigaddset(&set, SIGALRM); ++ pthread_sigmask(SIG_BLOCK, &set, &oset); +#endif // __FreeBSD__ + - if ( !inotifytools_initialize() ) { - warn_inotify_init_error(); - return EXIT_FAILURE; - } + if (!inotifytools_initialize()) { + warn_inotify_init_error(); + return EXIT_FAILURE; + } +#ifdef __FreeBSD__ -+ pthread_sigmask(SIG_SETMASK, &oset, NULL); ++ pthread_sigmask(SIG_SETMASK, &oset, NULL); +#endif // __FreeBSD__ + - // Attempt to watch file - // If events is still 0, make it all events. - if ( !events ) + // Attempt to watch file + // If events is still 0, make it all events. + if (!events)