summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo_1.8.29.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-12-12 19:14:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:25:49 +0000
commit4e4352b5a4bce4a26fda8dcdcbf3fc122828e9e4 (patch)
treeba73b3a9345697b20d5d7e9c625f0ea55d35a887 /meta/recipes-extended/sudo/sudo_1.8.29.bb
parentaa4848622c5f832bbad10a126bfe7e7de7b6b703 (diff)
downloadpoky-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.bb40
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 @@
1require sudo.inc
2
3SRC_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
8PAM_SRC_URI = "file://sudo.pam"
9
10SRC_URI[md5sum] = "b28dabff9c460f115fe74de4d6a6f79d"
11SRC_URI[sha256sum] = "ce53ffac9604e23321334d8ba8ac59ded2bcf624fdb9dbde097ab2049bf29c7c"
12
13DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
14RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}"
15
16EXTRA_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
22do_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
38FILES_${PN} += "${nonarch_libdir}/tmpfiles.d"
39FILES_${PN}-dev += "${libexecdir}/${BPN}/lib*${SOLIBSDEV} ${libexecdir}/${BPN}/*.la \
40 ${libexecdir}/lib*${SOLIBSDEV} ${libexecdir}/*.la"