debian/0000775000000000000000000000000012300460371007164 5ustar debian/copyright0000664000000000000000000000416511712016627011134 0ustar This package was debianized by Peter Makholm on Fri, 20 Oct 2006 15:55:21 +0000. It was downloaded from http://inotify-tools.sourceforge.net/ Upstream Author: Rohan McGovern, rohan@mcgovern.id.au Copyright: 2006, Rohan McGovern License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. libinotifytools/src/inotifytools/inotify-nosys.h: Copyright (C) 2005 John McCutchan libinotifytools/src/redblack.h, libinotifytools/src/redblack.c: Copyright (C) Damian Ivereigh 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See the file COPYING for details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'. The Debian packaging is Copyright 2006, Peter Makholm , and Copyright 2009 Ryan Niebur and is licensed under the GPL version 2, see above. debian/README.source0000664000000000000000000000036311712016627011354 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/libinotifytools0-dev.install0000664000000000000000000000025411712016627014651 0ustar usr/lib/libinotifytools.so usr/lib/libinotifytools.la usr/lib/libinotifytools.a usr/include/inotifytools/* usr/share/doc/inotify-tools/* usr/share/doc/libinotifytools0-dev debian/changelog0000664000000000000000000001117712300460366011051 0ustar inotify-tools (3.14-1ubuntu1) trusty; urgency=low * Use dh-autoreconf for newer arches (Closes: #727902). -- Daniel T Chen Mon, 17 Feb 2014 14:16:35 -0500 inotify-tools (3.14-1) unstable; urgency=low * debian/source/format now set to 3.0 (quilt) - remove quilt from Build-Deps and rules file as dpkg handles this * move git repository to collab-maint * remove dh_make comments from d/watch * Include NMU thanks to Moritz Muehlenhoff * Add patch to fix spelling of writable * Update Standards-Version to 3.9.3 * Add dependency from libinotifytools0-dev for symlinking to the file in libinotifytools0 * Add patch documenting inode behavior, thanks to Ondřej Kuzník (Closes: #594163) * Include watch file for new upstream location * Update Homepage to new github wiki * Update to new upstream release - Remove 59-62.patch and fix-segfault-csv.patch, applied upstream, refresh remaining changes -- Ryan Niebur Mon, 18 Jun 2012 02:49:29 -0700 inotify-tools (3.13-3.1) unstable; urgency=low * Non-maintainer upload. * Enable hardened build flags (Closes: #657841) -- Moritz Muehlenhoff Sat, 07 Apr 2012 17:53:25 +0200 inotify-tools (3.13-3) unstable; urgency=low * fix FTBFS by fixing the tests to not make bad assumptions (Closes: #558981) * prevent segfault in csv mode when there's no filename associated with the watch descriptor (LP: #408805) * update my email address -- Ryan Niebur Thu, 24 Dec 2009 13:31:36 -0800 inotify-tools (3.13-2) unstable; urgency=low * remove clarify-timeout-option patch, use the patch from upstream SVN (60.patch) * add patch, 59.patch, from upstream svn to clarify move_self in the manpage (Closes: #533536) * add patch, 61.patch, from upstream SVN to make inotifywatch react to SIGUSR1 (Closes: #509842) * add patch, 62.patch, from upstream SVN to fix recursive monitoring when you limit the events (closes: #447672) (LP: 254751) * add DMUA field * shrink debian/rules a bit more * set Standards-Version to 3.8.3 -- Ryan Niebur Sat, 05 Sep 2009 12:56:17 -0700 inotify-tools (3.13-1) unstable; urgency=low * New Upstream Version (Closes: #494782) - fixes outputting time strings (Closes: #458132) - patch for inotifytools_next_events blocking if timeout is 0 apparently applied upstream (Closes: #520672) * fix old changelog entries * add Homepage field * updated debian copyright, point to GPL-2 * remove debian/dirs, it's not needed * change Sections * debian policy 3.8.1 * depend on misc:Depends * Adopt package (Closes: #518267) * debhelper 7 * add Vcs-* headers * add symbols file * fix minus signs in man pages - use quilt * clarify the --timeout option, thanks to Ben Finney for the patch (Closes: #464829) * add README.source -- Ryan Niebur Fri, 10 Apr 2009 12:29:24 -0700 inotify-tools (3.12-1) unstable; urgency=low * New upstream. * Include headers in -dev package - Ooops. (Closes: 450769) -- Peter Makholm Mon, 03 Dec 2007 09:15:51 +0000 inotify-tools (3.11-1) unstable; urgency=high * New upstream, fixes buffer overflow in inotifytools_snprintf CVE-2007-5037 (Fixes: #443913 for testing and unstable) -- Peter Makholm Tue, 25 Sep 2007 05:20:18 +0000 inotify-tools (3.10-3) unstable; urgency=low * The libinotify packages replaces files in the pre-split package (Closes: 434148) * Added build-depend on doxygen so documentation will be buildt everywhere -- Peter Makholm Sun, 22 Jul 2007 09:50:41 +0000 inotify-tools (3.10-2) unstable; urgency=low * Split into libinotifytools0 and inotify-tools packages * Change Build-depend on linux-kernel-headers (>= 2.6.18) to linux-libc-dev | linux-kernel-header (>= 2.6.18) (Yes, we want to help backporting and really needs some linux headers) * use cdbs instead af old old old dh_make template -- Peter Makholm Tue, 17 Jul 2007 20:15:31 +0000 inotify-tools (3.10-1) unstable; urgency=low * New upstream release -- Peter Makholm Tue, 08 May 2007 19:16:54 +0200 inotify-tools (3.3-1) unstable; urgency=low * New upstream release * Use for syscall numbers (Closes: #398158, #395310) Thanks to Goswin von Brederlow and LaMont Jones -- Peter Makholm Mon, 13 Nov 2006 18:18:21 +0000 inotify-tools (2.6-1) unstable; urgency=low * Initial release (Closes: #394249) -- Peter Makholm Fri, 20 Oct 2006 15:55:21 +0000 debian/docs0000664000000000000000000000001411712016627010041 0ustar NEWS README debian/libinotifytools0.install0000664000000000000000000000003511712030176014065 0ustar usr/lib/libinotifytools.so.* debian/inotify-tools.install0000664000000000000000000000002611712016627013400 0ustar usr/share/man usr/bin debian/patches/0000775000000000000000000000000011767574300010631 5ustar debian/patches/fix-ftbfs.patch0000664000000000000000000000234211712016627013534 0ustar On HP/PA (aka PA-RISC), the test suite failed because it was making a bad assumption about the behavior of inotify assigning ids. It still makes bad assumptions, but now with this change all of them are true (for now). The original Debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558981 The discussion with the kernel maintainers about this behavior: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561880 --- a/libinotifytools/src/test.c +++ b/libinotifytools/src/test.c @@ -170,12 +170,12 @@ compare( inotifytools_wd_from_filename( "/" ), -1 ); compare( inotifytools_filename_from_wd( 1 ), 0 ); verify( inotifytools_watch_file( "/", IN_CLOSE ) ); - compare( inotifytools_wd_from_filename( "/" ), 2 ); + int new = inotifytools_wd_from_filename( "/" ); compare( inotifytools_wd_from_filename( "foobar" ), -1 ); - verify( !strcmp( inotifytools_filename_from_wd(2), "/" ) ); - verify( inotifytools_remove_watch_by_wd( 2 ) ); + verify( !strcmp( inotifytools_filename_from_wd(new), "/" ) ); + verify( inotifytools_remove_watch_by_wd( new ) ); compare( inotifytools_wd_from_filename( "/" ), -1 ); - compare( inotifytools_filename_from_wd( 2 ), 0 ); + compare( inotifytools_filename_from_wd( new ), 0 ); EXIT } debian/patches/series0000664000000000000000000000015611767573247012061 0ustar fix-ftbfs.patch fix-hyphens-in-manpages fix-spelling-of-writable.patch document-files-handled-by-their-inodes debian/patches/fix-hyphens-in-manpages0000664000000000000000000000277711767573313015233 0ustar they need to be \- Index: inotify-tools/man/inotifywait.1 =================================================================== --- inotify-tools.orig/man/inotifywait.1 2012-06-18 02:31:38.000000000 -0700 +++ inotify-tools/man/inotifywait.1 2012-06-18 02:37:12.000000000 -0700 @@ -305,9 +305,9 @@ .nf #!/bin/sh -while inotifywait -e modify /var/log/messages; do - if tail -n1 /var/log/messages | grep httpd; then - kdialog --msgbox "Apache needs love!" +while inotifywait \-e modify /var/log/messages; do + if tail \-n1 /var/log/messages | grep httpd; then + kdialog \-\-msgbox "Apache needs love!" fi done .fi @@ -318,8 +318,8 @@ console. .nf -% inotifywait -m -r --format '%:e %f' ~/test -Setting up watches. Beware: since -r was given, this may take a while! +% inotifywait \-m \-r \-\-format '%:e %f' ~/test +Setting up watches. Beware: since \-r was given, this may take a while! Watches established. CREATE badfile OPEN badfile Index: inotify-tools/man/inotifywatch.1 =================================================================== --- inotify-tools.orig/man/inotifywatch.1 2012-06-18 02:31:38.000000000 -0700 +++ inotify-tools/man/inotifywatch.1 2012-06-18 02:37:12.000000000 -0700 @@ -231,7 +231,7 @@ Watching the `~/.beagle' directory for 60 seconds: .nf -% inotifywatch -v -e access -e modify -t 60 -r ~/.beagle +% inotifywatch \-v \-e access \-e modify \-t 60 \-r ~/.beagle Establishing watches... Setting up watch(es) on /home/rohan/.beagle OK, /home/rohan/.beagle is now being watched. debian/patches/fix-spelling-of-writable.patch0000664000000000000000000000151611767574300016467 0ustar Description: Fix spelling of writable from "writeable" Author: Ryan Niebur Index: inotify-tools/src/common.c =================================================================== --- inotify-tools.orig/src/common.c 2012-06-18 02:29:38.000000000 -0700 +++ inotify-tools/src/common.c 2012-06-18 02:37:16.000000000 -0700 @@ -25,7 +25,7 @@ printf("\tmodify\t\tfile or directory contents were written\n"); printf("\tattrib\t\tfile or directory attributes changed\n"); printf("\tclose_write\tfile or directory closed, after being opened in\n" - "\t \twriteable mode\n"); + "\t \twritable mode\n"); printf("\tclose_nowrite\tfile or directory closed, after being opened in\n" "\t \tread-only mode\n"); printf("\tclose\t\tfile or directory closed, regardless of read/write " debian/patches/document-files-handled-by-their-inodes0000664000000000000000000000352611767574256020107 0ustar Description: Should document that files are handled by their inodes Debian-Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594163 Author: Ondřej Kuzník Ryan Niebur Index: inotify-tools/man/inotifywait.1 =================================================================== --- inotify-tools.orig/man/inotifywait.1 2012-06-18 02:43:47.000000000 -0700 +++ inotify-tools/man/inotifywait.1 2012-06-18 02:44:02.000000000 -0700 @@ -332,6 +332,14 @@ DELETE badfile .fi +.SH CAVEATS + +When using inotifywait, the filename that is outputted is not +guaranteed to be up to date after a move because it is the inode that +is being monitored. Additionally, none of the observed operations are +guaranteed to have been performed on the filename inotifywait was +instructed to monitor in cases when the file is known by several names +in the filesystem. .SH BUGS There are race conditions in the recursive directory watching code Index: inotify-tools/man/inotifywatch.1 =================================================================== --- inotify-tools.orig/man/inotifywatch.1 2012-06-18 02:43:47.000000000 -0700 +++ inotify-tools/man/inotifywatch.1 2012-06-18 02:43:57.000000000 -0700 @@ -254,6 +254,15 @@ 2 2 0 /home/rohan/.beagle/Indexes/KMailIndex/SecondaryIndex/ .fi +.SH CAVEATS + +When using inotifywatch, the filename that is outputted is not +guaranteed to be up to date after a move because it is the inode that +is being monitored. Additionally, none of the observed operations are +guaranteed to have been performed on the filename inotifywatch was +instructed to monitor in cases when the file is known by several names +in the filesystem. + .SH BUGS There are race conditions in the recursive directory watching code which can cause events to be missed if they occur in a directory immediately debian/watch0000664000000000000000000000013711767572235010241 0ustar version=3 https://github.com/rvoicilas/inotify-tools/downloads .*/inotify-tools-(.+)\.tar\.gz debian/control0000664000000000000000000000443612300460007010572 0ustar Source: inotify-tools Section: misc Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Ryan Niebur Build-Depends: debhelper (>= 7.0.50~), doxygen, autotools-dev, linux-libc-dev | linux-kernel-headers (>= 2.6.18) ,dh-autoreconf Standards-Version: 3.9.3 Vcs-Git: git://anonscm.debian.org/git/collab-maint/inotify-tools.git/ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/inotify-tools.git;a=summary Homepage: https://github.com/rvoicilas/inotify-tools/wiki/ Package: libinotifytools0 Architecture: any Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Replaces: inotify-tools (<< 3.10-2) Description: utility wrapper around inotify Inotify is a Linux kernel feature enabling user space programs to monitor parts of the filesystem in a efficient way. libinotifytools is a thin layer on top of the kernel interface which makes it easy to set up watches on many files at once, read events without having to deal with low-level I/O, and several utility functions for inotify- related string formatting Package: libinotifytools0-dev Architecture: any Section: libdevel Provides: libinotifytools-dev Conflicts: libinotifytools-dev Replaces: inotify-tools (<< 3.10-2) Depends: ${shlibs:Depends}, ${misc:Depends}, libinotifytools0 (= ${binary:Version}) Description: Development library and header files for libinotifytools0 Headers, static libraries, and documentation for the libinotifytools library. . libinotifytools is a thin layer on top of the kernel interface which makes it easy to set up watches on many files at once, read events without having to deal with low-level I/O, and several utility functions for inotify-related string formatting Package: inotify-tools Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: command-line programs providing a simple interface to inotify inotify-tools is a set of command-line programs for Linux providing a simple interface to inotify. These programs can be used to monitor and act upon filesystem events. inotify-tools consists of two utilities: . inotifywait simply blocks for inotify events, making it appropriate for use in shell scripts. . inotifywatch collects filesystem usage statistics and outputs counts of each inotify event. debian/source/0000775000000000000000000000000011767571720010505 5ustar debian/source/format0000664000000000000000000000001411767571720011713 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211712016627010371 0ustar 7 debian/libinotifytools0.symbols0000664000000000000000000000420511712016627014117 0ustar libinotifytools.so.0 libinotifytools0 #MINVER# _niceassert@Base 3.11 chrtostr@Base 3.11 cleanup_tree@Base 3.12 create_watch@Base 3.11 destroy_watch@Base 3.11 empty_stats@Base 3.11 event_compare@Base 3.11 filename_compare@Base 3.11 get_num@Base 3.11 inotifytools_cleanup@Base 3.12 inotifytools_error@Base 3.11 inotifytools_event_to_str@Base 3.11 inotifytools_event_to_str_sep@Base 3.11 inotifytools_filename_from_wd@Base 3.11 inotifytools_fprintf@Base 3.11 inotifytools_get_max_queued_events@Base 3.11 inotifytools_get_max_user_instances@Base 3.11 inotifytools_get_max_user_watches@Base 3.11 inotifytools_get_num_watches@Base 3.11 inotifytools_get_stat_by_filename@Base 3.11 inotifytools_get_stat_by_wd@Base 3.11 inotifytools_get_stat_total@Base 3.11 inotifytools_ignore_events_by_regex@Base 3.11 inotifytools_initialize@Base 3.11 inotifytools_initialize_stats@Base 3.11 inotifytools_next_event@Base 3.11 inotifytools_next_events@Base 3.11 inotifytools_printf@Base 3.11 inotifytools_remove_watch_by_filename@Base 3.11 inotifytools_remove_watch_by_wd@Base 3.11 inotifytools_replace_filename@Base 3.11 inotifytools_set_filename_by_filename@Base 3.11 inotifytools_set_filename_by_wd@Base 3.11 inotifytools_set_printf_timefmt@Base 3.11 inotifytools_snprintf@Base 3.11 inotifytools_sprintf@Base 3.11 inotifytools_str_to_event@Base 3.11 inotifytools_str_to_event_sep@Base 3.11 inotifytools_watch_file@Base 3.11 inotifytools_watch_files@Base 3.11 inotifytools_watch_recursively@Base 3.11 inotifytools_watch_recursively_with_exclude@Base 3.11 inotifytools_wd_from_filename@Base 3.11 inotifytools_wd_sorted_by_event@Base 3.11 isdir@Base 3.11 onestr_to_event@Base 3.11 rb_null@Base 3.11 rbcloselist@Base 3.11 rbdelete@Base 3.11 rbdestroy@Base 3.11 rbfind@Base 3.11 rbinit@Base 3.11 rblookup@Base 3.11 rbopenlist@Base 3.11 rbreadlist@Base 3.11 rbsearch@Base 3.11 rbwalk@Base 3.11 read_num_from_file@Base 3.11 record_stats@Base 3.11 remove_inotify_watch@Base 3.11 replace_filename@Base 3.11 stat_ptr@Base 3.11 tree_filename@Base 3.11 tree_wd@Base 3.11 watch_from_filename@Base 3.11 watch_from_wd@Base 3.11 wd_compare@Base 3.11 debian/rules0000775000000000000000000000035712300460022010242 0ustar #!/usr/bin/make -f %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure) override_dh_auto_configure: dh_auto_configure -- $(shell dpkg-buildflags --export=configure)