summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-07-26 13:16:49 +0200
committerJan Safranek <jsafrane@redhat.com>2013-07-26 13:16:49 +0200
commita7aceca037e88bb6d8a2d14641742df8d9e9c627 (patch)
tree4ba392d2e93651de1909cd0f532609010ccd4455
parenteddd9e5d1b97be919e7cad7a62bc7316898f4a68 (diff)
downloadopenlmi-providers-a7aceca037e88bb6d8a2d14641742df8d9e9c627.tar.gz
openlmi-providers-a7aceca037e88bb6d8a2d14641742df8d9e9c627.tar.xz
openlmi-providers-a7aceca037e88bb6d8a2d14641742df8d9e9c627.zip
Added cimprovagt wrapper for Fan profile.
-rw-r--r--openlmi-providers.spec1
-rw-r--r--src/fan/CMakeLists.txt2
-rw-r--r--src/fan/cmpiLMI_Fan-cimprovagt23
3 files changed, 26 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 8f3870a..62f43a9 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -279,6 +279,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/%{name}
%{_datadir}/%{name}/60_LMI_Fan.mof
%{_datadir}/%{name}/60_LMI_Fan.reg
%{_datadir}/%{name}/90_LMI_Fan_Profile.mof
+%attr(755, root, root) %{_libexecdir}/pegasus/cmpiLMI_Fan-cimprovagt
%files -n openlmi-powermanagement
%doc README COPYING
diff --git a/src/fan/CMakeLists.txt b/src/fan/CMakeLists.txt
index 0028997..7c17f50 100644
--- a/src/fan/CMakeLists.txt
+++ b/src/fan/CMakeLists.txt
@@ -2,6 +2,7 @@
set(PROVIDER_NAME Fan)
set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME})
set(MOF 60_LMI_Fan.mof)
+set(FAN_SCRIPT cmpiLMI_${PROVIDER_NAME}-cimprovagt)
set(provider_SRCS
fan.c
@@ -31,3 +32,4 @@ profile_mof_generate("90_LMI_Fan_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSE
install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/)
install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/)
+install(PROGRAMS ${FAN_SCRIPT} DESTINATION libexec/pegasus)
diff --git a/src/fan/cmpiLMI_Fan-cimprovagt b/src/fan/cmpiLMI_Fan-cimprovagt
new file mode 100644
index 0000000..4079cbb
--- /dev/null
+++ b/src/fan/cmpiLMI_Fan-cimprovagt
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# Copyright (C) 2012-2013 Red Hat, Inc. All rights reserved.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# Authors: Roman Rakus <rrakus@redhat.com>
+#
+
+
+/usr/libexec/pegasus/cimprovagt "$@"