mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
audit: fix build when systemd is enabled.
Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -93,7 +93,13 @@ do_install:append() {
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
||||
install -D -m 0755 ${UNPACKDIR}/auditd ${D}/etc/init.d/auditd
|
||||
fi
|
||||
|
||||
if ! ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
rm -rf ${D}${libdir}/systemd
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${B}/init.d/auditd.service ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 ${B}/init.d/audit-rules.service ${D}${systemd_unitdir}/system/
|
||||
fi
|
||||
|
||||
# Create /var/spool/audit directory for audisp-remote
|
||||
|
||||
Reference in New Issue
Block a user