1 | Summary: Live syncing (mirroring) daemon |
---|
2 | Summary(ja): リアルタイム同期(ミラーリング)デーモン |
---|
3 | Name: lsyncd |
---|
4 | Version: 1.34 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: GPL |
---|
8 | Group: Applications/File |
---|
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 | Requires: rsync |
---|
16 | Requires(post): /sbin/chkconfig |
---|
17 | Requires(preun): /sbin/chkconfig |
---|
18 | Requires(preun): /sbin/service |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | Packager: daisuke |
---|
23 | |
---|
24 | %description |
---|
25 | Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. |
---|
26 | Lsyncd watches multiple directories trees through inotify. The first step after adding |
---|
27 | the watches is to rsync all directories with the remote host, and then sync single file |
---|
28 | by collecting the inotify events. So lsyncd is a light-weight live mirror solution that |
---|
29 | should be easy to install and use while blending well with your system. See lsyncd --help |
---|
30 | for detailed command line options. |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup |
---|
34 | |
---|
35 | %build |
---|
36 | %configure |
---|
37 | %{__make} %{?_smp_mflags} |
---|
38 | |
---|
39 | %install |
---|
40 | %{__rm} -rf %{buildroot} |
---|
41 | %{__make} install DESTDIR=%{buildroot} |
---|
42 | |
---|
43 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
---|
44 | %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd |
---|
45 | |
---|
46 | %clean |
---|
47 | %{__rm} -rf %{buildroot} |
---|
48 | |
---|
49 | %post |
---|
50 | /sbin/chkconfig --add lsyncd |
---|
51 | |
---|
52 | %preun |
---|
53 | if [ "$1" = "0" ]; then |
---|
54 | /sbin/service lsyncd stop >/dev/null 2>&1 |
---|
55 | /sbin/chkconfig --del lsyncd |
---|
56 | fi |
---|
57 | |
---|
58 | %postun |
---|
59 | if [ "$1" -ge "1" ]; then |
---|
60 | /sbin/service lsyncd condrestart >/dev/null 2>&1 |
---|
61 | fi |
---|
62 | |
---|
63 | %files |
---|
64 | %defattr(-, root, root, 0755) |
---|
65 | %doc AUTHORS COPYING ChangeLog NEWS TODO lsyncd.conf.xml |
---|
66 | %{_bindir}/lsyncd |
---|
67 | %{_mandir}/man1/lsyncd.1* |
---|
68 | %{_mandir}/man5/lsyncd.conf.xml.5* |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1 |
---|
72 | - initial build for Vine Linux |
---|