The configuration file should be located in /usr/lib/tmpfiles.d/
regardless of architecture type.
Change-Id: If0b3e96c9ac6e2a5aef8cb1411f89fe97dcf2728
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass.conf
${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-cpu0.conf)
INSTALL(FILES ${CONF_FILES} DESTINATION ${CONF_DIR})
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-hal.conf DESTINATION ${LIB_INSTALL_DIR}/tmpfiles.d)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-hal.conf DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/tmpfiles.d)
%make_install
%post
/sbin/ldconfig
-systemd-tmpfiles %{_libdir}/tmpfiles.d/pass-hal.conf --create
+systemd-tmpfiles %{_prefix}/lib/tmpfiles.d/pass-hal.conf --create
if [ -f %{_unitdir}/pass.service ]; then
systemctl try-restart pass.service
fi
%files
%manifest %{name}.manifest
%{_libdir}/pass/*.so
-%{_libdir}/tmpfiles.d/pass-hal.conf
+%{_prefix}/lib/tmpfiles.d/pass-hal.conf
%config %{_sysconfdir}/pass/pass.conf
%config %{_sysconfdir}/pass/pass-cpu0.conf