source: projects/specs/trunk/m/monit/monit-vl.spec @ 4558

Revision 4558, 3.5 KB checked in by shaolin, 13 years ago (diff)
  • monit: new upstream release
Line 
1Name:           monit
2Version:        5.2.5
3Release:        1%{?_dist_release}
4Summary:        Manages and monitors processes, files, directories and devices
5Summary(ja):    プロセス/ファイル/ディレクトリ/デバイスを監視するツール
6
7Group:          Applications/Internet
8License:        GPLv3+
9URL:            http://www.tildeslash.com/monit
10Source0:        http://www.tildeslash.com/monit/dist/monit-%{version}.tar.gz
11Source1:        monit-sysv-initscript
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14BuildRequires:  flex
15BuildRequires:  openssl-devel
16BuildRequires:  byacc
17
18Requires(post): /sbin/chkconfig
19Requires(preun): /sbin/chkconfig
20Requires(preun): /sbin/service
21Requires(postun): /sbin/service
22
23%description
24Monit is a utility for managing and monitoring, processes, files, directories
25and devices on a UNIX system. Monit conducts automatic maintenance and repair
26and can execute meaningful causal actions in error situations.
27
28%description -l ja
29monit は、UNIX システム上でプロセス、ファイル、ディレクトリ、デバイスなどを
30監視・管理するためのユーティリティです。monit を使うと、メンテナンスや復旧を
31自動で行うことができ、エラーが発生した時にそれに対応するアクションを実行する
32ことができます。
33
34
35%prep
36%setup -q
37
38
39%build
40%configure \
41    --disable-static
42make %{?_smp_mflags}
43
44
45%install
46rm -rf $RPM_BUILD_ROOT
47make 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
56rm -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
64if [ $1 = 0 ]; then
65        /sbin/service monit stop >/dev/null 2>&1
66        /sbin/chkconfig --del monit
67fi
68
69%postun
70if [ "$1" -ge "1" ]; then
71        /sbin/service monit condrestart >/dev/null 2>&1 || :
72fi
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
Note: See TracBrowser for help on using the repository browser.