1 | Summary: Live syncing (mirroring) daemon |
---|
2 | Summary(ja): リアルタイム同期(ミラーリング)デーモン |
---|
3 | Name: lsyncd |
---|
4 | Version: 2.1.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 | Source2: lsyncd.sysconfig |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
16 | BuildRequires: lua-devel |
---|
17 | BuildRequires: asciidoc |
---|
18 | Requires: rsync |
---|
19 | Requires(post): chkconfig |
---|
20 | Requires(preun): chkconfig |
---|
21 | Requires(preun): initscripts |
---|
22 | |
---|
23 | Vendor: Project Vine |
---|
24 | Distribution: Vine Linux |
---|
25 | Packager: daisuke |
---|
26 | |
---|
27 | %description |
---|
28 | Lsyncd provides a light-weight live mirror solution. |
---|
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 |
---|
32 | by collecting the inotify events. |
---|
33 | |
---|
34 | |
---|
35 | %description |
---|
36 | Lsyncd は軽量なリアルタイムミラーを構築することができます。 |
---|
37 | Lsyncd は rsync を用いて rsyncd が動いているリモートのマシンとローカル |
---|
38 | のディレクトリを同期させることができます。Lsyncd は複数のディレクトリツ |
---|
39 | リーを inotify を通じて監視し、inotefy イベントを収集することでここの |
---|
40 | ファイルを同期します。 |
---|
41 | |
---|
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 | |
---|
53 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
54 | %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd |
---|
55 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig |
---|
56 | %{__install} -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lsyncd |
---|
57 | |
---|
58 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/lsyncd |
---|
59 | |
---|
60 | # remove examples |
---|
61 | %{__rm} -rf %{buildroot}%{_datadir}/doc/lsyncd |
---|
62 | |
---|
63 | |
---|
64 | %clean |
---|
65 | %{__rm} -rf %{buildroot} |
---|
66 | |
---|
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 | |
---|
81 | %files |
---|
82 | %defattr(-, root, root, 0755) |
---|
83 | %doc COPYING ChangeLog examples/ |
---|
84 | %config(noreplace) %{_sysconfdir}/sysconfig/lsyncd |
---|
85 | %{_sysconfdir}/rc.d/init.d/lsyncd |
---|
86 | %dir %{_sysconfdir}/lsyncd/ |
---|
87 | %{_bindir}/lsyncd |
---|
88 | %{_mandir}/man1/lsyncd.1* |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Sat Feb 03 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-1 |
---|
92 | - new upstream release |
---|
93 | |
---|
94 | * Fri May 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.7-1 |
---|
95 | - new upstream release |
---|
96 | |
---|
97 | * Mon Feb 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.5-1 |
---|
98 | - new upstream release |
---|
99 | |
---|
100 | * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.4-1 |
---|
101 | - update to 2.0.4 |
---|
102 | |
---|
103 | * Sun Oct 31 2010 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.39-1 |
---|
104 | - new upstream release |
---|
105 | |
---|
106 | * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1 |
---|
107 | - initial build for Vine Linux |
---|