Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-mod_gearman
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Changed
nagios-mod_gearman.spec
@@ -2,8 +2,8 @@ %define monitor nagios %define pkgname mod_gearman Name: %{monitor}-%{pkgname} -Version: 1.0 -Release: 3 +Version: 1.0.3 +Release: 1 Group: Application/System License: GPLv3 Url: http://labs.consol.de/lang/de/nagios/mod-gearman/ @@ -74,8 +74,10 @@ %__install -D -m0644 %{buildroot}%{_datadir}/mod_gearman/standalone_worker.conf %{buildroot}%{_sysconfdir}/mod_gearman_worker.conf %__install -d %{buildroot}/var/log/mod_gearman_worker %__install -d %{buildroot}/var/run/mod_gearman -%__install -d %{buildroot}%{_prefix}/lib/%{monitor}/plugins -mv %{buildroot}%{_bindir}/check_gearman %{buildroot}%{_bindir}/send_gearman %{buildroot}%{_bindir}/send_multi %{buildroot}%{_prefix}/lib/%{monitor}/plugins/ +# use nagios as plugindir not icinga, because all plugins are there +%__install -d %{buildroot}%{_prefix}/lib/nagios/plugins +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 %clean rm -rf %{buildroot} @@ -87,6 +89,7 @@ %stop_on_removal %postun worker +%restart_on_update mod_gearman_worker %insserv_cleanup %postun server @@ -133,10 +136,11 @@ %files plugins %defattr(-,root,root) -%dir %{_prefix}/lib/%{monitor} -%dir %{_prefix}/lib/%{monitor}/plugins -%{_prefix}/lib/%{monitor}/plugins/check_gearman -%{_prefix}/lib/%{monitor}/plugins/send_gearman -%{_prefix}/lib/%{monitor}/plugins/send_multi +# use nagios as plugindir not icinga, because all plugins are there +%dir %{_prefix}/lib/nagios +%dir %{_prefix}/lib/nagios/plugins +%{_prefix}/lib/nagios/plugins/check_gearman +%{_prefix}/lib/nagios/plugins/send_gearman +%{_prefix}/lib/nagios/plugins/send_multi %changelog