monit-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Name: monit
  2. Version: 5.2.5
  3. Release: 1%{?_dist_release}
  4. Summary: Manages and monitors processes, files, directories and devices
  5. Summary(ja): プロセス/ファイル/ディレクトリ/デバイスを監視するツール
  6. Group: Applications/Internet
  7. License: GPLv3+
  8. URL: http://www.tildeslash.com/monit
  9. Source0: http://www.tildeslash.com/monit/dist/monit-%{version}.tar.gz
  10. Source1: monit-sysv-initscript
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: flex
  13. BuildRequires: openssl-devel
  14. BuildRequires: byacc
  15. Requires(post): /sbin/chkconfig
  16. Requires(preun): /sbin/chkconfig
  17. Requires(preun): /sbin/service
  18. Requires(postun): /sbin/service
  19. %description
  20. Monit is a utility for managing and monitoring, processes, files, directories
  21. and devices on a UNIX system. Monit conducts automatic maintenance and repair
  22. and can execute meaningful causal actions in error situations.
  23. %description -l ja
  24. monit は、UNIX システム上でプロセス、ファイル、ディレクトリ、デバイスなどを
  25. 監視・管理するためのユーティリティです。monit を使うと、メンテナンスや復旧を
  26. 自動で行うことができ、エラーが発生した時にそれに対応するアクションを実行する
  27. ことができます。
  28. %prep
  29. %setup -q
  30. %build
  31. %configure \
  32. --disable-static
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. make install DESTDIR=$RPM_BUILD_ROOT
  37. # overwrite perms
  38. %{__install} -p -D -m0755 monit $RPM_BUILD_ROOT%{_bindir}/monit
  39. %{__install} -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/monit
  40. %{__install} -p -D -m0600 monitrc $RPM_BUILD_ROOT%{_sysconfdir}/monit.conf
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %post
  44. # This adds the proper /etc/rc*.d links for the script
  45. /sbin/chkconfig --add monit
  46. %preun
  47. if [ $1 = 0 ]; then
  48. /sbin/service monit stop >/dev/null 2>&1
  49. /sbin/chkconfig --del monit
  50. fi
  51. %postun
  52. if [ "$1" -ge "1" ]; then
  53. /sbin/service monit condrestart >/dev/null 2>&1 || :
  54. fi
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc CHANGES.txt CONTRIBUTORS COPYING FAQ.txt LICENSE PLATFORMS README README.DEVELOPER README.SSL STATUS UPGRADE.txt
  58. %doc %{_mandir}/man1/monit.1*
  59. %config(noreplace) %{_sysconfdir}/monit.conf
  60. %{_initrddir}/monit
  61. %{_bindir}/%{name}
  62. %changelog
  63. * Wed Aug 10 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.2.5-1
  64. - new upstream release
  65. * Sun Mar 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.2.4-1
  66. - new upstream release
  67. * Mon Nov 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.10.1-8
  68. - initial build for Vine Linux
  69. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.10.1-7
  70. - Autorebuild for GCC 4.3
  71. * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 4.10.1-6
  72. - Rebuild for deps
  73. * Wed Dec 5 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-5
  74. - Rebuild to fix broken deps on libssl.so.6 and libcrypto.so.6
  75. * Sat Nov 24 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-4
  76. - Substitute RPM macros for their real values in monit.conf (#397671)
  77. * Tue Nov 13 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-3
  78. - Bump
  79. - Fix changelog date for previous entry
  80. * Mon Nov 12 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2.1
  81. - Switch back to OpenSSL since NSS isn't working too well with Monit
  82. * Wed Nov 7 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2
  83. - License is actually GPLv3+
  84. - s/%%{__install}/%%{__install} -p/
  85. - NSS-ize
  86. * Tue Nov 6 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-1
  87. - Initial RPM release