averi pushed to check-mk (f21). "Do not install all the plugins by default but make them available on a different directory. Users will then be able to symlink each of the plugins under the %%{_datadir}/check-mk-agent/plugins directory and finally mark them as active. (BZ: #1218516)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue May 5 12:27:04 UTC 2015


>From 8232a3977af691b8fb3a0cbfdb6b0c31a0169e6d Mon Sep 17 00:00:00 2001
From: Andrea Veri <av at gnome.org>
Date: Tue, 5 May 2015 13:31:20 +0200
Subject: Do not install all the plugins by default but make them available on
 a different directory. Users will then be able to symlink each of the plugins
 under the %%{_datadir}/check-mk-agent/plugins directory and finally mark them
 as active. (BZ: #1218516)


diff --git a/check-mk.spec b/check-mk.spec
index 8175878..13a7169 100644
--- a/check-mk.spec
+++ b/check-mk.spec
@@ -192,9 +192,11 @@ 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 %{buildroot}%{_sysconfdir}/nagios/objects/check_mk_templates.cfg
 
-# PLUGINSDIR on the check_mk_agent binary file is set to be %%{_datadir}/check-mk-agent/plugins,
-# make sure files are copied over to the correct location.
-cp -r %{buildroot}%{_datadir}/check_mk/agents/plugins/* %{buildroot}%{_datadir}/check-mk-agent/plugins/
+# Do not install all the plugins by default but make them available on a different
+# directory. Users will then be able to symlink each of the plugins under the
+# %%{_datadir}/check-mk-agent/plugins directory and finally mark them as active. (BZ: #1218516)
+mkdir -p %{buildroot}%{_datadir}/check-mk-agent/available-plugins/
+cp -r %{buildroot}%{_datadir}/check_mk/agents/plugins/* %{buildroot}%{_datadir}/check-mk-agent/available-plugins/
 rm -rf %{buildroot}%{_datadir}/check_mk/agents/plugins/
 
 # Fix the path for the Nagios plugins
@@ -359,6 +361,10 @@ rmdir %{buildroot}%{_prefix}/lib/check_mk
 %changelog
 * Tue May 05 2015 Andrea Veri <averi at fedoraproject.org> - 1.2.6p2-1
 - New upstream release.
+- Do not install all the plugins by default but make them available
+  on a different directory. Users will then be able to symlink each
+  of the plugins under the %%{_datadir}/check-mk-agent/plugins directory
+  and finally mark them as active. (BZ: #1218516)
 
 * Mon Apr 13 2015 Andrea Veri <averi at fedoraproject.org> - 1.2.6p1-1
 - New upstream release.
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/check-mk.git/commit/?h=f21&id=8232a3977af691b8fb3a0cbfdb6b0c31a0169e6d


More information about the scm-commits mailing list