summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo_1.8.31.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@cn.fujitsu.com>2020-02-10 09:38:00 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-14 13:07:23 +0000
commitb84cfa6d776ed32eebc816c5ccb503fa668d9ad2 (patch)
tree8074cf1001deea1cf95fe6b6ce282f44a014bd30 /meta/recipes-extended/sudo/sudo_1.8.31.bb
parent1e97c962f29815971cac8c22b111c95709c8ad2b (diff)
downloadpoky-b84cfa6d776ed32eebc816c5ccb503fa668d9ad2.tar.gz
sudo: upgrade 1.8.30 -> 1.8.31
-License-Update: Copyright year updated from 1998-2019 to 1998-2020. (From OE-Core rev: 19711adc45cf57fc007a7d1e052726fd45157f98) Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.8.31.bb')
-rw-r--r--meta/recipes-extended/sudo/sudo_1.8.31.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.8.31.bb b/meta/recipes-extended/sudo/sudo_1.8.31.bb
new file mode 100644
index 0000000000..39d8817c32
--- /dev/null
+++ b/meta/recipes-extended/sudo/sudo_1.8.31.bb
@@ -0,0 +1,48 @@
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] = "ce17ff6e72a70f8d5dabba8abf3cd2de"
11SRC_URI[sha256sum] = "7ea8d97a3cee4c844e0887ea7a1bd80eb54cc98fd77966776cb1a80653ad454f"
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
16CACHED_CONFIGUREVARS = " \
17 ac_cv_type_rsize_t=no \
18 ac_cv_path_MVPROG=${base_bindir}/mv \
19 ac_cv_path_BSHELLPROG=${base_bindir}/sh \
20 ac_cv_path_SENDMAILPROG=${sbindir}/sendmail \
21 ac_cv_path_VIPROG=${base_bindir}/vi \
22 "
23
24EXTRA_OECONF += " \
25 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \
27 --with-vardir=/var/lib/sudo \
28 "
29
30do_install_append () {
31 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
32 install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo
33 if ${@bb.utils.contains('PACKAGECONFIG', 'pam-wheel', 'true', 'false', d)} ; then
34 echo 'auth required pam_wheel.so use_uid' >>${D}${sysconfdir}/pam.d/sudo
35 sed -i 's/# \(%wheel ALL=(ALL) ALL\)/\1/' ${D}${sysconfdir}/sudoers
36 fi
37 fi
38
39 chmod 4111 ${D}${bindir}/sudo
40 chmod 0440 ${D}${sysconfdir}/sudoers
41
42 # Explicitly remove the /run directory to avoid QA error
43 rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo
44}
45
46FILES_${PN} += "${nonarch_libdir}/tmpfiles.d"
47FILES_${PN}-dev += "${libexecdir}/${BPN}/lib*${SOLIBSDEV} ${libexecdir}/${BPN}/*.la \
48 ${libexecdir}/lib*${SOLIBSDEV} ${libexecdir}/*.la"