Change plugin path to %{_libdir}/dpm/plugins 08/185108/4 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/5.0/unified/20190418.020755 accepted/tizen/5.5/unified/20191031.022551 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090400 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113042 accepted/tizen/6.0/unified/20201030.115004 accepted/tizen/6.0/unified/hotfix/20201103.003607 accepted/tizen/6.5/unified/20211028.121435 accepted/tizen/7.0/unified/20221110.061405 accepted/tizen/7.0/unified/hotfix/20221116.105546 accepted/tizen/8.0/unified/20231005.093615 accepted/tizen/9.0/unified/20241030.233326 accepted/tizen/unified/20190412.124642 accepted/tizen/unified/x/20241218.081908 accepted/tizen/unified/x/asan/20241224.003700 submit/tizen/20190411.064623 submit/tizen_5.0/20190411.065139 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 submit/tizen_6.5/20211028.162401 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorJaemin Ryu <jm77.ryu@samsung.com>
Thu, 26 Jul 2018 06:14:10 +0000 (15:14 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Tue, 18 Dec 2018 00:13:17 +0000 (09:13 +0900)
Change-Id: I2af0b96879d1f5f601f8246e3c580c0c6ec41cf2
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
CMakeLists.txt
packaging/dpm-browser.spec
plugin/CMakeLists.txt

index 719ae2867814b4b54c1abc494b7c224e2eaee928..0d16367cfbbf4e8e8e03c784ab4d443ae3ee230a 100755 (executable)
@@ -79,6 +79,10 @@ IF(NOT DEFINED SYSTEMD_UNIT_INSTALL_DIR)
        SET(SYSTEMD_UNIT_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system")
 ENDIF(NOT DEFINED SYSTEMD_UNIT_INSTALL_DIR)
 
+IF(NOT DEFINED PLUGIN_INSTALL_DIR)
+       SET(PLUGIN_INSTALL_DIR "${LIB_INSTALL_DIR}/dpm/plugins")
+ENDIF(NOT DEFINED PLUGIN_INSTALL_DIR)
+
 ADD_DEFINITIONS(-DUG_WAYLAND)
 
 ADD_SUBDIRECTORY(${DPM_PLUGIN})
index 30c6df3bb9d9aed13dcd8a20a742428d01f19979..73898f757f1668131d883d9e3cb5c9da54839abc 100755 (executable)
@@ -19,7 +19,7 @@ The dpm-browser package provides browser policy module for device policy manager
 %files
 %manifest dpm-browser.manifest
 %defattr(644,root,root,755)
-%attr(755,root,root) /opt/data/dpm/plugins/browser
+%attr(755,root,root) %{_libdir}/dpm/plugins/browser
 %attr(755,root,root) %{_libdir}/libdpm-browser.so.%{version}
 %{_libdir}/libdpm-browser.so.0
 
@@ -36,6 +36,7 @@ The dpm-browser package provides browser policy module for device policy manager
 
 %cmake . -DVERSION=%{version} \
          -DCMAKE_BUILD_TYPE=%{build_type} \
+         -DPLUGIN_INSTALL_DIR=%{_libdir}/dpm/plugins \
          -DSCRIPT_INSTALL_DIR=%{_scriptdir} \
          -DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \
          -DDATA_INSTALL_DIR=%{TZ_SYS_DATA}/dpm \
index 32a940a3278e65e019deb59bd05a14f9ba84e043..3f9eda7edd1b2241f33ec9ccc3d5ac377193af05 100755 (executable)
@@ -30,4 +30,4 @@ SET_TARGET_PROPERTIES(${TARGET} PROPERTIES COMPILE_FLAGS "-fvisibility=default")
 INCLUDE_DIRECTORIES(SYSTEM ${PLUGIN_DEPS_INCLUDE_DIRS})
 TARGET_LINK_LIBRARIES(${TARGET} ${PLUGIN_DEPS_LIBRARIES})
 
-INSTALL(FILES libdpm-plugin-browser.so RENAME browser DESTINATION /opt/data/dpm/plugins)
+INSTALL(FILES libdpm-plugin-browser.so RENAME browser DESTINATION ${PLUGIN_INSTALL_DIR})