- in yocto by default systemd is install into "/lib/systemd" not
"/usr/lib/systemd".
Change-Id: Ia20662b7c4fd899f51f0311cd4d262ee3a00317a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/mmc-smack-label DESTINATION bin)
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/shutdown.sh DESTINATION ${LIB_INSTALL_DIR}/system-server)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.service DESTINATION lib/systemd/system)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.socket DESTINATION lib/systemd/system)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.service DESTINATION ${SYSTEMD_DIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/systemd/system-server.socket DESTINATION ${SYSTEMD_DIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/fsck-msdos/LICENSE DESTINATION share/license RENAME fsck_msdosfs)
ADD_SUBDIRECTORY(restarter)
cp %{SOURCE6} .
%build
-%cmake . -DTZ_SYS_ETC=%TZ_SYS_ETC
+%cmake . \
+ -DTZ_SYS_ETC=%TZ_SYS_ETC \
+ -DSYSTEMD_DIR=%{_unitdir}
%install
%make_install