From eddd9e5d1b97be919e7cad7a62bc7316898f4a68 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Fri, 26 Jul 2013 13:16:49 +0200 Subject: Register profile for LMI_Fan provider --- src/fan/90_LMI_Fan_Profile.mof.skel | 41 +++++++++++++++++++++++++++++++++++++ src/fan/CMakeLists.txt | 4 +++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/fan/90_LMI_Fan_Profile.mof.skel (limited to 'src') diff --git a/src/fan/90_LMI_Fan_Profile.mof.skel b/src/fan/90_LMI_Fan_Profile.mof.skel new file mode 100644 index 0000000..e8d89f2 --- /dev/null +++ b/src/fan/90_LMI_Fan_Profile.mof.skel @@ -0,0 +1,41 @@ +instance of PG_ProviderProfileCapabilities +{ + CapabilityID = "@CLASS@"; + + ProviderModuleName = "cmpiLMI_Fan"; + + ProviderName = "@CLASS@"; + + RegisteredProfile = 0; + + OtherRegisteredProfile = "OpenLMI-Fan"; + OtherProfileOrganization = "OpenLMI"; + + ProfileVersion = "@VERSION@"; + + ConformingElements = { + "@CLASS@" + }; + RegisteredSubProfiles = {}; +}; + +instance of PG_ProviderProfileCapabilities +{ + CapabilityID = "DMTF_@CLASS@"; + + ProviderModuleName = "cmpiLMI_Fan"; + + ProviderName = "@CLASS@"; + + RegisteredProfile = 0; + + OtherRegisteredProfile = "Fan"; + OtherProfileOrganization = "DMTF"; + + ProfileVersion = "1.0.1"; + + ConformingElements = { + "@CLASS@" + }; + RegisteredSubProfiles = {}; +}; diff --git a/src/fan/CMakeLists.txt b/src/fan/CMakeLists.txt index a5324f7..0028997 100644 --- a/src/fan/CMakeLists.txt +++ b/src/fan/CMakeLists.txt @@ -26,6 +26,8 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon ${KONKRETCMPI_LIBRARIES} sen # Create registration file cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) +set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Fan_Profile.mof") +profile_mof_generate("90_LMI_Fan_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}") install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/) - +install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/) -- cgit