|
@@ -31,10 +31,26 @@ ifeq ($(BR2_aarch64),y)
|
|
|
AUDIT_CONF_OPTS += --with-aarch64
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
+AUDIT_CONF_OPTS += --enable-systemd
|
|
|
+else
|
|
|
+AUDIT_CONF_OPTS += --disable-systemd
|
|
|
+endif
|
|
|
+
|
|
|
define AUDIT_INSTALL_INIT_SYSV
|
|
|
$(INSTALL) -D -m 755 package/audit/S01auditd $(TARGET_DIR)/etc/init.d/S01auditd
|
|
|
endef
|
|
|
|
|
|
+define AUDIT_INSTALL_INIT_SYSTEMD
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -fs ../../../../usr/lib/systemd/system/auditd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/auditd.service
|
|
|
+
|
|
|
+ mkdir -p $(TARGET_DIR)/usr/lib/tmpfiles.d
|
|
|
+ $(INSTALL) -D -m 644 package/audit/audit_tmpfiles.conf \
|
|
|
+ $(TARGET_DIR)/usr/lib/tmpfiles.d/audit.conf
|
|
|
+endef
|
|
|
+
|
|
|
define AUDIT_INSTALL_CLEANUP
|
|
|
$(RM) -rf $(TARGET_DIR)/etc/rc.d
|
|
|
$(RM) -rf $(TARGET_DIR)/etc/sysconfig
|