From adc2376bbb28c5a100e6adc51dee113fc38e015b Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 29 Mar 2020 12:39:28 +0200 Subject: [PATCH] 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 --- package/apparmor/apparmor.mk | 6 ++++++ 1 file changed, 6 insertions(+) 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) \ -- 2.30.2