debian/0000775000000000000000000000000012300442666007173 5ustar debian/copyright0000664000000000000000000000612511740371472011135 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Name: incron Upstream-Contact: Lukas Jelinek Source: http://inotify.aiken.cz/ Files: * Copyright: 2006-2012, Lukas Jelinek, License: GPL-2+ Files: debian/* Copyright: 2008-2012, Emmanuel Bouthenot License: GPL-2+ or LGPL-2.1+ or Expat License: GPL-2+ This program 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 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. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: LGPL-2.1+ This library 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. . This library 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 Lesser General Public License for more details. . You should have received a copy of the 'GNU Lesser General Public License' along with this program. If not, see . . On Debian systems the 'GNU Lesser General Public License' version 2.1 is located in '/usr/share/common-licenses/LGPL-2.1'. License: Expat Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/README.Debian0000664000000000000000000000105711740357047011244 0ustar incron for Debian ----------------- By default users are not allowed to use incron. To allow or deny some users, take a look at the information related to /etc/incron.allow and /etc/incron.deny in incrond(8) manpage. Users are not allowed to use incron by default because a bad usage of incron with (loops) can make the whole system hanging. See BUGS section in incrond(8) manpage. Be carefull with users allowed to use incron. Systems incrontabs goes to /etc/incron.d . -- Emmanuel Bouthenot , Tue, 13 Feb 2007 11:12:57 +0100 debian/README.source0000664000000000000000000000065311740357047011363 0ustar incron for Debian ----------------- 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. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. -- Emmanuel Bouthenot , Wed, 23 Sep 2009 21:08:26 +0000 debian/postrm0000664000000000000000000000065311740357047010453 0ustar #!/bin/sh # postrm script for incron set -e case "$1" in remove) if dpkg-statoverride --list /usr/bin/incrontab > /dev/null ; then dpkg-statoverride --remove /usr/bin/incrontab fi ;; purge) for f in /etc/incron.allow /etc/incron.deny /var/spool/incron ; do if dpkg-statoverride --list $f > /dev/null ; then dpkg-statoverride --remove $f fi done ;; *) ;; esac #DEBHELPER# exit 0 debian/init.d0000664000000000000000000000275311740376025010314 0ustar #! /bin/sh # # incron This init.d script is used to start incron # ### BEGIN INIT INFO # Provides: incron # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start, stop or reload incron # Description: incron is a file system events scheduler ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin INCROND=/usr/sbin/incrond NAME=incron DESC="File system events scheduler" INCROND_PID=/var/run/incrond.pid INCROND_CONF=/etc/incron.conf if [ ! -x "$INCROND" ]; then exit 0 fi # loading lsb functions . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting $DESC" log_progress_msg "$NAME" start_daemon -p "$INCROND_PID" "$INCROND" -f "$INCROND_CONF" log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" log_progress_msg "$NAME" killproc -p "$INCROND_PID" "$INCROND" log_end_msg $? ;; reload) log_daemon_msg "Reloading $DESC" log_progress_msg "$NAME" echo -n log_end_msg $? ;; restart|force-reload) $0 stop sleep 1 $0 start ;; status) if ! status_of_proc "$(basename "$INCROND")" "$NAME" ; then exit $? fi ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/changelog0000664000000000000000000000724312300442666011053 0ustar incron (0.5.10-1ubuntu1) trusty; urgency=low * Remove nonexistent inotify syscall header reference that caused FTBFS. -- Daniel T Chen Mon, 17 Feb 2014 12:23:14 -0500 incron (0.5.10-1) unstable; urgency=low * New upstream release - Remove patches merged upstream * Switch to dpkg-source 3.0 (quilt) format (Closes: #570943) * Bump Standards-Version to 3.9.3 * Add a patch to fix a FTBFS with g++ 4.7 (Closes: #667209) * Update Vcs-Browser and Vcs-Git fields * Switch debhelper compat to v9 * Switch copyright file to DEP5 format * Switch patches to DEP3 format * Some clean up in init script -- Emmanuel Bouthenot Sun, 08 Apr 2012 21:05:07 +0000 incron (0.5.9-5) unstable; urgency=low * Fix LSB Default-Stop values in init script (Closes: #559643) * Fix typos in copyright and README.Debian files. * Fix typo in manpage (update existing patch). * Maintainer became Debian Developer: adjust email, VCS and DM fields. -- Emmanuel Bouthenot Tue, 26 Jan 2010 22:27:21 +0100 incron (0.5.9-4) unstable; urgency=low * Add status command to init script (Closes: #557805). -- Emmanuel Bouthenot Tue, 24 Nov 2009 21:14:25 +0000 incron (0.5.9-3) unstable; urgency=low * Fix a FTBFS with gcc 4.4 and glibc >= 2.10 (Closes: #548786). Thanks to Fabrice Coutadeur for the patch. -- Emmanuel Bouthenot Fri, 20 Nov 2009 20:40:02 +0000 incron (0.5.9-2) unstable; urgency=low * Fix incorrects runlevels and depends in init script (Closes: 541866) * Bump Standards-Version to 3.8.3. * Minify and clean debian/rules. * Add README.source file. -- Emmanuel Bouthenot Wed, 23 Sep 2009 20:27:34 +0000 incron (0.5.9-1) unstable; urgency=low * New upstream release - Fix bad handling of arguments with spaces (Closes: #470391). * Drop the patch to fix a segfault with option '--user' (fixed upstream). * Update debian/rules (mostly cleaning). * Update debian/copyright: licences adjustments. * Add a patch to fix some typos with the word 'editing'. * Update debian/control: bump Standards-Version to 3.8.2 -- Emmanuel Bouthenot Wed, 15 Jul 2009 19:28:44 +0000 incron (0.5.8-1) unstable; urgency=low * New upstream release (Closes: #448650). * Add a patch to fix a small typo in incrontab manpage (Closes: #501587). * Remove patch gcc_43_fix (fixed upstream). * Add a patch to fix a FTBFS with GCC 4.4 (Closes: #504964). * Add a patch to fix a segfault with option '--user' (Closes: #468417). * Update debian packaging to debhelper 7. * Update url pattern in debian/watch file. * Drop Homepage from description. * Bump Standards-Version to 3.8.0. * Minor updates in debian/copyright. * Add ${misc:Depends} to incron dependencies. * Add Vcs-Browser and Vcs-Git fields in debian/control. * Add DM-Upload-Allowed field. -- Emmanuel Bouthenot Tue, 10 Feb 2009 23:49:08 +0000 incron (0.5.7-1) unstable; urgency=low * New upstream release (Closes: #418851) * Switch from dpatch to quilt * Remove patch related to inotify syscalls (not needed since libc6 >= 2.6.x) * Add patch to fix FTBFS with GCC 4.3 (Closes: #419269) * Fix lintian warning on "make clean" -- Emmanuel Bouthenot Fri, 07 Sep 2007 13:17:48 +0200 incron (0.5.5-2) unstable; urgency=low * missing dependency on adduser (Closes: #431510) -- Emmanuel Bouthenot Tue, 03 Jul 2007 12:44:21 +0200 incron (0.5.5-1) unstable; urgency=low * Initial release (Closes: #409173) -- Emmanuel Bouthenot Sat, 17 Feb 2007 11:03:57 +0100 debian/install0000664000000000000000000000004411740357047010567 0ustar incrontab usr/bin incrond usr/sbin debian/manpages0000664000000000000000000000006011740357047010712 0ustar incrontab.1 incrontab.5 incrond.8 incron.conf.5 debian/examples0000664000000000000000000000002411740357047010735 0ustar incron.conf.example debian/dirs0000664000000000000000000000005711740357047010066 0ustar etc/incron.d usr/bin usr/sbin var/spool/incron debian/docs0000664000000000000000000000001411740357047010046 0ustar README TODO debian/patches/0000775000000000000000000000000012300442531010611 5ustar debian/patches/inotify-syscalls0000664000000000000000000000102312300442531014044 0ustar Index: incron-0.5.10/inotify-cxx.h =================================================================== --- incron-0.5.10.orig/inotify-cxx.h 2012-04-06 18:19:27.000000000 -0400 +++ incron-0.5.10/inotify-cxx.h 2014-02-17 12:22:30.728484935 -0500 @@ -35,11 +35,6 @@ #include #include -// Use this if syscalls not defined -#ifndef __NR_inotify_init -#include -#endif // __NR_inotify_init - /// Event struct size #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event)) debian/patches/fix_ftbfs_gcc470000664000000000000000000000062211740374653013515 0ustar Description: Fix a FTBFS with GCC 4.7 Forwarded: http://bts.aiken.cz/view.php?id=713 Author: Emmanuel Bouthenot Bug-Debian: http://bugs.debian.org/667209 Last-Update: 2012-04-08 --- a/icd-main.cpp +++ b/icd-main.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include debian/patches/fix_typo_manpage0000664000000000000000000000305211740374761014105 0ustar Description: Fix some typos in manpages Forwarded: http://bts.aiken.cz/view.php?id=714 Author: Emmanuel Bouthenot Bug-Debian: http://bugs.debian.org/501587 Last-Update: 2012-04-08 --- a/incrontab.1 +++ b/incrontab.1 @@ -8,7 +8,7 @@ .SH "DESCRIPTION" incrontab is a table manipulator for the inotify cron (incron) system. It creates, removes, modifies and lists user tables (\fIincrontab\fR(5)). -Each user (including system users even they haven't home directories) has an incron table which can't be manipulated directly (only root can effectively change these tables and is NOT recommended to do so). +Each user (including even system users without home directories) has an incron table which can't be manipulated directly (only root can effectively change these tables and is NOT recommended to do so). All informational messages of this program are printed to the standard error output (stderr). --- a/incrontab.5 +++ b/incrontab.5 @@ -56,7 +56,7 @@ .br \fBIN_ONLYDIR\fR Only watch pathname if it is a directory -Additionaly, there is a symbol which doesn't appear in the inotify symbol set. It it \fBIN_NO_LOOP\fR. This symbol disables monitoring events until the current one is completely handled (until its child process exits). +Additionally, there is a symbol which doesn't appear in the inotify symbol set. It it \fBIN_NO_LOOP\fR. This symbol disables monitoring events until the current one is completely handled (until its child process exits). .SH "WILDCARDS" The following wildards may be used inside command specification: debian/patches/series0000664000000000000000000000006212300442466012033 0ustar fix_typo_manpage fix_ftbfs_gcc47 inotify-syscalls debian/source.lintian-overrides0000664000000000000000000000010111740366706014052 0ustar incron source: package-needs-versioned-debhelper-build-depends 9 debian/watch0000664000000000000000000000011411740357047010225 0ustar version=3 http://inotify.aiken.cz/download/incron/incron-([.0-9]*)\.tar\.gz debian/postinst0000664000000000000000000000130411740357047011004 0ustar #!/bin/sh # postinst script for incron set -e case "$1" in configure|reconfigure) # add group for incrontabs getent group incron > /dev/null 2>&1 || addgroup --system incron if ! dpkg-statoverride --list /usr/bin/incrontab > /dev/null ; then dpkg-statoverride --update --add root incron 2755 /usr/bin/incrontab fi if ! dpkg-statoverride --list /var/spool/incron > /dev/null ; then dpkg-statoverride --update --add root incron 1731 /var/spool/incron fi for f in /etc/incron.allow /etc/incron.deny ; do if ! dpkg-statoverride --list $f > /dev/null ; then dpkg-statoverride --update --add root incron 640 $f fi done ;; *) ;; esac #DEBHELPER# exit 0 debian/control0000664000000000000000000000262612300442570010576 0ustar Source: incron Section: admin Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Emmanuel Bouthenot Uploaders: Michael Prokop Build-Depends: debhelper (>= 8.9.0) Standards-Version: 3.9.3 Homepage: http://inotify.aiken.cz/ Vcs-Git: git://anonscm.debian.org/users/kolter/incron.git Vcs-Browser: http://anonscm.debian.org/git/users/kolter/incron.git Package: incron Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.2-14), adduser Description: cron-like daemon which handles filesystem events incron is an "inotify cron" system. It works like the regular cron but is driven by filesystem events instead of time events. This package provides two programs, a daemon called "incrond" (analogous to crond) and a table manipulator "incrontab" (like "crontab"). . incron uses the Linux Kernel inotify syscalls. . like cron, each user can edit its own incron tables. . incron can be used to : - notifying programs (e.g. server daemons) about changes in configuration - guarding changes in critical files (with their eventual recovery) - file usage monitoring, statistics - automatic on-crash cleanup - automatic on-change backup or versioning - new mail notification (for maildir) - server upload notification - installation management (outside packaging systems) - ... and many others debian/source/0000775000000000000000000000000011740361722010473 5ustar debian/source/format0000664000000000000000000000001411740361722011701 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211740366032010370 0ustar 9 debian/rules0000775000000000000000000000045211740362600010250 0ustar #!/usr/bin/make -f PACKAGE = incron override_dh_auto_install: echo override_dh_install: dh_install install -m 644 incron.conf.example $(CURDIR)/debian/$(PACKAGE)/etc/incron.conf touch $(CURDIR)/debian/$(PACKAGE)/etc/incron.allow touch $(CURDIR)/debian/$(PACKAGE)/etc/incron.deny %: dh $@