[1504] | 1 | Summary: Live syncing (mirroring) daemon |
---|
| 2 | Summary(ja): リアルタイム同期(ミラーリング)デーモン |
---|
| 3 | Name: lsyncd |
---|
| 4 | Version: 1.34 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPL |
---|
| 8 | Group: Applications/File |
---|
| 9 | URL: http://code.google.com/p/lsyncd/ |
---|
| 10 | |
---|
| 11 | Source: lsyncd-%{version}.tar.gz |
---|
[1505] | 12 | Source1: lsyncd.init |
---|
[1504] | 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[1507] | 15 | BuildRequires: libxml2-devel |
---|
[1504] | 16 | Requires: rsync |
---|
[1507] | 17 | Requires(post): chkconfig |
---|
| 18 | Requires(preun): chkconfig |
---|
| 19 | Requires(preun): initscripts |
---|
[1504] | 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: daisuke |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. |
---|
| 27 | Lsyncd watches multiple directories trees through inotify. The first step after adding |
---|
| 28 | the watches is to rsync all directories with the remote host, and then sync single file |
---|
| 29 | by collecting the inotify events. So lsyncd is a light-weight live mirror solution that |
---|
| 30 | should be easy to install and use while blending well with your system. See lsyncd --help |
---|
| 31 | for detailed command line options. |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | %configure |
---|
| 38 | %{__make} %{?_smp_mflags} |
---|
| 39 | |
---|
| 40 | %install |
---|
| 41 | %{__rm} -rf %{buildroot} |
---|
| 42 | %{__make} install DESTDIR=%{buildroot} |
---|
| 43 | |
---|
[1505] | 44 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
[1506] | 45 | %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd |
---|
[1505] | 46 | |
---|
[1504] | 47 | %clean |
---|
| 48 | %{__rm} -rf %{buildroot} |
---|
| 49 | |
---|
[1505] | 50 | %post |
---|
| 51 | /sbin/chkconfig --add lsyncd |
---|
| 52 | |
---|
| 53 | %preun |
---|
| 54 | if [ "$1" = "0" ]; then |
---|
| 55 | /sbin/service lsyncd stop >/dev/null 2>&1 |
---|
| 56 | /sbin/chkconfig --del lsyncd |
---|
| 57 | fi |
---|
| 58 | |
---|
| 59 | %postun |
---|
| 60 | if [ "$1" -ge "1" ]; then |
---|
| 61 | /sbin/service lsyncd condrestart >/dev/null 2>&1 |
---|
| 62 | fi |
---|
| 63 | |
---|
[1504] | 64 | %files |
---|
| 65 | %defattr(-, root, root, 0755) |
---|
| 66 | %doc AUTHORS COPYING ChangeLog NEWS TODO lsyncd.conf.xml |
---|
[1507] | 67 | %{_sysconfdir}/rc.d/init.d/lsyncd |
---|
[1504] | 68 | %{_bindir}/lsyncd |
---|
| 69 | %{_mandir}/man1/lsyncd.1* |
---|
| 70 | %{_mandir}/man5/lsyncd.conf.xml.5* |
---|
| 71 | |
---|
| 72 | %changelog |
---|
| 73 | * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1 |
---|
| 74 | - initial build for Vine Linux |
---|