lsyncd-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Summary: Live syncing (mirroring) daemon
  2. Summary(ja): リアルタイム同期(ミラーリング)デーモン
  3. Name: lsyncd
  4. Version: 2.0.5
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: Applications/Internet
  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: lua-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 provides a light-weight live mirror solution.
  22. Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd.
  23. Lsyncd watches multiple directories trees through inotify. The first step after adding
  24. the watches is to rsync all directories with the remote host, and then sync single file
  25. by collecting the inotify events.
  26. %description
  27. Lsyncd は軽量なリアルタイムミラーを構築することができます。
  28. Lsyncd は rsync を用いて rsyncd が動いているリモートのマシンとローカル
  29. のディレクトリを同期させることができます。Lsyncd は複数のディレクトリツ
  30. リーを inotify を通じて監視し、inotefy イベントを収集することでここの
  31. ファイルを同期します。
  32. %prep
  33. %setup
  34. %build
  35. %configure
  36. %{__make} %{?_smp_mflags}
  37. %install
  38. %{__rm} -rf %{buildroot}
  39. %{__make} install DESTDIR=%{buildroot}
  40. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
  41. %{__install} -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/lsyncd
  42. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/lsyncd
  43. # remove examples
  44. %{__rm} -rf %{buildroot}%{_datadir}/doc/lsyncd
  45. %clean
  46. %{__rm} -rf %{buildroot}
  47. %post
  48. /sbin/chkconfig --add lsyncd
  49. %preun
  50. if [ "$1" = "0" ]; then
  51. /sbin/service lsyncd stop >/dev/null 2>&1
  52. /sbin/chkconfig --del lsyncd
  53. fi
  54. %postun
  55. if [ "$1" -ge "1" ]; then
  56. /sbin/service lsyncd condrestart >/dev/null 2>&1
  57. fi
  58. %files
  59. %defattr(-, root, root, 0755)
  60. %doc COPYING ChangeLog examples/
  61. %{_sysconfdir}/rc.d/init.d/lsyncd
  62. %{_sysconfdir}/lsyncd/
  63. %{_bindir}/lsyncd
  64. %{_mandir}/man1/lsyncd.1*
  65. %changelog
  66. * Mon Feb 13 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.5-1
  67. - new upstream release
  68. * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.4-1
  69. - update to 2.0.4
  70. * Sun Oct 31 2010 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.39-1
  71. - new upstream release
  72. * Thu Aug 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.34-1
  73. - initial build for Vine Linux