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