summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sudo/sudo.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/sudo/sudo.inc')
-rw-r--r--meta/recipes-extended/sudo/sudo.inc31
1 files changed, 15 insertions, 16 deletions
diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc
index 97ecabe0fc..feb1cf35a7 100644
--- a/meta/recipes-extended/sudo/sudo.inc
+++ b/meta/recipes-extended/sudo/sudo.inc
@@ -3,12 +3,11 @@ DESCRIPTION = "Sudo (superuser do) allows a system administrator to give certain
3HOMEPAGE = "http://www.sudo.ws" 3HOMEPAGE = "http://www.sudo.ws"
4BUGTRACKER = "http://www.sudo.ws/bugs/" 4BUGTRACKER = "http://www.sudo.ws/bugs/"
5SECTION = "admin" 5SECTION = "admin"
6LICENSE = "ISC & BSD & Zlib" 6LICENSE = "ISC & BSD-3-Clause & BSD-2-Clause & Zlib"
7LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=fdff64d4fd19126330aa81b94d167173 \ 7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5100e20d35f9015f9eef6bdb27ba194f \
8 file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \ 8 file://plugins/sudoers/redblack.c;beginline=1;endline=46;md5=03e35317699ba00b496251e0dfe9f109 \
9 file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \ 9 file://lib/util/reallocarray.c;beginline=3;endline=15;md5=397dd45c7683e90b9f8bf24638cf03bf \
10 file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \ 10 file://lib/util/fnmatch.c;beginline=3;endline=27;md5=004d7d2866ba1f5b41174906849d2e0f \
11 file://lib/util/getcwd.c;beginline=2;endline=27;md5=50f8d9667750e18dea4e84a935c12009 \
12 file://lib/util/glob.c;beginline=2;endline=31;md5=2852f68687544e3eb8a0a61665506f0e \ 11 file://lib/util/glob.c;beginline=2;endline=31;md5=2852f68687544e3eb8a0a61665506f0e \
13 file://lib/util/snprintf.c;beginline=3;endline=33;md5=b70df6179969e38fcf68da91b53b8029 \ 12 file://lib/util/snprintf.c;beginline=3;endline=33;md5=b70df6179969e38fcf68da91b53b8029 \
14 file://include/sudo_queue.h;beginline=2;endline=27;md5=ad578e9664d17a010b63e4bc0576ee8d \ 13 file://include/sudo_queue.h;beginline=2;endline=27;md5=ad578e9664d17a010b63e4bc0576ee8d \
@@ -23,22 +22,20 @@ inherit autotools
23PACKAGECONFIG ??= "" 22PACKAGECONFIG ??= ""
24PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib" 23PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
25PACKAGECONFIG[pam-wheel] = ",,,pam-plugin-wheel" 24PACKAGECONFIG[pam-wheel] = ",,,pam-plugin-wheel"
26 25PACKAGECONFIG[audit] = "--with-linux-audit,--without-linux-audit,audit"
27CONFFILES_${PN} = "${sysconfdir}/sudoers" 26PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
28 27
29EXTRA_OECONF = "--with-editor=${base_bindir}/vi --with-env-editor" 28EXTRA_OECONF = "--with-editor=${base_bindir}/vi --with-env-editor"
30 29
31EXTRA_OECONF_append_libc-musl = " --disable-hardening " 30EXTRA_OECONF:append:libc-musl = " --disable-hardening "
32 31
33# mksigname/mksiglist are used on build host to generate source files 32do_compile:prepend () {
34do_compile_prepend () { 33 # Remove build host references from config.h
35 # Remove build host references from sudo_usage.h 34 sed -i \
36 sed -i \ 35 -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
37 -e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \ 36 -e 's,--build=${BUILD_SYS},,g' \
38 -e 's,--build=${BUILD_SYS},,g' \ 37 -e 's,--host=${HOST_SYS},,g' \
39 -e 's,--host=${HOST_SYS},,g' \ 38 ${B}/config.h
40 ${B}/src/sudo_usage.h
41 oe_runmake SSP_CFLAGS="" SSP_LDFLAGS="" CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS="$BUILD_CPPFLAGS -I${S}/include -I${S} -I${B}" -C lib/util mksigname mksiglist
42} 39}
43 40
44# Explicitly create ${localstatedir}/lib before do_install to ensure 41# Explicitly create ${localstatedir}/lib before do_install to ensure
@@ -46,6 +43,8 @@ do_compile_prepend () {
46# script (from sudo) will recursively create ${localstatedir}/lib/sudo 43# script (from sudo) will recursively create ${localstatedir}/lib/sudo
47# and then chmod each directory with 0700 permissions, which isn't what 44# and then chmod each directory with 0700 permissions, which isn't what
48# we want (i.e, users would not be able to access /var/lib). 45# we want (i.e, users would not be able to access /var/lib).
49do_install_prepend (){ 46do_install:prepend (){
50 mkdir -p ${D}/${localstatedir}/lib 47 mkdir -p ${D}/${localstatedir}/lib
51} 48}
49
50CVE_VERSION_SUFFIX = "patch"