Search
j0ke.net Open Build Service
>
Projects
>
ha
:
testing
>
lsyncd
> lsyncd.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lsyncd.spec of Package lsyncd (Revision 7)
Currently displaying revision
7
,
show latest
Summary: Live syncing (mirroring) daemon Name: lsyncd Version: 2.0.7 Release: 1 License: GPL Group: Productivity/Networking/Other URL: http://code.google.com/p/lsyncd/ Source0: http://lsyncd.googlecode.com/files/lsyncd-%{version}.tar.bz2 %if 0%{?suse_version} Source1: %{name}-suse.init %else Source1: %{name}.init %endif Source2: %{name}.conf Source3: rsync_sudo.sh Source4: %{name}.sysconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %if 0%{?suse_version} BuildRequires: pkg-config %else BuildRequires: pkgconfig %endif %if 0%{?suse_version} > 1210 BuildRequires: lua51-devel %else BuildRequires: lua-devel >= 5.1 %endif Requires: /sbin/chkconfig Requires: /sbin/service Requires: rsync %description Lsyncd(1) watches a local directory trees event monitor interface (inotify). 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(1). Lsyncd is thus a light-weight live mirror solution that is comparatively easy to install not requiring new filesystems or blockdevices and does not hamper local filesystem performance. %prep %setup %build export LIBLUA_LIBS=$(pkg-config --libs lua) export LIBLUA_CFLAGS=$(pkg-config --cflags lua) %configure --docdir=%{_docdir}/%{name} %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" %{__mkdir_p} %{buildroot}%{_localstatedir}/log/lsyncd %if 0%{?suse_version} %{__install} -p -D -m 0644 %{S:4} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} %else %{__install} -p -D -m 0644 %{S:4} %{buildroot}%{_sysconfdir}/sysconfig/%{name} %endif %{__install} -p -D -m 0755 %{S:1} %{buildroot}%{_initrddir}/%{name} %__install -Dm 755 %{S:2} %{buildroot}%{_sysconfdir}/lsyncd/lsyncd.conf %__install -Dm 755 %{S:3} %{buildroot}%{_sysconfdir}/lsyncd/rsync_sudo.sh # cleanup docdir install rm -rf %{buildroot}%{_docdir}/%{name} %clean %{__rm} -rf %{buildroot} %post %if 0%{?suse_version} %{fillup_and_insserv lsyncd} %else if [ $1 -eq 1 ]; then /sbin/chkconfig --add %{name} fi %endif %preun if [ $1 -eq 0 ]; then /sbin/service %{name} stop &>/dev/null || : /sbin/chkconfig --del %{name} fi %postun if [ $1 -ge 1 ]; then /sbin/service %{name} condrestart &>/dev/null || : fi %files %defattr(-, root, root, 0755) %doc ChangeLog COPYING %doc examples/*.lua %doc %{_mandir}/man1/lsyncd.1* %{_bindir}/lsyncd %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/lsyncd.conf %config(noreplace) %{_sysconfdir}/%{name}/rsync_sudo.sh %dir %{_localstatedir}/log/%{name} %{_initrddir}/%{name} %if 0%{?suse_version} %{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %else %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %endif %changelog