diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-03-27 17:28:16 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-03-27 17:28:16 +0800 |
commit | 0cf9e02918661ea02cdacecfbb64ab14b2cff74c (patch) | |
tree | e057be883875e503aa16d23618979c926139182b | |
parent | 7d48098c805301f16727dacf855f391a13e7f140 (diff) | |
download | meta-selinux-0cf9e02918661ea02cdacecfbb64ab14b2cff74c.tar.gz |
policycoreutils: Fix depands for the target&native.
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.10.bb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb index b448747..297e15b 100644 --- a/recipes-security/selinux/policycoreutils_2.1.10.bb +++ b/recipes-security/selinux/policycoreutils_2.1.10.bb | |||
@@ -14,15 +14,16 @@ include selinux_20120216.inc | |||
14 | SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257" | 14 | SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257" |
15 | SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" | 15 | SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" |
16 | 16 | ||
17 | DEPENDS += "libsepol libselinux libsemanage libcap-ng libcgroup" | 17 | DEPENDS += "libsepol libselinux libsemanage" |
18 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | 18 | DEPENDS_${BPN} += "libcap-ng libcgroup" |
19 | DEPENDS_${BPN} += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | ||
19 | 20 | ||
20 | RDEPENDS_${PN} += "\ | 21 | RDEPENDS_${BPN} += "\ |
21 | libselinux-python \ | 22 | libselinux-python \ |
22 | libsemanage-python \ | 23 | libsemanage-python \ |
23 | sepolgen \ | 24 | sepolgen \ |
24 | " | 25 | " |
25 | RDEPENDS_${PN} += "\ | 26 | RDEPENDS_${BPN} += "\ |
26 | python \ | 27 | python \ |
27 | python-unixadmin \ | 28 | python-unixadmin \ |
28 | python-shell \ | 29 | python-shell \ |
@@ -32,9 +33,7 @@ RDEPENDS_${PN} += "\ | |||
32 | python-textutils \ | 33 | python-textutils \ |
33 | python-IPy \ | 34 | python-IPy \ |
34 | " | 35 | " |
35 | #RDEPENDS_${PN} += "setools" | 36 | RDEPENDS_${BPN} += "setools" |
36 | |||
37 | RDEPENDS_${PN}_virtclass-native = "python-native sepolgen-native" | ||
38 | 37 | ||
39 | 38 | ||
40 | PACKAGES =+ "${PN}-python ${PN}-sandbox" | 39 | PACKAGES =+ "${PN}-python ${PN}-sandbox" |
@@ -44,7 +43,9 @@ FILES_${PN}-sandbox += "${bindir}/sandbox" | |||
44 | FILES_${PN}-sandbox += "${sbindir}/seunshare" | 43 | FILES_${PN}-sandbox += "${sbindir}/seunshare" |
45 | 44 | ||
46 | CFLAGS_append = " -Wno-error=format-security" | 45 | CFLAGS_append = " -Wno-error=format-security" |
47 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=y AUDITH=y', '', d)}" | 46 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" |
47 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | ||
48 | EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" | ||
48 | EXTRA_OEMAKE += "PREFIX=${D}" | 49 | EXTRA_OEMAKE += "PREFIX=${D}" |
49 | 50 | ||
50 | BBCLASSEXTEND = "native" | 51 | BBCLASSEXTEND = "native" |