Hello community, here is the log from the commit of package lsyncd for openSUSE:Factory checked in at 2012-03-20 11:29:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lsyncd (Old) and /work/SRC/openSUSE:Factory/.lsyncd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lsyncd", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/lsyncd/lsyncd.changes 2011-09-23 02:12:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.lsyncd.new/lsyncd.changes 2012-03-20 11:30:26.000000000 +0100 @@ -1,0 +2,34 @@ +Sun Feb 26 16:02:41 CET 2012 - [email protected] + +- fix build in factory (build against lua 5.1) + +------------------------------------------------------------------- +Mon Nov 28 09:58:02 UTC 2011 - [email protected] +- update to 2.0.5 + * fix: Lsyncd will now terminate if it inotify watching exceeds + its preset limit. + * fix: rsync error exit code 12 now results in retries. + * fix: Lsyncd 2.0.5 should now compile better on a bit elder + GNU/Linux versions. + * fix: examples are now installed in the configured document directory. + * fix: partial transfers during startup are considered ok. Lsyncd + will rework the specified files anyway. + * change: Layer 1 interface init() now receives an "Init" event + instead of an inlet. + * change: builtin Lua code is now loaded via a c-array.Now more + portable and correct memory flags are set. + * change: Lsyncd will now bail on unknown error codes. + * enhancement: settings.maxProcesses can now be set as a global limit of childprocesses + * enhancement: Lsyncd will refuse to start when any startup rsync + does not work cleanly and returns "again" unless settings.insist or + --insist is specified, then Lsyncd will keep retrying until it works. + * enhancement: option "rsyncBinary" determines which rsync Lsyncd calls. + Default is "/usr/bin/rsync" + * enhancement: fsevents ("inotify for OSX") fixed for Snowleopard. + and is available to configure by default. + * enhancement: settings.inotifyMode: the actualy Modification event + Lsyncd reacts to can now be configured. Default is to react on + file closing in write mode. + * enhancement: readdir(path) is available to userscripts, reads the contents + of a directory. +------------------------------------------------------------------- Old: ---- lsyncd-2.0.4.tar.bz2 New: ---- lsyncd-2.0.5.tar.gz lsyncd-init.d lsyncd.conf rsync_sudo.sh ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lsyncd.spec ++++++ --- /var/tmp/diff_new_pack.d0tY44/_old 2012-03-20 11:30:28.000000000 +0100 +++ /var/tmp/diff_new_pack.d0tY44/_new 2012-03-20 11:30:28.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package lsyncd # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,26 +15,29 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - - Name: lsyncd -Version: 2.0.4 -Release: 1 -License: GPL-2.0 -Group: Productivity/Networking/Other +Version: 2.0.5 +Release: 0 Url: http://code.google.com/p/lsyncd/ -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}.tar.gz +Source1: %{name}-init.d +Source2: %{name}.conf +Source3: rsync_sudo.sh BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: pkg-config %else BuildRequires: pkgconfig %endif -#BuildRequires: pkgconfig(lua) >= 5.1 +%if 0%{?suse_version} > 1210 +BuildRequires: lua51-devel +%else BuildRequires: lua-devel >= 5.1 +%endif Requires: rsync Summary: Live Syncing (Mirror) Daemon +License: GPL-2.0 +Group: Productivity/Networking/Other %description Lsyncd (Live Syncing (Mirror) Daemon) uses rsync to synchronize local directories with a remote machine running rsyncd. It watches multiple directory trees through inotify. The first step after adding the watches is to rsync all directories with the remote host, and then the software synchronizes single files by collecting the inotify events. lsyncd is a lightweight live mirror solution that should be easy to install and use while blending well with your system. @@ -51,8 +54,11 @@ %install %makeinstall %{__mkdir_p} %{buildroot}%{_docdir}/%{name} -mv %{buildroot}%{_datadir}/doc/%{name}/* %{buildroot}%{_docdir}/%{name} -rm -rf %{buildroot}%{_datadir}/doc/%{name} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/%{name} +%{__mkdir_p} %{buildroot}%{_localstatedir}/log/lsyncd +%__install -Dm 755 %{S:1} %{buildroot}%{_initrddir}/lsyncd +%__install -Dm 755 %{S:2} %{buildroot}%{_sysconfdir}/lsyncd/lsyncd.conf +%__install -Dm 755 %{S:3} %{buildroot}%{_sysconfdir}/lsyncd/rsync_sudo.sh %clean test "%{buildroot}" != "/" && %__rm -rf %{buildroot} @@ -62,5 +68,10 @@ %doc ChangeLog COPYING %{_bindir}/lsyncd %{_mandir}/man1/lsyncd.1.gz +%{_initrddir}/lsyncd +%dir %{_sysconfdir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}/lsyncd.conf +%config(noreplace) %{_sysconfdir}/%{name}/rsync_sudo.sh +%dir %{_localstatedir}/log/%{name} %changelog ++++++ lsyncd-init.d ++++++ #!/bin/bash # ### BEGIN INIT INFO # Provides:lsyncd # Required-Start: # Required-Stop: # Default-Start:3 5 # Default-Stop:0 1 2 6 # Short-Description:Start lsyncd # Description:Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. ### END INIT INFO config="/etc/lsyncd/lsyncd.conf" lsyncd="/usr/bin/lsyncd" prog="lsyncd" . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting $prog: " $lsyncd -log Exec $config rc_status -v ;; stop) echo -n "Shutting down $prog: " /bin/kill -9 `/sbin/pidof lsyncd` until [ -z $(/sbin/pidof lsyncd) ]; do :; done rc_status -v ;; restart) $0 stop $0 start rc_status ;; status) echo -n "$prog status:" rc_status -v ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac rc_exit ++++++ lsyncd.conf ++++++ settings = { statusFile = "/var/log/lsyncd/lsyncd.status", nodaemon = false, statusInterval = 5, maxDelays = 10, maxProcesses = 10, } --##Rsyslog sync{ default.rsyncssh, host="user@server", source="/etc/rsyslog.d", targetdir="/etc/rsyslog.d", rsyncBinary="/etc/lsyncd/rsync_sudo.sh", rsyncOpts={"-rltusogp"} }++++++ rsync_sudo.sh ++++++ #!/bin/bash /usr/bin/rsync --rsync-path="sudo /usr/bin/rsync" $@-- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
