diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-12-12 19:14:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-16 23:25:49 +0000 |
commit | 4e4352b5a4bce4a26fda8dcdcbf3fc122828e9e4 (patch) | |
tree | ba73b3a9345697b20d5d7e9c625f0ea55d35a887 /meta/recipes-extended/sudo/sudo_1.8.29.bb | |
parent | aa4848622c5f832bbad10a126bfe7e7de7b6b703 (diff) | |
download | poky-4e4352b5a4bce4a26fda8dcdcbf3fc122828e9e4.tar.gz |
sudo: update to 1.8.29
License-Update: added SPDX info.
(From OE-Core rev: d3660148a64fc6ef18c7f9d2080c26d89c0b3826)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.29.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.29.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.29.bb b/meta/recipes-extended/sudo/sudo_1.8.29.bb new file mode 100644 index 0000000000..8da2d64631 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.8.29.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | require sudo.inc | ||
2 | |||
3 | SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ | ||
4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ | ||
5 | file://0001-Include-sys-types.h-for-id_t-definition.patch \ | ||
6 | " | ||
7 | |||
8 | PAM_SRC_URI = "file://sudo.pam" | ||
9 | |||
10 | SRC_URI[md5sum] = "b28dabff9c460f115fe74de4d6a6f79d" | ||
11 | SRC_URI[sha256sum] = "ce53ffac9604e23321334d8ba8ac59ded2bcf624fdb9dbde097ab2049bf29c7c" | ||
12 | |||
13 | DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
14 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | ||
15 | |||
16 | EXTRA_OECONF += " \ | ||
17 | ac_cv_type_rsize_t=no \ | ||
18 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ | ||
19 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \ | ||
20 | " | ||
21 | |||
22 | do_install_append () { | ||
23 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then | ||
24 | install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | ||
25 | if ${@bb.utils.contains('PACKAGECONFIG', 'pam-wheel', 'true', 'false', d)} ; then | ||
26 | echo 'auth required pam_wheel.so use_uid' >>${D}${sysconfdir}/pam.d/sudo | ||
27 | sed -i 's/# \(%wheel ALL=(ALL) ALL\)/\1/' ${D}${sysconfdir}/sudoers | ||
28 | fi | ||
29 | fi | ||
30 | |||
31 | chmod 4111 ${D}${bindir}/sudo | ||
32 | chmod 0440 ${D}${sysconfdir}/sudoers | ||
33 | |||
34 | # Explicitly remove the /run directory to avoid QA error | ||
35 | rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo | ||
36 | } | ||
37 | |||
38 | FILES_${PN} += "${nonarch_libdir}/tmpfiles.d" | ||
39 | FILES_${PN}-dev += "${libexecdir}/${BPN}/lib*${SOLIBSDEV} ${libexecdir}/${BPN}/*.la \ | ||
40 | ${libexecdir}/lib*${SOLIBSDEV} ${libexecdir}/*.la" | ||