source: projects/specs/trunk/l/lsyncd/lsyncd-vl.spec @ 2163

Revision 2163, 1.9 KB checked in by daisuke, 14 years ago (diff)

lsyncd: update to 1.39

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