From 2812f9741067d69e7265280256df4e91a78f6fbf Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Wed, 2 May 2018 10:07:58 +0900 Subject: [PATCH] Add conf file for dbus policy Change-Id: I06b84f1d54fe9b6e500c47309456525f4160a850 Signed-off-by: Inkyun Kil --- CMakeLists.txt | 2 ++ message-port.conf.in | 8 ++++++++ packaging/message-port.spec | 1 + 3 files changed, 11 insertions(+) create mode 100755 message-port.conf.in diff --git a/CMakeLists.txt b/CMakeLists.txt index dbe5ee0..65b3c11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,6 +56,8 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${th INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/capi-${this_target}.pc.in ${CMAKE_SOURCE_DIR}/capi-${this_target}.pc @ONLY) INSTALL(FILES ${CMAKE_SOURCE_DIR}/capi-${this_target}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig) +CONFIGURE_FILE(${PROJECT_NAME}.conf.in ${PROJECT_NAME}.conf @ONLY) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/session.d/) INSTALL(TARGETS ${this_target} DESTINATION ${LIB_INSTALL_DIR}) diff --git a/message-port.conf.in b/message-port.conf.in new file mode 100755 index 0000000..388fc16 --- /dev/null +++ b/message-port.conf.in @@ -0,0 +1,8 @@ + + + + + + + diff --git a/packaging/message-port.spec b/packaging/message-port.spec index 4f5b0fb..d843e58 100755 --- a/packaging/message-port.spec +++ b/packaging/message-port.spec @@ -57,6 +57,7 @@ rm -rf %{buildroot} %manifest %{name}.manifest %attr(0644,root,root) %{_libdir}/lib%{name}.so.* %attr(0644,root,root) %{_libdir}/libcapi-message-port.so.* +%config %{_sysconfdir}/dbus-1/session.d/message-port.conf %license LICENSE.APLv2 %files devel -- 2.34.1