[check-mk/f19] Make sure the Nagios library path on the check_mk_templates.cfg file is correct on both x86_64 and i

averi averi at fedoraproject.org
Sun Apr 28 17:06:24 UTC 2013


commit 2427f8ed45b2cc244ec044352f89b6f157b9b66a
Author: Andrea Veri <av at gnome.org>
Date:   Sun Apr 28 19:06:01 2013 +0200

    Make sure the Nagios library path on the check_mk_templates.cfg file is correct on both x86_64 and i686 systems.

 check-mk.spec |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/check-mk.spec b/check-mk.spec
index 5afc543..eaee4ec 100644
--- a/check-mk.spec
+++ b/check-mk.spec
@@ -135,6 +135,10 @@ mkdir -p %{buildroot}%{_sysconfdir}/nagios/conf.d/
 cp -r %{buildroot}%{_datadir}/check_mk/check_mk_templates.cfg %{buildroot}%{_sysconfdir}/nagios/conf.d/check_mk_templates.cfg
 rm -rf %{buildroot}%{_sysconfdir}/nagios/objects/check_mk_templates.cfg
 
+# Fix the path for the Nagios plugins
+sed -i 's|/usr/lib/nagios/plugins|%{_libdir}/nagios/plugins|' \
+  %{buildroot}%{_sysconfdir}/nagios/conf.d/check_mk_templates.cfg
+
 # Remove the auto-generated defaults file and replace it with a customized version
 rm -rf %{buildroot}%{_datadir}/check_mk/modules/defaults
 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/check_mk/modules/
@@ -212,6 +216,10 @@ rmdir %{buildroot}%{_prefix}/lib/check_mk
 
 
 %changelog
+* Sun Apr 28 2013 Andrea Veri <averi at fedoraproject.org> 1.2.2-5%{?dist}
+- Make sure the Nagios library path on the check_mk_templates.cfg file
+  is correct on both x86_64 and i686 systems.
+
 * Sat Apr 27 2013 Andrea Veri <averi at fedoraproject.org> 1.2.2-4%{?dist}
 - Change check-mk-agent's binary name to check_mk_agent to match xinetd's file. (BZ: #956489)
 - Remove other operating systems agents, we definitely don't need them on this package.


More information about the scm-commits mailing list