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 | |
---|
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 | * Wed Aug 10 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.2.5-1 |
---|
86 | - new upstream release |
---|
87 | |
---|
88 | * Sun Mar 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.2.4-1 |
---|
89 | - new upstream release |
---|
90 | |
---|
91 | * Mon Nov 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.10.1-8 |
---|
92 | - initial build for Vine Linux |
---|
93 | |
---|
94 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.10.1-7 |
---|
95 | - Autorebuild for GCC 4.3 |
---|
96 | |
---|
97 | * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 4.10.1-6 |
---|
98 | - Rebuild for deps |
---|
99 | |
---|
100 | |
---|
101 | * Wed Dec 5 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-5 |
---|
102 | - Rebuild to fix broken deps on libssl.so.6 and libcrypto.so.6 |
---|
103 | |
---|
104 | * Sat Nov 24 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-4 |
---|
105 | - Substitute RPM macros for their real values in monit.conf (#397671) |
---|
106 | |
---|
107 | * Tue Nov 13 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-3 |
---|
108 | - Bump |
---|
109 | - Fix changelog date for previous entry |
---|
110 | |
---|
111 | * Mon Nov 12 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2.1 |
---|
112 | - Switch back to OpenSSL since NSS isn't working too well with Monit |
---|
113 | |
---|
114 | * Wed Nov 7 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2 |
---|
115 | - License is actually GPLv3+ |
---|
116 | - s/%%{__install}/%%{__install} -p/ |
---|
117 | - NSS-ize |
---|
118 | |
---|
119 | * Tue Nov 6 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-1 |
---|
120 | - Initial RPM release |
---|