summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-07-16 16:43:58 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-07-16 16:43:58 +0200
commit16a7166cba8a6ac2ae11f7dbc61dde9eb6177cd8 (patch)
tree5456b18b181313f0e1662aa77b9b97242cd61d84
parentec3391938be3058f11036bade813ba4239d7103b (diff)
downloadopenlmi-providers-16a7166cba8a6ac2ae11f7dbc61dde9eb6177cd8.tar.gz
openlmi-providers-16a7166cba8a6ac2ae11f7dbc61dde9eb6177cd8.tar.xz
openlmi-providers-16a7166cba8a6ac2ae11f7dbc61dde9eb6177cd8.zip
Hardware: Package the cmpiLMI_Hardware-cimprovagt file
Added and packaged the cmpiLMI_Hardware-cimprovagt file for hardware provider.
-rw-r--r--openlmi-providers.spec1
-rw-r--r--src/hardware/CMakeLists.txt2
-rwxr-xr-xsrc/hardware/cmpiLMI_Hardware-cimprovagt21
3 files changed, 24 insertions, 0 deletions
diff --git a/openlmi-providers.spec b/openlmi-providers.spec
index 6e6d8b7..f030053 100644
--- a/openlmi-providers.spec
+++ b/openlmi-providers.spec
@@ -270,6 +270,7 @@ cp mof/LMI_Software.reg $RPM_BUILD_ROOT/%{_datadir}/%{name}/
%{_libdir}/cmpi/libcmpiLMI_Hardware.so
%{_datadir}/%{name}/60_LMI_Hardware.mof
%{_datadir}/%{name}/60_LMI_Hardware.reg
+%attr(755, root, root) %{_libexecdir}/pegasus/cmpiLMI_Hardware-cimprovagt
%files -n openlmi-python
%doc README COPYING
diff --git a/src/hardware/CMakeLists.txt b/src/hardware/CMakeLists.txt
index a972682..ad680ad 100644
--- a/src/hardware/CMakeLists.txt
+++ b/src/hardware/CMakeLists.txt
@@ -1,6 +1,7 @@
set(PROVIDER_NAME Hardware)
set(LIBRARY_NAME cmpiLMI_${PROVIDER_NAME})
set(MOF 60_LMI_Hardware.mof)
+set(CIMPROVAGT_SCRIPT cmpiLMI_${PROVIDER_NAME}-cimprovagt)
set(provider_SRCS
utils.c
@@ -30,3 +31,4 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} ${L
cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers)
install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi)
+install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus)
diff --git a/src/hardware/cmpiLMI_Hardware-cimprovagt b/src/hardware/cmpiLMI_Hardware-cimprovagt
new file mode 100755
index 0000000..88ef77d
--- /dev/null
+++ b/src/hardware/cmpiLMI_Hardware-cimprovagt
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# Copyright (C) 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: Peter Schiffer <pschiffe@redhat.com>
+
+/usr/libexec/pegasus/cimprovagt "$@"