From: Niranjan Reddy Date: Wed, 16 Mar 2016 11:45:35 +0000 (+0530) Subject: linux-pam: add optional libselinux and audit dependencies X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ee7c0ded2286f0decd96fe0c572b90e913a130e;p=buildroot.git linux-pam: add optional libselinux and audit dependencies This patch adds optional libselinux and audit packages to linux-pam package. Signed-off-by: Niranjan Reddy Signed-off-by: Thomas Petazzoni --- diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk index 71c5490c7c..2b94412ff6 100644 --- a/package/linux-pam/linux-pam.mk +++ b/package/linux-pam/linux-pam.mk @@ -26,6 +26,20 @@ LINUX_PAM_DEPENDENCIES += gettext LINUX_PAM_MAKE_OPTS += LIBS=-lintl endif +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +LINUX_PAM_CONF_OPTS += --enable-selinux +LINUX_PAM_DEPENDENCIES += libselinux +else +LINUX_PAM_CONF_OPTS += --disable-selinux +endif + +ifeq ($(BR2_PACKAGE_AUDIT),y) +LINUX_PAM_CONF_OPTS += --enable-audit +LINUX_PAM_DEPENDENCIES += audit +else +LINUX_PAM_CONF_OPTS += --disable-audit +endif + # Install default pam config (deny everything except login) define LINUX_PAM_INSTALL_CONFIG $(INSTALL) -m 0644 -D package/linux-pam/login.pam \