diff options
author | Jan Synacek <jsynacek@redhat.com> | 2013-07-26 10:33:03 +0200 |
---|---|---|
committer | Jan Synacek <jsynacek@redhat.com> | 2013-07-26 12:00:39 +0200 |
commit | e5c8ae992dfaff13a1d29624464cce935373c0fb (patch) | |
tree | 8f57de618c559f00e78d099867879c0a1b280743 /src/realmd | |
parent | 1105d99b1ff631935140809047b9eb9684c712e0 (diff) | |
download | openlmi-providers-e5c8ae992dfaff13a1d29624464cce935373c0fb.tar.gz openlmi-providers-e5c8ae992dfaff13a1d29624464cce935373c0fb.tar.xz openlmi-providers-e5c8ae992dfaff13a1d29624464cce935373c0fb.zip |
realmd: add profile registration and class versioning in mof
Diffstat (limited to 'src/realmd')
-rw-r--r-- | src/realmd/90_LMI_Realmd_Profile.mof.skel | 20 | ||||
-rw-r--r-- | src/realmd/CMakeLists.txt | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/realmd/90_LMI_Realmd_Profile.mof.skel b/src/realmd/90_LMI_Realmd_Profile.mof.skel new file mode 100644 index 0000000..4b08cfc --- /dev/null +++ b/src/realmd/90_LMI_Realmd_Profile.mof.skel @@ -0,0 +1,20 @@ +instance of PG_ProviderProfileCapabilities +{ + CapabilityID = "@CLASS@"; + + ProviderModuleName = "cmpiLMI_Realmd"; + + ProviderName = "@CLASS@"; + + RegisteredProfile = 0; + + OtherRegisteredProfile = "OpenLMI-Realmd"; + OtherProfileOrganization = "OpenLMI"; + + ProfileVersion = "@VERSION@"; + + ConformingElements = { + "@CLASS@" + }; +}; + diff --git a/src/realmd/CMakeLists.txt b/src/realmd/CMakeLists.txt index 545933c..4552382 100644 --- a/src/realmd/CMakeLists.txt +++ b/src/realmd/CMakeLists.txt @@ -45,4 +45,8 @@ target_link_libraries(${LIBRARY_NAME} # Create registration file cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers) +set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Realmd_Profile.mof") +profile_mof_generate("90_LMI_Realmd_Profile.mof.skel" "${TARGET_MOF}" "${CIM_CLASSES}") + install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/) +install(FILES ${TARGET_MOF} DESTINATION share/openlmi-providers/) |