File 0004-Install-service-scripts-to-usr-share-openlmi-provide.patch of Package openlmi-providers

From d8dce1c2491f031a39f0737d463fbd9f3fbbae69 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Tue, 7 Oct 2014 14:33:33 +0200
Subject: [PATCH 04/22] Install service scripts to /usr/share/openlmi-providers

---
 src/service/CMakeLists.txt     | 2 +-
 src/service/util/serviceutil.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/service/CMakeLists.txt b/src/service/CMakeLists.txt
index fd005a83c913..8193ec642ab3 100644
--- a/src/service/CMakeLists.txt
+++ b/src/service/CMakeLists.txt
@@ -30,7 +30,7 @@ profile_mof_generate("90_LMI_Service_Profile.mof.skel" "${TARGET_MOF}" "LMI_Serv
 cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} "60_LMI_Service.mof" share/openlmi-providers "${TARGET_MOF}")
 
 
-install(PROGRAMS util/servicedisc.sh util/serviceutil.sh DESTINATION libexec)
+install(PROGRAMS util/servicedisc.sh util/serviceutil.sh DESTINATION share/openlmi-providers)
 install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION share/openlmi-providers)
 install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi)
 install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/)
diff --git a/src/service/util/serviceutil.c b/src/service/util/serviceutil.c
index 522c78e16079..80a743830a01 100644
--- a/src/service/util/serviceutil.c
+++ b/src/service/util/serviceutil.c
@@ -31,8 +31,8 @@
 
 #define MAX_SLIST_CNT 1000
 
-char *suscript = "/usr/libexec/serviceutil.sh";
-char *sdscript = "/usr/libexec/servicedisc.sh";
+char *suscript = "/usr/share/openlmi-providers/serviceutil.sh";
+char *sdscript = "/usr/share/openlmi-providers/servicedisc.sh";
 
 const char *provider_name = "service";
 const ConfigEntry *provider_config_defaults = NULL;
-- 
2.23.0

openSUSE Build Service is sponsored by