source: projects/specs/branches/6/l/lsyncd/lsyncd-vl.spec @ 3888

Revision 3888, 2.4 KB checked in by daisuke, 13 years ago (diff)

lsyncd: update to 2.0.4

Line 
1Summary: Live syncing (mirroring) daemon
2Summary(ja): リアルタイム同期(ミラーリング)デーモン
3Name: lsyncd
4Version: 2.0.4
5Release: 1%{?_dist_release}
6
7License: GPL
8Group: Applications/Internet
9URL: http://code.google.com/p/lsyncd/
10
11Source: lsyncd-%{version}.tar.gz
12Source1: lsyncd.init
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15BuildRequires: lua-devel
16Requires: rsync
17Requires(post): chkconfig
18Requires(preun): chkconfig
19Requires(preun): initscripts
20
21Vendor: Project Vine
22Distribution: Vine Linux
23Packager: daisuke
24
25%description
26Lsyncd provides a light-weight live mirror solution.
27Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd.
28Lsyncd watches multiple directories trees through inotify. The first step after adding
29the watches is to rsync all directories with the remote host, and then sync single file
30by collecting the inotify events. 
31
32
33%description
34Lsyncd は軽量なリアルタイムミラーを構築することができます。
35Lsyncd は 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
51mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
52%{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd
53
54mkdir -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
67if [ "$1" = "0" ]; then
68    /sbin/service lsyncd stop >/dev/null 2>&1
69    /sbin/chkconfig --del lsyncd
70fi
71
72%postun
73if [ "$1" -ge "1" ]; then
74    /sbin/service lsyncd condrestart >/dev/null 2>&1
75fi
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
Note: See TracBrowser for help on using the repository browser.