Change path of smack config 86/19786/1
authorChristophe Moreau <christophe.moreau@open.eurogiciel.org>
Thu, 17 Apr 2014 14:26:49 +0000 (16:26 +0200)
committerChristophe Moreau <christophe.moreau@open.eurogiciel.org>
Thu, 17 Apr 2014 15:11:23 +0000 (17:11 +0200)
Bug-Tizen: PTREL-377

Change-Id: I69827088e9fedf600a01e89019dd4b9d964a9ce1
Signed-off-by: Christophe Moreau <christophe.moreau@open.eurogiciel.org>
CMakeLists.txt
packaging/wrt-plugins-common.spec

index 2f0b87f..c4ef357 100644 (file)
@@ -117,7 +117,7 @@ endif ()
 # Schema of plugin's configuration file
 
 set(COMMON_CONFIG_DTD ${CMAKE_CURRENT_SOURCE_DIR}/config.dtd)
-set(COMMON_CONFIG_DTD_DST /usr/etc/wrt-plugins)
+set(COMMON_CONFIG_DTD_DST ${TZ_SYS_WRT_PLUGINS_CONF})
 INSTALL(FILES ${COMMON_CONFIG_DTD} DESTINATION ${COMMON_CONFIG_DTD_DST})
 
 ################################################################################
@@ -185,8 +185,8 @@ set(CMAKE_CONFIG_FILE_NAME "${CMAKE_CONFIG_FILE_NAME}" CACHE
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-ace-runtime.rule DESTINATION /etc/smack/accesses2.d)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-wrt-runtime.rule DESTINATION /etc/smack/accesses2.d)
 # temp for smack branch
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-ace-runtime.rule DESTINATION /opt/etc/smack/accesses.d)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-wrt-runtime.rule DESTINATION /opt/etc/smack/accesses.d)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-ace-runtime.rule DESTINATION ${TZ_SYS_ETC}/smack/accesses.d)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/accesses.d/wrt-popup-wrt-runtime.rule DESTINATION ${TZ_SYS_ETC}/smack/accesses.d)
 
 ################################################################################
 # Summary
index d2ecaf8..d79a723 100644 (file)
@@ -61,6 +61,8 @@ export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
 %cmake . -DDPL_LOG="ON"                     \
         -DCMAKE_PROJECT_VERSION=%{version} \
         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
+        -DTZ_SYS_ETC=%TZ_SYS_ETC \
+        -DTZ_SYS_WRT_PLUGINS_CONF=%TZ_SYS_WRT_PLUGINS_CONF \
 %if %{with x}
          -DX11_SUPPORT=On \
 %else