From ed078aa12fa4932bf915886d4c64eae6375d0172 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Thu, 25 Jul 2013 15:12:35 +0200 Subject: logicalfile: add profile registration --- src/logicalfile/90_LMI_LogicalFile_Profile.mof.skel | 20 ++++++++++++++++++++ src/logicalfile/CMakeLists.txt | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 src/logicalfile/90_LMI_LogicalFile_Profile.mof.skel (limited to 'src/logicalfile') diff --git a/src/logicalfile/90_LMI_LogicalFile_Profile.mof.skel b/src/logicalfile/90_LMI_LogicalFile_Profile.mof.skel new file mode 100644 index 0000000..4ea42e0 --- /dev/null +++ b/src/logicalfile/90_LMI_LogicalFile_Profile.mof.skel @@ -0,0 +1,20 @@ +instance of PG_ProviderProfileCapabilities +{ + CapabilityID = "@CLASS@"; + + ProviderModuleName = "cmpiLMI_LogicalFile"; + + ProviderName = "@CLASS@"; + + RegisteredProfile = 0; + + OtherRegisteredProfile = "OpenLMI-LogicalFile"; + OtherProfileOrganization = "OpenLMI"; + + ProfileVersion = "@VERSION@"; + + ConformingElements = { + "@CLASS@" + }; +}; + diff --git a/src/logicalfile/CMakeLists.txt b/src/logicalfile/CMakeLists.txt index d770080..3a09a4a 100644 --- a/src/logicalfile/CMakeLists.txt +++ b/src/logicalfile/CMakeLists.txt @@ -35,5 +35,9 @@ target_link_libraries(${LIBRARY_NAME} openlmicommon # Create registration file cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) +set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_LogicalFile_Profile.mof") +profile_mof_generate("90_LMI_LogicalFile_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}") + install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi) install(PROGRAMS ${CIMPROVAGT_SCRIPT} DESTINATION libexec/pegasus) +install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/) -- cgit