Change plugin path to %{_libdir}/dpm/plugins 20/185120/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_unified 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 accepted/tizen/5.0/unified/20190418.020803 accepted/tizen/5.5/unified/20191031.022129 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090029 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112712 accepted/tizen/6.0/unified/20201030.115103 accepted/tizen/6.0/unified/hotfix/20201103.003141 accepted/tizen/6.5/unified/20211028.115348 accepted/tizen/7.0/unified/20221110.061054 accepted/tizen/7.0/unified/hotfix/20221116.105559 accepted/tizen/8.0/unified/20231005.093630 accepted/tizen/unified/20190412.124651 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
authorJaemin Ryu <jm77.ryu@samsung.com>
Thu, 26 Jul 2018 06:27:33 +0000 (15:27 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Mon, 17 Dec 2018 09:45:50 +0000 (18:45 +0900)
Change-Id: I0e2762864ed602bf5d671cc2a7ee19c46445237f
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
CMakeLists.txt
packaging/dpm-usb.spec
plugin/CMakeLists.txt

index acda325..56ecdf0 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 f979a20..bad671b 100755 (executable)
@@ -19,7 +19,7 @@ The dpm-usb package provides USB policy module for device policy manager
 %files
 %manifest dpm-usb.manifest
 %defattr(644,root,root,755)
-%attr(755,root,root) /opt/data/dpm/plugins/usb
+%attr(755,root,root) %{_libdir}/dpm/plugins/usb
 %attr(755,root,root) %{_libdir}/libdpm-usb.so.%{version}
 %{_libdir}/libdpm-usb.so.0
 
@@ -36,6 +36,7 @@ The dpm-usb package provides USB 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 728f98c..001d7c4 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-usb.so RENAME usb DESTINATION /opt/data/dpm/plugins)
+INSTALL(FILES libdpm-plugin-usb.so RENAME usb DESTINATION ${PLUGIN_INSTALL_DIR})