diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-06-18 11:12:24 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-25 13:51:48 +0100 |
commit | a3cbd2d06777a7a3c89066dfde94f793094d330c (patch) | |
tree | 761fa28c8f7dbec5d8ce7d108baaf927330a746f /meta/recipes-extended/sudo/sudo_1.8.10p3.bb | |
parent | 8eea757b6644d9b70425b6ff4ccab8b8c2bf176d (diff) | |
download | poky-a3cbd2d06777a7a3c89066dfde94f793094d330c.tar.gz |
sudo: upgrade from 1.8.10p2 to 1.8.10p3
Upgrade sudo from 1.8.10p2 to 1.8.10p3.
[YOCTO #6457]
(From OE-Core rev: acd711f7faa98990f32b11f6235e739723ec2743)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.10p3.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.10p3.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.10p3.bb b/meta/recipes-extended/sudo/sudo_1.8.10p3.bb new file mode 100644 index 0000000000..46d47817e5 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.8.10p3.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | require sudo.inc | ||
2 | |||
3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | ||
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ | ||
5 | file://volatiles.99_sudo" | ||
6 | |||
7 | PAM_SRC_URI = "file://sudo.pam" | ||
8 | |||
9 | SRC_URI[md5sum] = "fcd8d0d9f9f0397d076ee901e242ed39" | ||
10 | SRC_URI[sha256sum] = "6eda135fa68163108f1c24de6975de5ddb09d75730bb62d6390bda7b04345400" | ||
11 | |||
12 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
13 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | ||
14 | |||
15 | EXTRA_OECONF += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" | ||
16 | |||
17 | do_install_append () { | ||
18 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | ||
19 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | ||
20 | fi | ||
21 | |||
22 | chmod 4111 ${D}${bindir}/sudo | ||
23 | chmod 0440 ${D}${sysconfdir}/sudoers | ||
24 | |||
25 | # Explicitly remove the ${localstatedir}/run directory as we can | ||
26 | # manage it by a configuration file under ${sysconfdir}/default/volatiles/ | ||
27 | rmdir -p --ignore-fail-on-non-empty ${D}${localstatedir}/run/sudo | ||
28 | install -d ${D}/${sysconfdir}/default/volatiles | ||
29 | install -m 644 ${WORKDIR}/volatiles.99_sudo ${D}/${sysconfdir}/default/volatiles/99_sudo | ||
30 | } | ||