debian/0000755000000000000000000000000012161412050007156 5ustar debian/README.Debian0000644000000000000000000000037312161411734011232 0ustar The Debian package adds an init script /etc/init.d/lsyncd for lsyncd. If you want to have a globally running lsyncd you need to create /etc/lsyncd/lsyncd.conf.lua. Examples for such lua configurations are available in /usr/share/doc/lsyncd/examples. debian/control0000644000000000000000000000211212161411734010565 0ustar Source: lsyncd Section: admin Priority: optional Maintainer: Jan Dittberner Standards-Version: 3.9.4 Build-Depends: debhelper (>= 7.0.50~), libxml2-dev, automake, liblua5.1-0-dev, lua5.1, pkg-config, asciidoc, xsltproc, docbook-xml, docbook-xsl, autotools-dev, dpkg-dev (>= 1.16.1~) Homepage: https://github.com/axkibe/lsyncd Vcs-Git: git://anonscm.debian.org/collab-maint/lsyncd.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/lsyncd.git Package: lsyncd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, rsync, lua5.1 Description: daemon to synchronize local directories using rsync Lsyncd (Live syncing mirror daemon) uses rsync to synchronize local directories with a remote machine running rsyncd. Lsyncd watches multiple directories trees through inotify. The first step after adding the watches is to rsync all directories with the remote host, and then sync single file by collecting the inotify events. So lsyncd is a light-weight live mirror solution that should be easy to install and use while blending well with your system. debian/changelog0000644000000000000000000001327112161411734011044 0ustar lsyncd (2.1.5-1) unstable; urgency=low * New upstream version (Closes: #707328). * refresh debian/patches/dont_install_lua_as_docs.patch * debian/control: - change Homepage to github page - switch to canonical Vcs-* URLs - bump Standards-Version to 3.9.4 (no changes) * debian/rules: - add --add-missing to automake invocation to add missing test-driver and remove test-driver in clean target (Closes: #713793) * debian/lsyncd.init: - don't source /lib/init/vars.sh and don't use $VERBOSE, don't use --make-pidfile - add --nicelevel to lsyncd invocation -- Jan Dittberner Sat, 22 Jun 2013 23:14:59 +0200 lsyncd (2.0.7-3) unstable; urgency=low * fix breakage introduced when trying to fix #673387, PIDFILE was not defined before DAEMON_ARGS in debian/lsyncd.init -- Jan Dittberner Sat, 19 May 2012 00:50:59 +0200 lsyncd (2.0.7-2) unstable; urgency=low * fix lsyncd init script stores the wrong PID in /var/run/lsyncd.pid so cannot stop it by adding -pidfile option to debian/lsyncd.init's DAEMON_ARGS (Closes: #673387) * debian/rules: fix FTBFS twice in a row - override_dh_clean instead of clean - remove generated configure * enable hardening build flags - add dpkg-dev (>= 1.16.1~) to Build-Depends - add DPKG_EXPORT_BUILDFLAGS=1 and include /usr/share/dpkg/buildflags.mk in debian/rules -- Jan Dittberner Fri, 18 May 2012 12:23:25 +0200 lsyncd (2.0.7-1) unstable; urgency=low * New upstream version * refresh debian/patches/dont_install_lua_as_docs.patch * Bump Standards-Version to 3.9.3 (no changes) -- Jan Dittberner Wed, 04 Apr 2012 14:17:30 +0200 lsyncd (2.0.5-1) unstable; urgency=low * New upstream version * debian/control: - add autotools-dev to Build-Depends (fixes Lintian error "missing-build-dependency-for-dh-addon") - bump Standards-Version to 3.9.2 (no changes needed) * refresh debian/patches/dont_install_lua_as_docs.patch * update debian/copyright format * add status command to debian/lsyncd.init (fixes Lintian complaint "init.d-script-does-not-implement-optional-option") -- Jan Dittberner Thu, 12 Jan 2012 00:57:21 +0100 lsyncd (2.0.4-1) unstable; urgency=low * New upstream version * remove debian/patches/fix_spelling_errors.patch that has been applied upstream -- Jan Dittberner Sun, 27 Mar 2011 11:06:53 +0200 lsyncd (2.0.3-1) unstable; urgency=low * New upstream version. * refresh patches -- Jan Dittberner Fri, 25 Feb 2011 19:31:54 +0100 lsyncd (2.0.2-3) unstable; urgency=low * Add debian/lsyncd.init (Closes: #614391) thanks to Ignace Mouzannar for the base script * add documentation on how to use the init script in debian/README.Debian * add debian/patches/dont_install_lua_as_docs.patch to not install lua scripts to the documentation dir (they are installed as examples by debian/rules) -- Jan Dittberner Tue, 22 Feb 2011 21:33:55 +0100 lsyncd (2.0.2-2) unstable; urgency=low * Upload to unstable -- Jan Dittberner Sun, 06 Feb 2011 11:33:59 +0100 lsyncd (2.0.2-1) experimental; urgency=low * New upstream version. * refresh debian/patches/fix_spelling_errors.patch b/debian/patches/fix_spelling_errors.patch -- Jan Dittberner Fri, 21 Jan 2011 19:53:55 +0100 lsyncd (2.0.0-1) experimental; urgency=low * New upstream version. * debian/control: - add liblua5.1-0-dev, lua5.1, pkg-config, asciidoc, xsltproc, docbook-xml and docbook-xsl to Build-Depends - add lua5.1 to Depends * add --with autotools_dev to debian/rules * update debian/lsyncd.docs (all documentation previously mentioned there got removed, added doc/lsyncd.1.txt instead) * update debian/lsyncd.examples to include the examples directory * replace debian/patches/0001-fix-spelling-error.patch with debian/patches/fix_spelling_errors.patch to fix spelling errors -- Jan Dittberner Tue, 21 Dec 2010 15:08:31 +0100 lsyncd (1.39-1) experimental; urgency=low * New upstream version. -- Jan Dittberner Sat, 09 Oct 2010 21:28:28 +0200 lsyncd (1.38-1) experimental; urgency=low * New upstream version. * change debian/watch to remove the need for the Google code redirector -- Jan Dittberner Thu, 02 Sep 2010 19:51:08 +0200 lsyncd (1.37-1) experimental; urgency=low * New upstream version. * debian/control: - bump Standards-Version to 3.9.1 - change debhelper build dependency to 7.0.50~ * add debian/patches/0001-fix-spelling-error.patch and debian/patches/series to fix spelling errors in manual pages -- Jan Dittberner Tue, 17 Aug 2010 11:19:22 +0200 lsyncd (1.34-1) unstable; urgency=low * New upstream version. * remove debian/patches/01-fix-spelling-error-in-lsyncd.conf.xml-manpage.patch, debian/patches/02-fix-lsyncd.conf.xml-manpage-location.patch and debian/patches/series all patches have been applied upstream * debian/control: Bump Standards-Version to 3.9.0 (no changes necessary) -- Jan Dittberner Sun, 11 Jul 2010 23:22:25 +0200 lsyncd (1.33-1) unstable; urgency=low * New upstream version. * updated debian/watch to use googlecode redirector * refresh debian/patches/01-fix-spelling-error-in-lsyncd.conf.xml- manpage.patch * run autoreconf in debian/rules -- Jan Dittberner Sat, 05 Jun 2010 10:59:19 +0200 lsyncd (1.26-1) unstable; urgency=low * Initial release. (Closes: #570296) -- Jan Dittberner Sat, 20 Feb 2010 15:04:05 +0100 debian/lsyncd.docs0000644000000000000000000000002112161411734011325 0ustar doc/lsyncd.1.txt debian/watch0000644000000000000000000000037612161411734010225 0ustar version=3 opts=downloadurlmangle=s#.*(lsyncd-([\d.]+)\.tar\.gz).*#http://lsyncd.googlecode.com/files/$1#,filenamemangle=s#.*(lsyncd-([\d.]+)\.tar\.gz).*#$1# \ http://code.google.com/p/lsyncd/downloads/list ^.*detail\?name=lsyncd-([\d.]+)\.tar\.gz.* debian/patches/0000755000000000000000000000000012161411734010615 5ustar debian/patches/series0000644000000000000000000000003712161411734012032 0ustar dont_install_lua_as_docs.patch debian/patches/dont_install_lua_as_docs.patch0000644000000000000000000000131012161411734016657 0ustar Subject: fix Makefile.am to not install examples as normal documentation Author: Jan Dittberner Description: upstream's Makefile.am defines variables to install the example lua scripts as documentation. The Debian package installs these lua scripts as examples so the upstream macros are removed by this patch --- a/Makefile.am +++ b/Makefile.am @@ -13,15 +13,6 @@ endif lsyncd_LDADD = $(LUA_LIBS) -exampledir = $(docdir)/ -dist_example_DATA = \ - examples/lbash.lua \ - examples/lecho.lua \ - examples/lgforce.lua \ - examples/limagemagic.lua \ - examples/lpostcmd.lua \ - examples/lrsync.lua \ - examples/lrsyncssh.lua TESTS = \ tests/churn-rsync.lua \ tests/churn-rsyncssh.lua \ debian/.gitignore0000644000000000000000000000000312161411734011147 0ustar *~ debian/copyright0000644000000000000000000000414612161411734011126 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 Upstream-Name: lsyncd Upstream-Contact: Axel Kittenberger Source: http://code.google.com/p/lsyncd/ Files: * Copyright: 2007-2011, Axel Kittenberger Semi Malinen Jürgen "README" Mangler Eugene Sanivsky 2008, Junichi Uekawa 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, 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'. Files: debian/* Copyright: 2009-2012, Jan Dittberner 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, 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'. debian/lsyncd.examples0000644000000000000000000000001312161411734012214 0ustar examples/* debian/compat0000644000000000000000000000000212161411734010364 0ustar 7 debian/lsyncd.init0000644000000000000000000000475412161411734011361 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: lsyncd # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: lsyncd daemon init script # Description: This script launches the lsyncd daemon. ### END INIT INFO # Author: Ignace Mouzannar PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="synchronization daemon" NAME=lsyncd DAEMON=/usr/bin/$NAME CONFIG=/etc/lsyncd/lsyncd.conf.lua PIDFILE=/var/run/$NAME.pid DAEMON_ARGS="-pidfile ${PIDFILE} ${CONFIG}" SCRIPTNAME=/etc/init.d/$NAME NICELEVEL=10 # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Exit if config file does not exist [ -r "$CONFIG" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \ --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE \ --nicelevel $NICELEVEL --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 } # # Function that stops the daemon/service # do_stop() { start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; status) status_of_proc $DAEMON $NAME && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : debian/rules0000755000000000000000000000064212161411734010250 0ustar #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk override_dh_auto_configure: aclocal && automake --add-missing && autoreconf dh_auto_configure $@ override_dh_auto_test: # there is no real test suite only a test target in upstream's Makefile override_dh_clean: rm -f aclocal.m4 Makefile.in configure test-driver rm -rf autom4te.cache dh_clean %: dh --with autotools_dev $@ debian/source/0000755000000000000000000000000012161411734010466 5ustar debian/source/format0000644000000000000000000000001412161411734011674 0ustar 3.0 (quilt)