2 sed -i 's!/usr/bin/mkdir -p!/bin/mkdir -p!g' ${S}/packaging/ac.service
3 # preload_list.txt and preexec_list.txt are generated from .in files so they are located in the build directory instead of the source one
4 sed -i 's@INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list.txt DESTINATION /usr/share/aul )@INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy/preload_list.txt DESTINATION /usr/share/aul )@' ${S}/CMakeLists.txt
5 sed -i 's@INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt DESTINATION /usr/share/aul )@INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/feature/preexec_list.txt DESTINATION /usr/share/aul )@' ${S}/CMakeLists.txt
8 SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
9 aul_files += "${prefix}/share/aul/mida_db.sql"
12 RDEPENDS_${PN}_remove_class-native = "systemd-native"
13 RDEPENDS_${PN}_remove_class-native = "glibc-native"
15 DEPENDS_remove_class-native = "dlog-native"
17 EXTRA_OECMAKE+="-DCMAKE_AR:PATH=ar"
21 mkdir -p ${D}${prefix}/lib/systemd/user/default.target.wants
22 ln -s ../amd_session_agent.service ${D}${prefix}/lib/systemd/user/default.target.wants/amd_session_agent.service
24 mkdir -p ${D}${systemd_unitdir}/system/default.target.wants
25 ln -s ../ac.service ${D}${systemd_unitdir}/system/default.target.wants/ac.service
29 FILES_${PN} += "${prefix}/lib/systemd/user/default.target.wants/amd_session_agent.service"
30 FILES_${PN} += "${systemd_unitdir}/system/default.target.wants/ac.service"