diff options
Diffstat (limited to 'meta/recipes-extended/sudo/sudo_1.9.17p1.bb')
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.9.17p1.bb | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/meta/recipes-extended/sudo/sudo_1.9.17p1.bb b/meta/recipes-extended/sudo/sudo_1.9.17p1.bb new file mode 100644 index 0000000000..c5d57da9f0 --- /dev/null +++ b/meta/recipes-extended/sudo/sudo_1.9.17p1.bb | |||
@@ -0,0 +1,113 @@ | |||
1 | # FIXME: the LIC_FILES_CHKSUM values have been updated by 'devtool upgrade'. | ||
2 | # The following is the difference between the old and the new license text. | ||
3 | # Please update the LICENSE value if needed, and summarize the changes in | ||
4 | # the commit message via 'License-Update:' tag. | ||
5 | # (example: 'License-Update: copyright years updated.') | ||
6 | # | ||
7 | # The changes: | ||
8 | # | ||
9 | # --- LICENSE.md | ||
10 | # +++ LICENSE.md | ||
11 | # @@ -1,6 +1,6 @@ | ||
12 | # Sudo is distributed under the following license: | ||
13 | # | ||
14 | # - Copyright (c) 1994-1996, 1998-2023 | ||
15 | # + Copyright (c) 1994-1996, 1998-2025 | ||
16 | # Todd C. Miller <Todd.Miller@sudo.ws> | ||
17 | # | ||
18 | # Permission to use, copy, modify, and distribute this software for any | ||
19 | # @@ -247,9 +247,9 @@ | ||
20 | # | ||
21 | # The file arc4random.c bears the following license: | ||
22 | # | ||
23 | # - Copyright (c) 1996, David Mazieres <dm@uun.org> | ||
24 | # - Copyright (c) 2008, Damien Miller <djm@openbsd.org> | ||
25 | # - Copyright (c) 2013, Markus Friedl <markus@openbsd.org> | ||
26 | # + Copyright (c) 1996, David Mazieres <dm@uun.org> | ||
27 | # + Copyright (c) 2008, Damien Miller <djm@openbsd.org> | ||
28 | # + Copyright (c) 2013, Markus Friedl <markus@openbsd.org> | ||
29 | # Copyright (c) 2014, Theo de Raadt <deraadt@openbsd.org> | ||
30 | # | ||
31 | # Permission to use, copy, modify, and distribute this software for any | ||
32 | # @@ -282,7 +282,7 @@ | ||
33 | # | ||
34 | # The file getentropy.c bears the following license: | ||
35 | # | ||
36 | # - Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | ||
37 | # + Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org> | ||
38 | # Copyright (c) 2014 Bob Beck <beck@obtuse.com> | ||
39 | # | ||
40 | # Permission to use, copy, modify, and distribute this software for any | ||
41 | # @@ -299,7 +299,7 @@ | ||
42 | # | ||
43 | # The embedded copy of zlib bears the following license: | ||
44 | # | ||
45 | # - Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler | ||
46 | # + Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler | ||
47 | # | ||
48 | # This software is provided 'as-is', without any express or implied | ||
49 | # warranty. In no event will the authors be held liable for any damages | ||
50 | # | ||
51 | # | ||
52 | |||
53 | require sudo.inc | ||
54 | |||
55 | SRC_URI = "https://www.sudo.ws/dist/sudo-${PV}.tar.gz \ | ||
56 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ | ||
57 | file://0001-sudo.conf.in-fix-conflict-with-multilib.patch \ | ||
58 | " | ||
59 | |||
60 | PAM_SRC_URI = "file://sudo.pam" | ||
61 | |||
62 | SRC_URI[sha256sum] = "ff607ea717072197738a78f778692cd6df9a7e3e404565f51de063ca27455d32" | ||
63 | |||
64 | DEPENDS += " virtual/crypt ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
65 | RDEPENDS:${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | ||
66 | |||
67 | CACHED_CONFIGUREVARS = " \ | ||
68 | ac_cv_type_rsize_t=no \ | ||
69 | ac_cv_path_MVPROG=${base_bindir}/mv \ | ||
70 | ac_cv_path_BSHELLPROG=${base_bindir}/sh \ | ||
71 | ac_cv_path_SENDMAILPROG=${sbindir}/sendmail \ | ||
72 | ac_cv_path_VIPROG=${base_bindir}/vi \ | ||
73 | " | ||
74 | |||
75 | EXTRA_OECONF += " \ | ||
76 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ | ||
77 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${nonarch_libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \ | ||
78 | --with-rundir=/run/sudo \ | ||
79 | --with-vardir=/var/lib/sudo \ | ||
80 | --libexecdir=${libdir} \ | ||
81 | " | ||
82 | |||
83 | do_install:append () { | ||
84 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then | ||
85 | install -D -m 644 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | ||
86 | if ${@bb.utils.contains('PACKAGECONFIG', 'pam-wheel', 'true', 'false', d)} ; then | ||
87 | echo 'auth required pam_wheel.so use_uid' >>${D}${sysconfdir}/pam.d/sudo | ||
88 | sed -i 's/# \(%wheel ALL=(ALL) ALL\)/\1/' ${D}${sysconfdir}/sudoers | ||
89 | fi | ||
90 | fi | ||
91 | |||
92 | chmod 4111 ${D}${bindir}/sudo | ||
93 | chmod 0440 ${D}${sysconfdir}/sudoers | ||
94 | |||
95 | # Explicitly remove the /sudo directory to avoid QA error | ||
96 | rmdir -p --ignore-fail-on-non-empty ${D}/run/sudo | ||
97 | } | ||
98 | |||
99 | FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/*.la \ | ||
100 | ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la" | ||
101 | |||
102 | CONFFILES:${PN}-lib = "${sysconfdir}/sudoers" | ||
103 | |||
104 | SUDO_PACKAGES = "${PN}-sudo\ | ||
105 | ${PN}-lib" | ||
106 | |||
107 | PACKAGE_BEFORE_PN = "${SUDO_PACKAGES}" | ||
108 | |||
109 | RDEPENDS:${PN}-sudo = "${PN}-lib" | ||
110 | RDEPENDS:${PN} += "${SUDO_PACKAGES}" | ||
111 | |||
112 | FILES:${PN}-sudo = "${bindir}/sudo ${bindir}/sudoedit" | ||
113 | FILES:${PN}-lib = "${localstatedir} ${libexecdir} ${sysconfdir} ${libdir} ${nonarch_libdir}" | ||