diff options
author | Roman Rakus <rrakus@redhat.com> | 2013-07-24 11:45:14 +0200 |
---|---|---|
committer | Roman Rakus <rrakus@redhat.com> | 2013-07-24 12:29:56 +0200 |
commit | f990e0ddb6c2079cc3cfeefe9a0947a357880e8f (patch) | |
tree | 6aa32da02620f6afbe2fc0561d7a5e55b1195bc7 /src | |
parent | 99f551607ff6c0f7f941873766e1533f0ce41245 (diff) | |
download | openlmi-providers-f990e0ddb6c2079cc3cfeefe9a0947a357880e8f.tar.gz openlmi-providers-f990e0ddb6c2079cc3cfeefe9a0947a357880e8f.tar.xz openlmi-providers-f990e0ddb6c2079cc3cfeefe9a0947a357880e8f.zip |
Account: Profile registration
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/account/90_LMI_Account_Profile.mof.skel | 28 | ||||
-rw-r--r-- | src/account/CMakeLists.txt | 11 |
2 files changed, 39 insertions, 0 deletions
diff --git a/src/account/90_LMI_Account_Profile.mof.skel b/src/account/90_LMI_Account_Profile.mof.skel new file mode 100644 index 0000000..ff0bdee --- /dev/null +++ b/src/account/90_LMI_Account_Profile.mof.skel @@ -0,0 +1,28 @@ +instance of PG_ProviderProfileCapabilities +{ + CapabilityID = "@CLASS@"; + + ProviderModuleName = "cmpiLMI_Account"; + + ProviderName = "@CLASS@"; + + RegisteredProfile = 0; + + OtherRegisteredProfile = "OpenLMI-Account"; + OtherProfileOrganization = "OpenLMI"; + + ProfileVersion = "0.0.1"; + + RegisteredSubProfiles = { + 3025 + }; + + SubprofileVersions = { + "1.0.1" + }; + + ConformingElements = { + "@CLASS@" + }; +}; + diff --git a/src/account/CMakeLists.txt b/src/account/CMakeLists.txt index 61075a1..d839565 100644 --- a/src/account/CMakeLists.txt +++ b/src/account/CMakeLists.txt @@ -30,6 +30,16 @@ add_library(${LIBRARY_NAME} SHARED ${CIM_HEADERS} ) +set(CIM_PROVIDERS_CLASSES "") +foreach(CIM_CLASS ${CIM_CLASSES}) + if(NOT ${CIM_CLASS} MATCHES "Indication") + set(CIM_PROVIDERS_CLASSES ${CIM_PROVIDERS_CLASSES} ${CIM_CLASS}) + endif(NOT ${CIM_CLASS} MATCHES "Indication") +endforeach(CIM_CLASS ${CIM_CLASSES}) + +set(TARGET_MOF "${CMAKE_BINARY_DIR}/mof/90_LMI_Account_Profile.mof") +profile_mof_generate("90_LMI_Account_Profile.mof.skel" "${TARGET_MOF}" "${CIM_PROVIDERS_CLASSES}") + # Require GLib-2.0 and libuser pkg_check_modules(GLIB REQUIRED glib-2.0) pkg_check_modules(LIBUSER REQUIRED libuser) @@ -43,3 +53,4 @@ cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF} share/openlmi-providers install(TARGETS ${LIBRARY_NAME} DESTINATION lib${LIB_SUFFIX}/cmpi/) install(PROGRAMS ${ACCOUNT_SCRIPT} DESTINATION libexec/pegasus) +install(FILES ${TARGET_MOF} DESTINATION share/openlmi/providers/) |