]> git.pld-linux.org Git - packages/monit.git/blob - monit.spec
a86bce3e1aa9d9994565c3821c7f6950f87ff8de
[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:        3.2
5 Release:        1
6 Group:          Applications/Console
7 License:        GPL
8 Source0:        http://www.tildeslash.com/monit/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  0e6137b9753b189831a05b980ad28958
10 Source1:        %{name}.init
11 URL:            http://www.tildeslash.com/monit/
12 BuildRequires:  bison
13 BuildRequires:  flex
14 BuildRequires:  openssl-devel >= 0.9.7
15 PreReq:         rc-scripts
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 monit is an utility for monitoring daemons or similar programs running
21 on a Unix system. It will start specified programs if they are not
22 running and restart programs not responding.
23
24 %description -l pl
25 monit jest narzêdziem do monitorowania demonów oraz podonych programów
26 pracuj±cych w systemie Unix. monit zrestartuje podany program w
27 momencie gdy przestaje on pracowaæ lub w momencie gdy program
28 przestaje odpowiadaæ.
29
30 %prep
31 %setup -q
32
33 %build
34 %configure
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
45 install monitrc $RPM_BUILD_ROOT%{_sysconfdir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /sbin/chkconfig --add %{name}
52 if [ -f %{_var}/lock/subsys/%{name} ]; then
53         /etc/rc.d/init.d/%{name} restart 1>&2
54 else
55         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
56 fi
57
58 %preun
59 if [ "$1" = "0" ]; then
60         if [ -f %{_var}/lock/subsys/%{name} ]; then
61                 /etc/rc.d/init.d/%{name} stop 1>&2
62         fi
63         /sbin/chkconfig --del %{name}
64 fi
65
66 %files
67 %defattr(644,root,root,755)
68 %doc doc/*.html CHANGES.txt CONTRIBUTORS FAQ.txt README*
69 %attr(755,root,root) %{_bindir}/*
70 %{_mandir}/man?/*
71 %attr(754,root,root) /etc/rc.d/init.d/%{name}
72 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}rc
This page took 0.051231 seconds and 2 git commands to generate.