From dae206e89924d6ab73f15384ad2cf2ea64e8d9a2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 17 Mar 2015 08:14:46 +0100 Subject: [PATCH] Move the base command templates into libmethods fixes #8775 --- itl/CMakeLists.txt | 2 +- itl/itl | 3 ++- lib/db_ido/CMakeLists.txt | 4 ++-- lib/db_ido/{db_ido-check.conf => db_ido-itl.conf} | 0 lib/methods/CMakeLists.txt | 4 +++- itl/command.conf => lib/methods/methods-itl.conf | 2 -- 6 files changed, 8 insertions(+), 7 deletions(-) rename lib/db_ido/{db_ido-check.conf => db_ido-itl.conf} (100%) rename itl/command.conf => lib/methods/methods-itl.conf (99%) diff --git a/itl/CMakeLists.txt b/itl/CMakeLists.txt index d1d1e1927..60aa69b6b 100644 --- a/itl/CMakeLists.txt +++ b/itl/CMakeLists.txt @@ -18,6 +18,6 @@ add_subdirectory(plugins-contrib.d) install( - FILES itl command.conf command-icinga.conf hangman timeperiod.conf plugins command-plugins.conf manubulon command-plugins-manubulon.conf command-nscp-local.conf nscp plugins-contrib + FILES itl command-icinga.conf hangman timeperiod.conf plugins command-plugins.conf manubulon command-plugins-manubulon.conf command-nscp-local.conf nscp plugins-contrib DESTINATION ${CMAKE_INSTALL_DATADIR}/icinga2/include ) diff --git a/itl/itl b/itl/itl index 19108b175..9362e2409 100644 --- a/itl/itl +++ b/itl/itl @@ -22,6 +22,7 @@ * configuration templates. */ -include "command.conf" +library "methods" + include "command-icinga.conf" include "timeperiod.conf" diff --git a/lib/db_ido/CMakeLists.txt b/lib/db_ido/CMakeLists.txt index 49d3e114d..fcc74ea60 100644 --- a/lib/db_ido/CMakeLists.txt +++ b/lib/db_ido/CMakeLists.txt @@ -18,11 +18,11 @@ mkclass_target(dbconnection.ti dbconnection.thpp) mkembedconfig_target(db_ido-type.conf db_ido-type.cpp) -mkembedconfig_target(db_ido-check.conf db_ido-check.cpp) +mkembedconfig_target(db_ido-itl.conf db_ido-itl.cpp) set(db_ido_SOURCES commanddbobject.cpp dbconnection.cpp dbconnection.thpp dbconnection.thpp - db_ido-type.cpp db_ido-check.cpp dbevents.cpp dbobject.cpp dbquery.cpp + db_ido-type.cpp db_ido-itl.cpp dbevents.cpp dbobject.cpp dbquery.cpp dbreference.cpp dbtype.cpp dbvalue.cpp endpointdbobject.cpp hostdbobject.cpp hostgroupdbobject.cpp idochecktask.cpp servicedbobject.cpp servicegroupdbobject.cpp timeperioddbobject.cpp userdbobject.cpp diff --git a/lib/db_ido/db_ido-check.conf b/lib/db_ido/db_ido-itl.conf similarity index 100% rename from lib/db_ido/db_ido-check.conf rename to lib/db_ido/db_ido-itl.conf diff --git a/lib/methods/CMakeLists.txt b/lib/methods/CMakeLists.txt index c85468978..345c0f643 100644 --- a/lib/methods/CMakeLists.txt +++ b/lib/methods/CMakeLists.txt @@ -15,6 +15,8 @@ # along with this program; if not, write to the Free Software Foundation # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +mkembedconfig_target(methods-itl.conf methods-itl.cpp) + if(MSVC) set(WindowsSources clrchecktask.cpp) else() @@ -23,7 +25,7 @@ endif() set(methods_SOURCES clusterchecktask.cpp clusterzonechecktask.cpp - icingachecktask.cpp nullchecktask.cpp nulleventtask.cpp + icingachecktask.cpp methods-itl.cpp nullchecktask.cpp nulleventtask.cpp pluginchecktask.cpp plugineventtask.cpp pluginnotificationtask.cpp randomchecktask.cpp timeperiodtask.cpp ${WindowsSources} ) diff --git a/itl/command.conf b/lib/methods/methods-itl.conf similarity index 99% rename from itl/command.conf rename to lib/methods/methods-itl.conf index f29e354c9..b7e1dd9b5 100644 --- a/itl/command.conf +++ b/lib/methods/methods-itl.conf @@ -17,8 +17,6 @@ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ******************************************************************************/ -library "methods" - template CheckCommand "icinga-check-command" { execute = IcingaCheck } -- 2.40.0