diff mbox

[2/8,v2] audit: Add the ability to compile as a host package.

Message ID 1466823253-14385-1-git-send-email-Aduskett@gmail.com
State Superseded, archived
Headers show

Commit Message

Adam Duskett June 25, 2016, 2:54 a.m. UTC
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(+)
diff mbox

Patch

diff --git a/package/audit/audit.mk b/package/audit/audit.mk
index 9589c06..e5c55ff 100644
--- a/package/audit/audit.mk
+++ b/package/audit/audit.mk
@@ -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))