Date: Wed, 28 Oct 2015 20:52:12 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400418 - in head/sysutils: . inotify-tools inotify-tools/files Message-ID: <201510282052.t9SKqC00013985@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Wed Oct 28 20:52:12 2015 New Revision: 400418 URL: https://svnweb.freebsd.org/changeset/ports/400418 Log: The set of command-line programs providing a simple interface to file system events to shell scripts. WWW: https://github.com/rvoicilas/inotify-tools/ PR: 200254 Submitted by: Yuri Victorovich <yuri@rawbw.com> Added: head/sysutils/inotify-tools/ head/sysutils/inotify-tools/Makefile (contents, props changed) head/sysutils/inotify-tools/distinfo (contents, props changed) head/sysutils/inotify-tools/files/ head/sysutils/inotify-tools/files/patch-libinotifytools_src_inotifytools.c (contents, props changed) head/sysutils/inotify-tools/files/patch-src_common.c (contents, props changed) head/sysutils/inotify-tools/pkg-descr (contents, props changed) head/sysutils/inotify-tools/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Wed Oct 28 20:45:48 2015 (r400417) +++ head/sysutils/Makefile Wed Oct 28 20:52:12 2015 (r400418) @@ -410,6 +410,7 @@ SUBDIR += i2c-tools SUBDIR += i7z SUBDIR += iat + SUBDIR += inotify-tools SUBDIR += installwatch SUBDIR += intel-pcm SUBDIR += iocage Added: head/sysutils/inotify-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/Makefile Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,29 @@ +# Created by: Yuri Victorovich <yuri@rawbw.com> +# $FreeBSD$ + +PORTNAME= inotify-tools +PORTVERSION= 3.14 +CATEGORIES= sysutils +DISTVERSIONPREFIX= v + +MAINTAINER= yuri@rawbw.com +COMMENT= Command-line utilities to watch for file events + +LICENSE= AGPLv3 + +LIB_DEPENDS= libinotify.so:${PORTSDIR}/devel/libinotify + +USE_GITHUB= yes +GH_ACCOUNT= rvoicilas + +USES= autoreconf gmake libtool +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-doxygen +USE_LDCONFIG= yes +INSTALL_TARGET= install-strip + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +LIBS+= -linotify + +.include <bsd.port.mk> Added: head/sysutils/inotify-tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/distinfo Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,2 @@ +SHA256 (rvoicilas-inotify-tools-v3.14_GH0.tar.gz) = 97a4fdf9132da47c2baa677c1a427c435ee55a26df42b2b74a41489b9fbd2323 +SIZE (rvoicilas-inotify-tools-v3.14_GH0.tar.gz) = 66905 Added: head/sysutils/inotify-tools/files/patch-libinotifytools_src_inotifytools.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/files/patch-libinotifytools_src_inotifytools.c Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,31 @@ +--- libinotifytools/src/inotifytools.c.orig 2010-02-02 14:55:19 UTC ++++ libinotifytools/src/inotifytools.c +@@ -1309,14 +1309,14 @@ int inotifytools_watch_recursively_with_ + + static struct dirent * ent; + char * next_file; +- static struct stat64 my_stat; ++ static struct stat my_stat; + ent = readdir( dir ); + // Watch each directory within this directory + while ( ent ) { + if ( (0 != strcmp( ent->d_name, "." )) && + (0 != strcmp( ent->d_name, ".." )) ) { + nasprintf(&next_file,"%s%s", my_path, ent->d_name); +- if ( -1 == lstat64( next_file, &my_stat ) ) { ++ if ( -1 == lstat( next_file, &my_stat ) ) { + error = errno; + free( next_file ); + if ( errno != EACCES ) { +@@ -1595,9 +1595,9 @@ int inotifytools_error() { + * @internal + */ + int isdir( char const * path ) { +- static struct stat64 my_stat; ++ static struct stat my_stat; + +- if ( -1 == lstat64( path, &my_stat ) ) { ++ if ( -1 == lstat( path, &my_stat ) ) { + if (errno == ENOENT) return 0; + fprintf(stderr, "Stat failed on %s: %s\n", path, strerror(errno)); + return 0; Added: head/sysutils/inotify-tools/files/patch-src_common.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/files/patch-src_common.c Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,14 @@ +--- src/common.c.orig 2010-02-02 14:55:19 UTC ++++ src/common.c +@@ -41,9 +41,9 @@ void print_event_descriptions() { + } + + int isdir( char const * path ) { +- static struct stat64 my_stat; ++ static struct stat my_stat; + +- if ( -1 == lstat64( path, &my_stat ) ) { ++ if ( -1 == lstat( path, &my_stat ) ) { + if (errno == ENOENT) return 0; + fprintf(stderr, "Stat failed on %s: %s\n", path, strerror(errno)); + return 0; Added: head/sysutils/inotify-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/pkg-descr Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,4 @@ +The set of command-line programs providing a simple interface +to file system events to shell scripts. + +WWW: https://github.com/rvoicilas/inotify-tools/ Added: head/sysutils/inotify-tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/inotify-tools/pkg-plist Wed Oct 28 20:52:12 2015 (r400418) @@ -0,0 +1,11 @@ +bin/inotifywait +bin/inotifywatch +include/inotifytools/inotify-nosys.h +include/inotifytools/inotify.h +include/inotifytools/inotifytools.h +lib/libinotifytools.a +lib/libinotifytools.so +lib/libinotifytools.so.0 +lib/libinotifytools.so.0.4.1 +man/man1/inotifywait.1.gz +man/man1/inotifywatch.1.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510282052.t9SKqC00013985>