]> git.pld-linux.org Git - packages/monit.git/blob - monit.spec
- update to 4.8.2
[packages/monit.git] / monit.spec
1 Summary:        Process monitor and restart utility
2 Summary(pl):    Narzêdzie do monitorowania procesów i ich restartowania
3 Name:           monit
4 Version:        4.8.2
5 Release:        1
6 License:        GPL
7 Group:          Applications/Console
8 Source0:        http://www.tildeslash.com/monit/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  e7ad6056c71becf014653f6597d110ca
10 Source1:        %{name}.init
11 Patch0:         %{name}-localhost-http.patch
12 URL:            http://www.tildeslash.com/monit/
13 BuildRequires:  bison
14 BuildRequires:  flex
15 BuildRequires:  openssl-devel >= 0.9.7d
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 Requires(post,preun):   /sbin/chkconfig
18 Requires:       rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 monit is an utility for monitoring daemons or similar programs running
23 on a Unix system. It will start specified programs if they are not
24 running and restart programs not responding.
25
26 %description -l pl
27 monit jest narzêdziem do monitorowania demonów oraz podobnych
28 programów pracuj±cych w systemie Unix. monit zrestartuje podany
29 program w momencie gdy przestaje on pracowaæ lub w momencie gdy
30 program przestaje odpowiadaæ.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35
36 %build
37 %configure \
38         --with-ssl-lib-dir=%{_libdir}
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,monit}
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 # include all files provided by services:
49 echo "include %{_sysconfdir}/monit/*.monitrc" >> monitrc.main
50
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52 install monitrc.main $RPM_BUILD_ROOT%{_sysconfdir}/monitrc
53 install monitrc $RPM_BUILD_ROOT%{_sysconfdir}/monit/default.monitrc
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 /sbin/chkconfig --add %{name}
60 %service monit restart "Monit Daemon"
61
62 %preun
63 if [ "$1" = "0" ]; then
64         %service monit stop
65         /sbin/chkconfig --del %{name}
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc doc/*.html CHANGES.txt CONTRIBUTORS FAQ.txt README*
71 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}rc
72 %attr(751,root,root) %dir %{_sysconfdir}/monit
73 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
74 %attr(755,root,root) %{_bindir}/*
75 %attr(754,root,root) /etc/rc.d/init.d/%{name}
76 %{_mandir}/man?/*
This page took 0.23054 seconds and 4 git commands to generate.