lsyncd-vl.spec 3.0 KB

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