summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap/libcap.inc
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-08-30 17:27:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-31 19:58:51 +0100
commit9864b0a8253922e044f61506a4a8e9064aac2bd7 (patch)
treeb9c918be780d26fb6229bad11d0dc3ab6982c475 /meta/recipes-support/libcap/libcap.inc
parent48ec20d1331eb665d9fc1a06bdb1ea79e4513159 (diff)
downloadopenembedded-core-9864b0a8253922e044f61506a4a8e9064aac2bd7.tar.gz
libcap: only enable pam if DISTRO_FEATURES requests it
Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap/libcap.inc')
-rw-r--r--meta/recipes-support/libcap/libcap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc
index 67f7579e1d..350653071e 100644
--- a/meta/recipes-support/libcap/libcap.inc
+++ b/meta/recipes-support/libcap/libcap.inc
@@ -5,7 +5,8 @@ HOMEPAGE = "http://sites.google.com/site/fullycapable/"
LICENSE = "BSD | GPLv2"
LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1"
-DEPENDS = "libpam attr perl-native-runtime"
+DEPENDS = "attr perl-native-runtime"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
# attr and pam are disabled by EXTRA_OEMAKE_virtclass-native
DEPENDS_virtclass-native = "perl-native-runtime"
@@ -20,7 +21,7 @@ do_configure() {
sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules
}
-EXTRA_OEMAKE = "LIBATTR=yes PAM_CAP=yes INDENT= SYSTEM_HEADERS=${STAGING_INCDIR} RAISE_SETFCAP=no"
+EXTRA_OEMAKE = "LIBATTR=yes PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} INDENT= SYSTEM_HEADERS=${STAGING_INCDIR} RAISE_SETFCAP=no"
EXTRA_OEMAKE_virtclass-native = "LIBATTR=no PAM_CAP=no INDENT= "
EXTRA_OEMAKE += " lib=${@os.path.basename('${libdir}')}"