From: Yann E. MORIN Date: Sun, 29 Mar 2020 10:39:28 +0000 (+0200) Subject: package/apparmor: enable apache integration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adc2376bbb28c5a100e6adc51dee113fc38e015b;p=buildroot.git package/apparmor: enable apache integration Signed-off-by: Angelo Compagnucci [yann.morin.1998@free.fr: split off to its own patch] Signed-off-by: Yann E. MORIN Tested-by: Angelo Compagnucci --- diff --git a/package/apparmor/apparmor.mk b/package/apparmor/apparmor.mk index db24a62c52..311a79799f 100644 --- a/package/apparmor/apparmor.mk +++ b/package/apparmor/apparmor.mk @@ -44,6 +44,12 @@ APPARMOR_DEPENDENCIES += linux-pam APPARMOR_TOOLS += changehat/pam_apparmor endif +ifeq ($(BR2_PACKAGE_APACHE),y) +APPARMOR_DEPENDENCIES += apache +APPARMOR_TOOLS += changehat/mod_apparmor +APPARMOR_MAKE_OPTS += APXS=$(STAGING_DIR)/usr/bin/apxs +endif + define APPARMOR_BUILD_CMDS $(foreach tool,$(APPARMOR_TOOLS),\ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \