1 | Summary: Live syncing (mirroring) daemon |
---|
2 | Summary(ja): リアルタイム同期(ミラーリング)デーモン |
---|
3 | Name: lsyncd |
---|
4 | Version: 2.0.4 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPL |
---|
8 | Group: Applications/Internet |
---|
9 | URL: http://code.google.com/p/lsyncd/ |
---|
10 | |
---|
11 | Source: lsyncd-%{version}.tar.gz |
---|
12 | Source1: lsyncd.init |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | BuildRequires: lua-devel |
---|
16 | Requires: rsync |
---|
17 | Requires(post): chkconfig |
---|
18 | Requires(preun): chkconfig |
---|
19 | Requires(preun): initscripts |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: daisuke |
---|
24 | |
---|
25 | %description |
---|
26 | Lsyncd provides a light-weight live mirror solution. |
---|
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 |
---|
30 | by collecting the inotify events. |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | Lsyncd は軽量なリアルタイムミラーを構築することができます。 |
---|
35 | Lsyncd は rsync を用いて rsyncd が動いているリモートのマシンとローカル |
---|
36 | のディレクトリを同期させることができます。Lsyncd は複数のディレクトリツ |
---|
37 | リーを inotify を通じて監視し、inotefy イベントを収集することでここの |
---|
38 | ファイルを同期します。 |
---|
39 | |
---|
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 | |
---|
51 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
52 | %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd |
---|
53 | |
---|
54 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/lsyncd |
---|
55 | |
---|
56 | # remove examples |
---|
57 | %{__rm} -rf %{buildroot}%{_datadir}/doc/lsyncd |
---|
58 | |
---|
59 | |
---|
60 | %clean |
---|
61 | %{__rm} -rf %{buildroot} |
---|
62 | |
---|
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 | |
---|
77 | %files |
---|
78 | %defattr(-, root, root, 0755) |
---|
79 | %doc COPYING ChangeLog examples/ |
---|
80 | %{_sysconfdir}/rc.d/init.d/lsyncd |
---|
81 | %{_sysconfdir}/lsyncd/ |
---|
82 | %{_bindir}/lsyncd |
---|
83 | %{_mandir}/man1/lsyncd.1* |
---|
84 | |
---|
85 | %changelog |
---|
86 | * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.4-1 |
---|
87 | - update to 2.0.4 |
---|
88 | |
---|
89 | * Sun Oct 31 2010 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.39-1 |
---|
90 | - new upstream release |
---|
91 | |
---|
92 | * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1 |
---|
93 | - initial build for Vine Linux |
---|