Skip to contentSkip to conversation

audit: Add the ability to compile as a host package.

PATCH New Adam Duskett 1 participant 1 message Jun 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/8 audit: Add the ability to compile as a host 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

---
 package/audit/audit.mk | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
package/audit/audit.mk +21 -0
index 9589c06..e5c55ff 100644
@@ -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))
Signature · 1 line
2.7.4