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