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