diff options
-rw-r--r-- | openlmi-providers.spec | 1 | ||||
-rw-r--r-- | src/fan/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/fan/cmpiLMI_Fan-cimprovagt | 23 |
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 "$@" |