Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > fa7849a1e982342363fcded4184cb1e2 > files > 7

lsyncd-2.2.3-2.mga7.src.rpm

Name:		lsyncd
Version:	2.2.3
Release:	%mkrel 2
Summary:	Live Syncing (Mirror) Daemon
Group:		Networking/File transfer
License:	GPLv2+
URL:		https://github.com/axkibe/lsyncd
Source0:	https://github.com/axkibe/lsyncd/archive/release-%{version}/%{name}-release-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
Source3:	%{name}.logrotate
Source4:	%{name}.conf
Patch0:		lsyncd-2.2.3-mga-fix-manpage.patch
Patch1:		lsyncd-2.2.3-mga-fix-lua.patch
BuildRequires:	cmake
BuildRequires:	asciidoc
BuildRequires:	pkgconfig(lua) >= 5.2

Requires:	lua
Requires:	rsync

Requires(post):		rpm-helper
Requires(preun):	rpm-helper

%description
Lsyncd watches a local directory trees event monitor interface (inotify
or fsevents). It aggregates and combines events for a few seconds and then
spawns one (or more) process(es) to synchronize the changes. By default this
is rsync. Lsyncd is thus a light-weight live mirror solution that is
comparatively easy to install not requiring new filesystems or block devices
and does not hamper local filesystem performance.

Rsync+ssh is an advanced action configuration that uses a SSH to act file and
directory moves directly on the target instead of re-transmitting the move
destination over the wire.

Fine-grained customization can be achieved through the config file. Custom
actionconfigs can even be written from scratch in cascading layers ranging
from shellscripts to code written in the Lua language. This way simple,
powerful and flexible configurations can be achieved.


%prep
%setup -q -n %{name}-release-%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
%make_install -C build

install -p -d -m 0755 %{buildroot}%{_var}/log/%{name}
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/lsyncd.service
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/lsyncd
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/lsyncd
install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%doc ChangeLog README.md examples/
%license COPYING
%config(noreplace) %{_sysconfdir}/lsyncd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/lsyncd
%config(noreplace) %{_sysconfdir}/logrotate.d/lsyncd
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%dir %{_var}/log/%{name}
%{_mandir}/man1/%{name}.1*


%changelog
* Sun Sep 23 2018 umeabot <umeabot> 2.2.3-2.mga7
  (not released yet)
+ Revision: 1299360
- Mageia 7 Mass Rebuild

* Tue Mar 13 2018 daviddavid <daviddavid> 2.2.3-1.mga7
+ Revision: 1208832
- new version: 2.2.3
- rename and rediff manpage patch

* Fri Feb 17 2017 daviddavid <daviddavid> 2.2.2-1.mga6
+ Revision: 1086620
- new version: 2.2.2

* Sat Jan 14 2017 daviddavid <daviddavid> 2.2.1-1.mga6
+ Revision: 1081617
- new version: 2.2.1
- rename and redo mga-fix-manpage patch

* Thu Mar 31 2016 daviddavid <daviddavid> 2.1.6-1.mga6
+ Revision: 997015
- imported package lsyncd (mga#13611)