diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-10-24 18:34:46 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-27 08:29:20 +0100 |
commit | 6d300745bb70dfab367b1d472d49b719b91ab9a1 (patch) | |
tree | 9887e62650ee3b94b1a4f188cc6b0f9c8d6197da /meta/recipes-extended/sudo/sudo_1.8.3.bb | |
parent | 57def2a05f4cff77f014c6dfb93c2dcc1b9db61b (diff) | |
download | openembedded-core-6d300745bb70dfab367b1d472d49b719b91ab9a1.tar.gz openembedded-core-6d300745bb70dfab367b1d472d49b719b91ab9a1.tar.bz2 openembedded-core-6d300745bb70dfab367b1d472d49b719b91ab9a1.zip |
sudo: upgrade to 1.8.3
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.3.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.3.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.3.bb b/meta/recipes-extended/sudo/sudo_1.8.3.bb new file mode 100644 index 0000000000..0ac0851153 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.8.3.bb @@ -0,0 +1,26 @@ +require sudo.inc + +PR = "r0" + +SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ + file://libtool.patch \ + ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" + +PAM_SRC_URI = "file://sudo.pam" + +SRC_URI[md5sum] = "9e5517bbf3aee420b38c2d1d7a71bcad" +SRC_URI[sha256sum] = "ff1fcc410c5465063ee4912912e29936ea39f017d9a8a57ec76b0ded71b7c3c4" + +DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" +RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" + +EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" + +do_install_append () { + for feature in ${DISTRO_FEATURES}; do + if [ "$feature" = "pam" ]; then + install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo + break + fi + done +} |