lsyncd-vl.spec 1.8 KB

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