summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/shadow.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/shadow/shadow.inc')
-rw-r--r--meta/recipes-extended/shadow/shadow.inc20
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index ce3ce62715..c024746d4f 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -5,7 +5,7 @@ BUGTRACKER = "http://github.com/shadow-maint/shadow/issues"
5SECTION = "base/utils" 5SECTION = "base/utils"
6LICENSE = "BSD-3-Clause" 6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \ 7LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \
8 file://src/passwd.c;beginline=2;endline=30;md5=758c26751513b6795395275969dd3be1 \ 8 file://src/passwd.c;beginline=2;endline=7;md5=67bcf314687820b2f010d4863fce3fc5 \
9 " 9 "
10 10
11DEPENDS = "virtual/crypt" 11DEPENDS = "virtual/crypt"
@@ -14,10 +14,6 @@ GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases"
14SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \ 14SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \
15 ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ 15 ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \
16 file://useradd \ 16 file://useradd \
17 file://0001-Fix-can-not-print-full-login.patch \
18 file://CVE-2023-29383.patch \
19 file://0001-Overhaul-valid_field.patch \
20 file://CVE-2023-4641.patch \
21 " 17 "
22 18
23SRC_URI:append:class-target = " \ 19SRC_URI:append:class-target = " \
@@ -26,14 +22,9 @@ SRC_URI:append:class-target = " \
26 " 22 "
27 23
28SRC_URI:append:class-native = " \ 24SRC_URI:append:class-native = " \
29 file://0001-Disable-use-of-syslog-for-sysroot.patch \
30 file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ 25 file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \
31 " 26 "
32SRC_URI:append:class-nativesdk = " \ 27SRC_URI[sha256sum] = "a305edf5d19bddbdf5e836d2d609fa8bff2d35458819de4d9f06306a1cf24342"
33 file://0001-Disable-use-of-syslog-for-sysroot.patch \
34 "
35SRC_URI[sha256sum] = "813057047499c7fe81108adcf0cffa3ad4ec75e19a80151f9cbaa458ff2e86cd"
36
37 28
38# Additional Policy files for PAM 29# Additional Policy files for PAM
39PAM_SRC_URI = "file://pam.d/chfn \ 30PAM_SRC_URI = "file://pam.d/chfn \
@@ -44,7 +35,7 @@ PAM_SRC_URI = "file://pam.d/chfn \
44 file://pam.d/passwd \ 35 file://pam.d/passwd \
45 file://pam.d/su" 36 file://pam.d/su"
46 37
47inherit autotools gettext github-releases 38inherit autotools gettext github-releases pkgconfig
48 39
49export CONFIG_SHELL="/bin/sh" 40export CONFIG_SHELL="/bin/sh"
50 41
@@ -54,6 +45,8 @@ EXTRA_OECONF += "--without-libcrack \
54 --without-sssd \ 45 --without-sssd \
55 ${NSCDOPT}" 46 ${NSCDOPT}"
56 47
48CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY"
49
57NSCDOPT = "" 50NSCDOPT = ""
58NSCDOPT:class-native = "--without-nscd" 51NSCDOPT:class-native = "--without-nscd"
59NSCDOPT:class-nativesdk = "--without-nscd" 52NSCDOPT:class-nativesdk = "--without-nscd"
@@ -73,13 +66,14 @@ PAM_PLUGINS = "libpam-runtime \
73 66
74PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ 67PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
75 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" 68 ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}"
76PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" 69PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} libbsd"
77PACKAGECONFIG:class-nativesdk = "" 70PACKAGECONFIG:class-nativesdk = ""
78PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" 71PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}"
79PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" 72PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
80PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" 73PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
81PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit" 74PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit"
82PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage" 75PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage"
76PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
83 77
84RDEPENDS:${PN} = "shadow-securetty \ 78RDEPENDS:${PN} = "shadow-securetty \
85 base-passwd \ 79 base-passwd \