Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
icinga-mod_gearman
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 44
[-]
[+]
Changed
icinga-mod_gearman.spec
@@ -17,6 +17,10 @@ BuildRequires: gcc-c++ gearmand-devel >= 0.14 ncurses-devel sed BuildRequires: %{monitor} +# for make check +BuildRequires: gearmand +BuildRequires: nagios-plugins + %description Mod Gearman is a new way of distributing active Nagios checks across your network. It consists of two parts: There is a NEB module which resides in the Nagios core @@ -70,6 +74,8 @@ %__install -D -m0755 %{S:1} %{buildroot}/etc/init.d/mod_gearman_worker %__install -D -m0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.mod_gearman_worker sed -i s@"%USERID%"@"%{monitor}"@ %{buildroot}/var/adm/fillup-templates/sysconfig.mod_gearman_worker +%__install -d -m0755 %{buildroot}%{_sbindir} +ln -sf ../../etc/init.d/mod_gearman_worker %{buildroot}%{_sbindir}/rcmod_gearman_worker %endif %__install -D -m0644 %{buildroot}%{_datadir}/mod_gearman/standalone_worker.conf %{buildroot}%{_sysconfdir}/mod_gearman_worker.conf %__install -d %{buildroot}/var/log/mod_gearman_worker @@ -80,6 +86,10 @@ mv %{buildroot}%{_bindir}/check_gearman %{buildroot}%{_bindir}/send_gearman %{buildroot}%{_bindir}/send_multi %{buildroot}%{_prefix}/lib/nagios/plugins/ rm -rf %{buildroot}%{_sysconfdir}/init.d/gearmand +%check +export PATH=/usr/sbin:/sbin:/usr/bin:/bin +%__make test + %clean rm -rf %{buildroot} @@ -121,6 +131,7 @@ %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/mod_gearman_worker.conf %{_sysconfdir}/init.d/mod_gearman_worker +%{_sbindir}/rcmod_gearman_worker %{_bindir}/mod_gearman_worker %dir %{_datadir}/mod_gearman %{_datadir}/mod_gearman/standalone_worker.conf