[1504] | 1 | Summary: Live syncing (mirroring) daemon |
---|
| 2 | Summary(ja): リアルタイム同期(ミラーリング)デーモン |
---|
| 3 | Name: lsyncd |
---|
[6135] | 4 | Version: 2.0.7 |
---|
[1504] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPL |
---|
[2163] | 8 | Group: Applications/Internet |
---|
[1504] | 9 | URL: http://code.google.com/p/lsyncd/ |
---|
| 10 | |
---|
| 11 | Source: lsyncd-%{version}.tar.gz |
---|
[1505] | 12 | Source1: lsyncd.init |
---|
[6135] | 13 | Source2: lsyncd.sysconfig |
---|
[1504] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[3888] | 16 | BuildRequires: lua-devel |
---|
[1504] | 17 | Requires: rsync |
---|
[1507] | 18 | Requires(post): chkconfig |
---|
| 19 | Requires(preun): chkconfig |
---|
| 20 | Requires(preun): initscripts |
---|
[1504] | 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: daisuke |
---|
| 25 | |
---|
| 26 | %description |
---|
[3888] | 27 | Lsyncd provides a light-weight live mirror solution. |
---|
[1504] | 28 | Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. |
---|
| 29 | Lsyncd watches multiple directories trees through inotify. The first step after adding |
---|
| 30 | the watches is to rsync all directories with the remote host, and then sync single file |
---|
[3888] | 31 | by collecting the inotify events. |
---|
[1504] | 32 | |
---|
[3888] | 33 | |
---|
| 34 | %description |
---|
| 35 | Lsyncd は軽量なリアルタイムミラーを構築することができます。 |
---|
| 36 | Lsyncd は rsync を用いて rsyncd が動いているリモートのマシンとローカル |
---|
| 37 | のディレクトリを同期させることができます。Lsyncd は複数のディレクトリツ |
---|
| 38 | リーを inotify を通じて監視し、inotefy イベントを収集することでここの |
---|
| 39 | ファイルを同期します。 |
---|
| 40 | |
---|
[1504] | 41 | %prep |
---|
| 42 | %setup |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | %configure |
---|
| 46 | %{__make} %{?_smp_mflags} |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | %{__rm} -rf %{buildroot} |
---|
| 50 | %{__make} install DESTDIR=%{buildroot} |
---|
| 51 | |
---|
[1505] | 52 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
[1506] | 53 | %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd |
---|
[6135] | 54 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig |
---|
| 55 | %{__install} -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lsyncd |
---|
[1505] | 56 | |
---|
[3888] | 57 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/lsyncd |
---|
| 58 | |
---|
| 59 | # remove examples |
---|
| 60 | %{__rm} -rf %{buildroot}%{_datadir}/doc/lsyncd |
---|
| 61 | |
---|
| 62 | |
---|
[1504] | 63 | %clean |
---|
| 64 | %{__rm} -rf %{buildroot} |
---|
| 65 | |
---|
[1505] | 66 | %post |
---|
| 67 | /sbin/chkconfig --add lsyncd |
---|
| 68 | |
---|
| 69 | %preun |
---|
| 70 | if [ "$1" = "0" ]; then |
---|
| 71 | /sbin/service lsyncd stop >/dev/null 2>&1 |
---|
| 72 | /sbin/chkconfig --del lsyncd |
---|
| 73 | fi |
---|
| 74 | |
---|
| 75 | %postun |
---|
| 76 | if [ "$1" -ge "1" ]; then |
---|
| 77 | /sbin/service lsyncd condrestart >/dev/null 2>&1 |
---|
| 78 | fi |
---|
| 79 | |
---|
[1504] | 80 | %files |
---|
| 81 | %defattr(-, root, root, 0755) |
---|
[3888] | 82 | %doc COPYING ChangeLog examples/ |
---|
[6135] | 83 | %config(noreplace) %{_sysconfdir}/sysconfig/lsyncd |
---|
[1507] | 84 | %{_sysconfdir}/rc.d/init.d/lsyncd |
---|
[6135] | 85 | %dir %{_sysconfdir}/lsyncd/ |
---|
[1504] | 86 | %{_bindir}/lsyncd |
---|
| 87 | %{_mandir}/man1/lsyncd.1* |
---|
| 88 | |
---|
| 89 | %changelog |
---|
[6135] | 90 | * Fri May 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-1 |
---|
| 91 | - new upstream release |
---|
| 92 | |
---|
[5642] | 93 | * Mon Feb 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.5-1 |
---|
| 94 | - new upstream release |
---|
| 95 | |
---|
[3888] | 96 | * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.4-1 |
---|
| 97 | - update to 2.0.4 |
---|
| 98 | |
---|
[2163] | 99 | * Sun Oct 31 2010 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.39-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[1504] | 102 | * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1 |
---|
| 103 | - initial build for Vine Linux |
---|