lsyncd-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. BuildRequires: libxml2-devel
  13. Requires: rsync
  14. Requires(post): chkconfig
  15. Requires(preun): chkconfig
  16. Requires(preun): initscripts
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: daisuke
  20. %description
  21. Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd.
  22. Lsyncd watches multiple directories trees through inotify. The first step after adding
  23. the watches is to rsync all directories with the remote host, and then sync single file
  24. by collecting the inotify events. So lsyncd is a light-weight live mirror solution that
  25. should be easy to install and use while blending well with your system. See lsyncd --help
  26. for detailed command line options.
  27. %prep
  28. %setup
  29. %build
  30. %configure
  31. %{__make} %{?_smp_mflags}
  32. %install
  33. %{__rm} -rf %{buildroot}
  34. %{__make} install DESTDIR=%{buildroot}
  35. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
  36. %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd
  37. %clean
  38. %{__rm} -rf %{buildroot}
  39. %post
  40. /sbin/chkconfig --add lsyncd
  41. %preun
  42. if [ "$1" = "0" ]; then
  43. /sbin/service lsyncd stop >/dev/null 2>&1
  44. /sbin/chkconfig --del lsyncd
  45. fi
  46. %postun
  47. if [ "$1" -ge "1" ]; then
  48. /sbin/service lsyncd condrestart >/dev/null 2>&1
  49. fi
  50. %files
  51. %defattr(-, root, root, 0755)
  52. %doc AUTHORS COPYING ChangeLog NEWS TODO lsyncd.conf.xml
  53. %{_sysconfdir}/rc.d/init.d/lsyncd
  54. %{_bindir}/lsyncd
  55. %{_mandir}/man1/lsyncd.1*
  56. %{_mandir}/man5/lsyncd.conf.xml.5*
  57. %changelog
  58. * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1
  59. - initial build for Vine Linux