debian/0000775000000000000000000000000012232246062007167 5ustar debian/patches/0000755000000000000000000000000012232246062010614 5ustar debian/patches/debian-changes0000644000000000000000000000723212232246062013373 0ustar Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . clsync (0.2.1-1) unstable; urgency=low . * New upstream version Author: Barak A. Pearlmutter --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- clsync-0.2.1.orig/main.c +++ clsync-0.2.1/main.c @@ -1213,7 +1213,7 @@ int main(int argc, char *argv[]) { options.flags[MODE] == MODE_RSYNCSO ) ) { - printf_e("Error: main(): Option \"--have-recursive-sync\" with nodes \"rsyncdirect\", \"rsyncshell\" and \"rsyncso\" are incompatable.\n"); + printf_e("Error: main(): Option \"--have-recursive-sync\" with nodes \"rsyncdirect\", \"rsyncshell\" and \"rsyncso\" are incompatible.\n"); ret = EINVAL; } @@ -1230,7 +1230,7 @@ int main(int argc, char *argv[]) { options.flags[MODE] == MODE_RSYNCSO ) ) { - printf_e("Error: main(): Option \"--synclist-simplify\" with nodes \"rsyncdirect\" and \"rsyncshell\" are incompatable.\n"); + printf_e("Error: main(): Option \"--synclist-simplify\" with nodes \"rsyncdirect\" and \"rsyncshell\" are incompatible.\n"); ret = EINVAL; } --- clsync-0.2.1.orig/man/man1/clsync.1 +++ clsync-0.2.1/man/man1/clsync.1 @@ -288,7 +288,7 @@ If you're using this option (but no \-\- will write neither includes nor excludes of content of mount points. .br This may cause problems e.g. you're using rsync for sync-handler without -similar option "--one-file-system". +similar option "\-\-one\-file\-system". Is not set by default. .RE @@ -602,7 +602,7 @@ as an error. You can set multiple ignore times. Recommended values for rsync case is "24". You can set multiple values with -listing a lot of "-x" options (e.g. "\-x 23 \-x 24") or via commas +listing a lot of "\-x" options (e.g. "\-x 23 \-x 24") or via commas (e.g. "\-x 23,24"). To drop the list use zero exitcode (e.g. "\-x 0"). For example you can use "\-x 0,23" to drop the list and set "23"-th exitcode to be ignored. @@ -1103,7 +1103,7 @@ It's not recommended to use .I w rules in modes "rsyncdirect", "rsyncshell" and "rsyncso". .BR rsync (1) -allows to set syncing and walking only together in "\-\-include" rules +allows one to set syncing and walking only together in "\-\-include" rules ("\-\-files\-from" is not appropriate due to problem with syncing files deletions). So there may be problems with clsync's .I w @@ -1125,7 +1125,7 @@ Syncing pwdb files and sshd_config (non- .br +w^/ssh$ .br - -* + \-* .RE Syncing pwdb files and sshd_config (non-rsync case with option @@ -1161,9 +1161,9 @@ Syncing pwdb files and sshd_config (rsyn Syncing /srv/lxc tree (rsync case): .RS - -d/sess(ion)?s?$ + \-d/sess(ion)?s?$ .br - -f/tmp/ + \-f/tmp/ .br +* .RE @@ -1272,7 +1272,7 @@ reads only one configuration file. In ot .I \-\-config\-file is not set and file .B ~/.clsync.conf -is accessable and parsable, +is accessible and parsable, .B clsync will not try to open .BR /etc/clsync/clsync.conf . debian/patches/series0000644000000000000000000000001712232246062012027 0ustar debian-changes debian/source/0000775000000000000000000000000012232246002010461 5ustar debian/source/format0000664000000000000000000000001412232244076011700 0ustar 3.0 (quilt) debian/control0000664000000000000000000000157712232245716010611 0ustar Source: clsync Section: admin Priority: optional Maintainer: Artyom A Anikeev Uploaders: Barak A. Pearlmutter Build-Depends: debhelper (>= 9), libglib2.0-dev (>= 2.0.0), dh-autoreconf, libmhash-dev Standards-Version: 3.9.4 Homepage: http://ut.mephi.ru/oss Vcs-Git: git://anonscm.debian.org/collab-maint/clsync.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/clsync.git Package: clsync Recommends: rsync Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: live sync tool based on inotify, written in GNU C Clsync recursively watches for source directory and executes external program to sync the changes. Clsync is adapted to use together with rsync. This utility is much more lightweight than competitors and supports such features as separate queue for big files, regex file filter, multi-threading. debian/changelog0000664000000000000000000000071312232245716011047 0ustar clsync (0.2.1-1) unstable; urgency=low * New upstream version -- Barak A. Pearlmutter Thu, 24 Oct 2013 17:14:15 +0100 clsync (0.1-2) unstable; urgency=low * Tweak debian/watch to ignore debian releases -- Barak A. Pearlmutter Fri, 11 Oct 2013 10:45:20 +0100 clsync (0.1-1) unstable; urgency=low * Initial release (Closes: #718769 ) -- Barak A. Pearlmutter Sat, 07 Sep 2013 12:16:00 +0100 debian/copyright0000664000000000000000000000203212232244076011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: clsync Source: git://git.mephi.ru/clsync Files: * Copyright: 2013 Dmitry Yu Okunev License: GPL-3+ 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 3 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 3 can be found in the file `/usr/share/common-licenses/GPL-3'. debian/default0000664000000000000000000000067612232244076010552 0ustar # # clsync is not enabled by default. To enable it replace "false" with "true": CLSYNC_ENABLE=false CLSYNC_IONICE_CLASS=3 # clsync's arguments: # proof of concept: CLSYNC_ARGS='-M rsyncdirect -Y -L /dev/shm/clsync -x 23 -W /var/www -S /usr/bin/rsync -D /mnt/backup' # production example: #CLSYNC_ARGS='-M rsyncshell -Y -L /dev/shm/clsync -x 24 -W /srv/lxc -S /opt/backup_engine/bin/sync-handler.sh -R /opt/backup_engine/etc/clsync.filter' debian/compat0000664000000000000000000000000212232244076010370 0ustar 9 debian/clsync.init0000775000000000000000000000447012232244076011362 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: clsync # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: clsync daemon init script # Description: This script launches the clsync daemon. ### END INIT INFO # bugtrack: https://github.com/xaionaro/clsync/issues PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="syncer daemon" NAME=clsync DAEMON=/usr/bin/$NAME PIDFILE=/var/run/$NAME.pid ARGS="--pid-file ${PIDFILE} --background" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME [ "$CLSYNC_ENABLE" != "true" ] && exit 0 IONICE="/usr/bin/ionice" if [ "$CLSYNC_IONICE_CLASS" != "" ]; then IONICE_ARGS="-c $CLSYNC_IONICE_CLASS" else IONICE_ARGS="-c 3" fi . /lib/lsb/init-functions do_start() { start-stop-daemon --start --quiet --pidfile "$PIDFILE" \ --exec "$DAEMON" --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile "$PIDFILE" \ --exec $IONICE -- $IONICE_ARGS "$DAEMON" $ARGS $CLSYNC_ARGS \ || return 2 } do_stop() { start-stop-daemon --stop --quiet --pidfile "$PIDFILE" --name "$NAME" RC="$?" [ "$RC" = 2 ] && return 2 start-stop-daemon --stop --quiet --oknodo --exec "$DAEMON" [ "$?" = 2 ] && return 2 rm -f "$PIDFILE" return "$RC" } 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 exit 0 debian/rules0000775000000000000000000000107412232244076010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --parallel --with autoreconf override_dh_auto_install: dh_auto_install -rm --verbose debian/clsync/usr/share/doc/clsync/LICENSE debian/watch0000664000000000000000000000011612232245716010223 0ustar version=3 http://githubredir.debian.net/github/xaionaro/clsync/ v(.+).tar.gz