diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-01-04 18:34:21 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-01-05 14:00:29 +0800 |
commit | 44f43e02bd82c8a00c2f121bf7ca3062a46998c3 (patch) | |
tree | ea594f7bc7f0ec32f7e9dd1c03ba1d2f2997bb80 | |
parent | d95d951a0ef6fd46848269c3b76c77d85bf8f1a3 (diff) | |
download | meta-selinux-44f43e02bd82c8a00c2f121bf7ca3062a46998c3.tar.gz |
packages: inherit selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r-- | recipes-core/sysvinit/sysvinit_2.88dsf.bbappend | 8 | ||||
-rw-r--r-- | recipes-extended/logrotate/logrotate_3.8.1.bbappend | 8 | ||||
-rw-r--r-- | recipes-extended/lsof/lsof_4.86.bbappend | 8 | ||||
-rw-r--r-- | recipes-extended/net-tools/net-tools_1.60-23.bbappend | 8 | ||||
-rw-r--r-- | recipes-extended/sed/sed_4.2.1.bbappend | 6 |
5 files changed, 24 insertions, 14 deletions
diff --git a/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend index 95c2f76..636dc5e 100644 --- a/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend +++ b/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend | |||
@@ -4,9 +4,11 @@ B = "${S}" | |||
4 | 4 | ||
5 | SRC_URI += "file://sysvinit-fix-is_selinux_enabled.patch" | 5 | SRC_URI += "file://sysvinit-fix-is_selinux_enabled.patch" |
6 | 6 | ||
7 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 7 | inherit selinux |
8 | 8 | ||
9 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'selinux', 'WITH_SELINUX=\"yes\"', '', d)}" | 9 | DEPENDS += "${LIBSELINUX}" |
10 | 10 | ||
11 | PR .= ".1" | 11 | EXTRA_OEMAKE += "${@target_selinux(d, 'WITH_SELINUX=\"yes\"')}" |
12 | |||
13 | PR .= ".2" | ||
12 | 14 | ||
diff --git a/recipes-extended/logrotate/logrotate_3.8.1.bbappend b/recipes-extended/logrotate/logrotate_3.8.1.bbappend index 23d2ae4..208ea77 100644 --- a/recipes-extended/logrotate/logrotate_3.8.1.bbappend +++ b/recipes-extended/logrotate/logrotate_3.8.1.bbappend | |||
@@ -1,5 +1,7 @@ | |||
1 | PR .= ".1" | 1 | PR .= ".2" |
2 | 2 | ||
3 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 3 | inherit selinux |
4 | 4 | ||
5 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'selinux', 'WITH_SELINUX=\"yes\"', '', d)}" | 5 | DEPENDS += "${LIBSELINUX}" |
6 | |||
7 | EXTRA_OEMAKE += "${@target_selinux(d, 'WITH_SELINUX=\"yes\"')}" | ||
diff --git a/recipes-extended/lsof/lsof_4.86.bbappend b/recipes-extended/lsof/lsof_4.86.bbappend index 5b12125..793b13f 100644 --- a/recipes-extended/lsof/lsof_4.86.bbappend +++ b/recipes-extended/lsof/lsof_4.86.bbappend | |||
@@ -1,9 +1,11 @@ | |||
1 | PR .= ".1" | 1 | PR .= ".2" |
2 | 2 | ||
3 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 3 | inherit selinux |
4 | |||
5 | DEPENDS += "${LIBSELINUX}" | ||
4 | 6 | ||
5 | do_configure_prepend () { | 7 | do_configure_prepend () { |
6 | export LINUX_HASSELINUX="${@base_contains('DISTRO_FEATURES', 'selinux', 'Y', 'N', d)}" | 8 | export LINUX_HASSELINUX="${@target_selinux(d, 'Y', 'N')}" |
7 | export LSOF_CFGF="${CFLAGS}" | 9 | export LSOF_CFGF="${CFLAGS}" |
8 | export LSOF_CFGL="${LDFLAGS}" | 10 | export LSOF_CFGL="${LDFLAGS}" |
9 | export LSOF_CC="${BUILD_CC}" | 11 | export LSOF_CC="${BUILD_CC}" |
diff --git a/recipes-extended/net-tools/net-tools_1.60-23.bbappend b/recipes-extended/net-tools/net-tools_1.60-23.bbappend index 5d76214..e99a5bc 100644 --- a/recipes-extended/net-tools/net-tools_1.60-23.bbappend +++ b/recipes-extended/net-tools/net-tools_1.60-23.bbappend | |||
@@ -1,9 +1,11 @@ | |||
1 | PR .= ".1" | 1 | PR .= ".2" |
2 | 2 | ||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
4 | 4 | ||
5 | SRC_URI += "file://netstat-selinux-support.patch" | 5 | SRC_URI += "file://netstat-selinux-support.patch" |
6 | 6 | ||
7 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 7 | inherit selinux |
8 | 8 | ||
9 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'selinux', 'HAVE_SELINUX=1', 'HAVE_SELINUX=0', d)}" | 9 | DEPENDS += "${LIBSELINUX}" |
10 | |||
11 | EXTRA_OEMAKE += "${@target_selinux(d, 'HAVE_SELINUX=1', 'HAVE_SELINUX=0')}" | ||
diff --git a/recipes-extended/sed/sed_4.2.1.bbappend b/recipes-extended/sed/sed_4.2.1.bbappend index 52243c2..0607d44 100644 --- a/recipes-extended/sed/sed_4.2.1.bbappend +++ b/recipes-extended/sed/sed_4.2.1.bbappend | |||
@@ -1,7 +1,9 @@ | |||
1 | PR .= ".1" | 1 | PR .= ".2" |
2 | 2 | ||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" |
4 | 4 | ||
5 | SRC_URI += "file://sed-selinux-fix.patch" | 5 | SRC_URI += "file://sed-selinux-fix.patch" |
6 | 6 | ||
7 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 7 | inherit selinux |
8 | |||
9 | DEPENDS += "${LIBSELINUX}" | ||