--- inosync-0.2.1.orig/debian/manpages +++ inosync-0.2.1/debian/manpages @@ -0,0 +1 @@ +inosync.1 --- inosync-0.2.1.orig/debian/examples +++ inosync-0.2.1/debian/examples @@ -0,0 +1 @@ +sample_config.py --- inosync-0.2.1.orig/debian/README.source +++ inosync-0.2.1/debian/README.source @@ -0,0 +1,5 @@ +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. --- inosync-0.2.1.orig/debian/install +++ inosync-0.2.1/debian/install @@ -0,0 +1 @@ +inosync usr/bin/ --- inosync-0.2.1.orig/debian/changelog +++ inosync-0.2.1/debian/changelog @@ -0,0 +1,21 @@ +inosync (0.2.1-1) unstable; urgency=low + + * New Upstream Version + * refresh patches + * update email address and remove DMUA field + + -- Ryan Niebur Sun, 18 Oct 2009 16:21:22 -0700 + +inosync (0.2-2) unstable; urgency=low + + * patch to fix with latest pyinotify + * add DMUA field + * set Standards-Version to 3.8.3 + + -- Ryan Niebur Mon, 07 Sep 2009 15:28:07 -0700 + +inosync (0.2-1) unstable; urgency=low + + * Initial release (Closes: #518517) + + -- Ryan Niebur Sat, 02 May 2009 23:46:54 -0700 --- inosync-0.2.1.orig/debian/docs +++ inosync-0.2.1/debian/docs @@ -0,0 +1 @@ +README.rst --- inosync-0.2.1.orig/debian/watch +++ inosync-0.2.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://bb.xnull.de/projects/inosync/dist/ inosync-([\d.]+)\.tar\.bz2 --- inosync-0.2.1.orig/debian/rules +++ inosync-0.2.1/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +%: + dh --with quilt $@ + +inosync: + cp inosync.py inosync + +inosync.1: inosync + help2man -N ./inosync -o inosync.1 -n "$(shell sed -n '/^Description: / {s/Description: //; p; }' debian/control)" + +override_dh_install: inosync + $(shell echo $@ | sed 's/^override_//') + +override_dh_installman: inosync.1 + $(shell echo $@ | sed 's/^override_//') + +get-orig-source: + uscan --repack --force $(EXTRA_USCAN_OPTS) + +.PHONY: get-orig-source override_dh_installman override_dh_install --- inosync-0.2.1.orig/debian/clean +++ inosync-0.2.1/debian/clean @@ -0,0 +1,2 @@ +inosync.1 +inosync --- inosync-0.2.1.orig/debian/copyright +++ inosync-0.2.1/debian/copyright @@ -0,0 +1,41 @@ +This package was debianized by Ryan Niebur on +Sat, 02 May 2009 22:53:45 -0700. + +It was downloaded from + +Upstream Author: + + Benedikt Böhm + +Copyright: + + Copyright (c) 2007-2008 Benedikt Böhm + All rights reserved. + +License: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is copyright 2009, Ryan Niebur and +is licensed under the same license as inosync itself, see above. --- inosync-0.2.1.orig/debian/compat +++ inosync-0.2.1/debian/compat @@ -0,0 +1 @@ +7 --- inosync-0.2.1.orig/debian/control +++ inosync-0.2.1/debian/control @@ -0,0 +1,24 @@ +Source: inosync +Section: utils +Priority: optional +Maintainer: Ryan Niebur +Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7) +Build-Depends-Indep: python (>= 2.4), python-pyinotify (>= 0.8.0), help2man +Standards-Version: 3.8.3 +Homepage: http://bb.xnull.de/projects/inosync/ +Vcs-Git: git://git.ryan52.info/git/inosync +Vcs-Browser: http://git.ryan52.info/?p=inosync;a=summary + +Package: inosync +Architecture: all +Depends: ${misc:Depends}, python (>= 2.4), python-pyinotify (>= 0.8.0), rsync +Description: notification-based directory synchronization daemon + The inosync daemon uses the inotify service available in recent Linux + kernels to monitor and synchronize changes within directories to + remote nodes using rsync. + . + System administrators have relied on cron+rsync for years to + constantly synchronize files and directories to remote machines. It + is not feasible to let authors wait for their content to get + synchronized every x hours with regard to the enormous pace of + articles and podcasts nowadays. --- inosync-0.2.1.orig/debian/patches/series +++ inosync-0.2.1/debian/patches/series @@ -0,0 +1 @@ +fix-brokenness --- inosync-0.2.1.orig/debian/patches/fix-brokenness +++ inosync-0.2.1/debian/patches/fix-brokenness @@ -0,0 +1,48 @@ +--- a/inosync.py ++++ b/inosync.py +@@ -53,7 +53,8 @@ + "IN_CREATE", + "IN_DELETE", + "IN_MOVED_FROM", +- "IN_MOVED_TO" ++ "IN_MOVED_TO", ++ "IN_MODIFY" + ] + + class RsyncEvent(ProcessEvent): +@@ -88,10 +89,10 @@ + + def process_default(self, event): + syslog(LOG_DEBUG, "caught %s on %s" % \ +- (event.event_name, os.path.join(event.path, event.name))) +- if not event.event_name in config.emask: ++ (event.maskname, event.pathname)) ++ if not event.maskname in config.emask: + syslog(LOG_DEBUG, "ignoring %s on %s" % \ +- (event.event_name, os.path.join(event.path, event.name))) ++ (event.maskname, event.pathname)) + return + self.dirty = True + +@@ -197,18 +198,18 @@ + wm = WatchManager() + ev = RsyncEvent(options.pretend) + notifier = Notifier(wm, ev) +- wds = wm.add_watch(config.wpath, EventsCodes.ALL_EVENTS, ++ wds = wm.add_watch(config.wpath, EventsCodes.ALL_FLAGS['ALL_EVENTS'], + rec = True, auto_add = True) + + syslog(LOG_DEBUG, "starting initial synchronization on %s" % config.wpath) + ev.sync() + syslog(LOG_DEBUG, "initial synchronization on %s done" % config.wpath) +- ++ notifier._timeout = 0 + syslog("resuming normal operations on %s" % config.wpath) + while True: + try: + notifier.process_events() +- if notifier.check_events(0): ++ if notifier.check_events(): + notifier.read_events() + ev.sync() + sleep(config.edelay)