summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-09-24 14:34:51 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-09-24 15:59:03 +0800
commit91707923a298ec7c0507fbca1aa8ce03db50d93f (patch)
treeef551effd616dad816793fd81e76fa4066d83a57
parenta9c8b9780a5dab3fede4eaf4ea89e90a077ecc4f (diff)
downloadmeta-selinux-91707923a298ec7c0507fbca1aa8ce03db50d93f.tar.gz
policycoreutils: fix build with pam DISTRO_FEATURE
If no pam DISTRO_FEATURE, policycoreutils should not build with libpam headers and libraries. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/selinux/policycoreutils_2.1.10.bb4
-rw-r--r--recipes-security/selinux/policycoreutils_git.bb4
2 files changed, 4 insertions, 4 deletions
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb
index 848f010..10bc771 100644
--- a/recipes-security/selinux/policycoreutils_2.1.10.bb
+++ b/recipes-security/selinux/policycoreutils_2.1.10.bb
@@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \ 5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context." 6context."
7SECTION = "base" 7SECTION = "base"
8PR = "r1" 8PR = "r2"
9LICENSE = "GPLv2+" 9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11 11
@@ -47,7 +47,7 @@ FILES_${PN}-sandbox += "${sbindir}/seunshare"
47 47
48AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" 48AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
49PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" 49PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
50EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" 50EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n"
51EXTRA_OEMAKE += "PREFIX=${D}" 51EXTRA_OEMAKE += "PREFIX=${D}"
52 52
53BBCLASSEXTEND = "native" 53BBCLASSEXTEND = "native"
diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb
index d9c4608..d02c0d9 100644
--- a/recipes-security/selinux/policycoreutils_git.bb
+++ b/recipes-security/selinux/policycoreutils_git.bb
@@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \
5to switch roles, and run_init to run /etc/init.d scripts in the proper \ 5to switch roles, and run_init to run /etc/init.d scripts in the proper \
6context." 6context."
7SECTION = "base" 7SECTION = "base"
8PR = "r1" 8PR = "r2"
9LICENSE = "GPLv2+" 9LICENSE = "GPLv2+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" 10LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
11DEFAULT_PREFERENCE = "-1" 11DEFAULT_PREFERENCE = "-1"
@@ -48,7 +48,7 @@ FILES_${PN}-sandbox += "${sbindir}/seunshare"
48 48
49AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" 49AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `"
50PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" 50PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `"
51EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" 51EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n"
52EXTRA_OEMAKE += "PREFIX=${D}" 52EXTRA_OEMAKE += "PREFIX=${D}"
53 53
54BBCLASSEXTEND = "native" 54BBCLASSEXTEND = "native"