Changes of Revision 44
[-] | Changed | icinga-mod_gearman.spec |
x 1
2 BuildRequires: gcc-c++ gearmand-devel >= 0.14 ncurses-devel sed 3 BuildRequires: %{monitor} 4 5 +# for make check 6 +BuildRequires: gearmand 7 +BuildRequires: nagios-plugins 8 + 9 %description 10 Mod Gearman is a new way of distributing active Nagios checks across your network. 11 It consists of two parts: There is a NEB module which resides in the Nagios core 12
13 %__install -D -m0755 %{S:1} %{buildroot}/etc/init.d/mod_gearman_worker 14 %__install -D -m0644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.mod_gearman_worker 15 sed -i s@"%USERID%"@"%{monitor}"@ %{buildroot}/var/adm/fillup-templates/sysconfig.mod_gearman_worker 16 +%__install -d -m0755 %{buildroot}%{_sbindir} 17 +ln -sf ../../etc/init.d/mod_gearman_worker %{buildroot}%{_sbindir}/rcmod_gearman_worker 18 %endif 19 %__install -D -m0644 %{buildroot}%{_datadir}/mod_gearman/standalone_worker.conf %{buildroot}%{_sysconfdir}/mod_gearman_worker.conf 20 %__install -d %{buildroot}/var/log/mod_gearman_worker 21
22 mv %{buildroot}%{_bindir}/check_gearman %{buildroot}%{_bindir}/send_gearman %{buildroot}%{_bindir}/send_multi %{buildroot}%{_prefix}/lib/nagios/plugins/ 23 rm -rf %{buildroot}%{_sysconfdir}/init.d/gearmand 24 25 +%check 26 +export PATH=/usr/sbin:/sbin:/usr/bin:/bin 27 +%__make test 28 + 29 %clean 30 rm -rf %{buildroot} 31 32
33 %defattr(-,root,root) 34 %config(noreplace) %{_sysconfdir}/mod_gearman_worker.conf 35 %{_sysconfdir}/init.d/mod_gearman_worker 36 +%{_sbindir}/rcmod_gearman_worker 37 %{_bindir}/mod_gearman_worker 38 %dir %{_datadir}/mod_gearman 39 %{_datadir}/mod_gearman/standalone_worker.conf 40 |