Summary: Process monitor and restart utility Summary(pl.UTF-8): Narzędzie do monitorowania procesów i ich restartowania Name: monit Version: 4.10.1 Release: 2 License: GPL Group: Applications/Console Source0: http://www.tildeslash.com/monit/dist/%{name}-%{version}.tar.gz # Source0-md5: d3143b0bbd79b53f1b019d2fc1dae656 Source1: %{name}.init Source2: %{name}rc Patch0: %{name}-localhost-http.patch URL: http://www.tildeslash.com/monit/ BuildRequires: bison BuildRequires: flex BuildRequires: openssl-devel >= 0.9.7d BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts >= 0.4.0.15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description monit is an utility for monitoring daemons or similar programs running on a Unix system. It will start specified programs if they are not running and restart programs not responding. %description -l pl.UTF-8 monit jest narzędziem do monitorowania demonów oraz podobnych programów pracujących w systemie Unix. monit zrestartuje podany program w momencie gdy przestaje on pracować lub w momencie gdy program przestaje odpowiadać. %prep %setup -q %patch0 -p1 %build %configure \ --with-ssl-lib-dir=%{_libdir} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,monit},%{_sbindir}} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} # NOTE: 'include *.monitrc' will fail if nothing matches the glob. install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/monitrc install monitrc $RPM_BUILD_ROOT%{_sysconfdir}/monit/default.monitrc mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/monit %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add %{name} %service monit restart "Monit Daemon" %preun if [ "$1" = "0" ]; then %service monit stop /sbin/chkconfig --del %{name} fi %files %defattr(644,root,root,755) %doc doc/*.html CHANGES.txt CONTRIBUTORS FAQ.txt README* %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}rc %dir %attr(751,root,root) %{_sysconfdir}/monit %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/default.monitrc %attr(755,root,root) %{_sbindir}/monit %attr(754,root,root) /etc/rc.d/init.d/%{name} %{_mandir}/man?/*