@@ -56,4 +56,25 @@ define AUDIT_INSTALL_CLEANUP
endef
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
+HOST_AUDIT_CONF_OPTS = --without-python --without-python3 --disable-zos-remote
+ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
+HOST_AUDIT_DEPENDENCIES += host-libcap-ng
+HOST_AUDIT_CONF_OPTS += --with-libcap-ng=yes
+else
+HOST_AUDIT_CONF_OPTS += --with-libcap-ng=no
+endif
+
+ifeq ($(BR2_INIT_SYSTEMD),y)
+HOST_AUDIT_CONF_OPTS += --enable-systemd
+else
+HOST_AUDIT_CONF_OPTS += --disable-systemd
+endif
+
+define AUDIT_INSTALL_CLEANUP
+ $(RM) -rf $(HOST_DIR)/etc/rc.d
+ $(RM) -rf $(HOST_DIR)/etc/sysconfig
+endef
+
+
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
Along with the aforementioned version bump to 2.5.2, this will allow the audit package to compile as a host package. This is needed for the upcomming policycoreutils package. Changes v1 -> v2: - Changed libcap-ng to host-libcap-ng Signed-off-by: Adam Duskett <Aduskett@gmail.com> --- package/audit/audit.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)