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