summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-09-21 20:47:04 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-22 05:06:59 +0100
commit7042e14c7027a8e084c94e218c57aed7e071334b (patch)
tree5cd44f8cbcf5838fe9081647a6762162ccf1483f /meta/recipes-extended/sudo
parent0f6ef5cc921fd2aff5113207cc3b49cd22507b11 (diff)
downloadpoky-7042e14c7027a8e084c94e218c57aed7e071334b.tar.gz
sudo: Fix PAM dependencies
When PAM is enabled for the distribution we need to be sure to have a build dependency of libpam, and runtime dependencies on the pam modules used by the sudo package. (From OE-Core rev: 79db5ccc7ee9b360451074dd42f7676e138cf384) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo')
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.1p2.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.1p2.bb b/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
index 9cf9ecc083..b56829181a 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.1p2.bb
@@ -1,6 +1,6 @@
1require sudo.inc 1require sudo.inc
2 2
3PR = "r1" 3PR = "r2"
4 4
5SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ 5SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
6 file://libtool.patch \ 6 file://libtool.patch \
@@ -11,6 +11,9 @@ PAM_SRC_URI = "file://sudo.pam"
11SRC_URI[md5sum] = "e8330f0e63b0ecb2e12b5c76922818cc" 11SRC_URI[md5sum] = "e8330f0e63b0ecb2e12b5c76922818cc"
12SRC_URI[sha256sum] = "281f90c80547cf22132e351e7f61c25ba4ba9cf393438468f318f9a7884026fb" 12SRC_URI[sha256sum] = "281f90c80547cf22132e351e7f61c25ba4ba9cf393438468f318f9a7884026fb"
13 13
14DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
15RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}"
16
14EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" 17EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}"
15 18
16do_install_append () { 19do_install_append () {