diff options
author | Ming Liu <liu.ming50@gmail.com> | 2022-10-06 12:31:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-25 13:42:03 +0100 |
commit | 5052a071e5b13e6c33dfa2c4618a0e3e947c2e42 (patch) | |
tree | 26633831d32d7a28453e3f8c1072bfc4c2bad767 /meta/recipes-core/dropbear | |
parent | 378f67bd825b4926113fb60588c81b4ffb05b704 (diff) | |
download | poky-5052a071e5b13e6c33dfa2c4618a0e3e947c2e42.tar.gz |
dropbear: add pam to PACKAGECONFIG
Add pam to PACKAGECONFIG to make the code cleaner.
(From OE-Core rev: 4d0c566a79cf7c0b7c86eaa7c99aa185fcf37bb5)
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dropbear')
-rw-r--r-- | meta/recipes-core/dropbear/dropbear_2022.82.bb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/meta/recipes-core/dropbear/dropbear_2022.82.bb b/meta/recipes-core/dropbear/dropbear_2022.82.bb index 41c14ff2f1..4ed4c65cc1 100644 --- a/meta/recipes-core/dropbear/dropbear_2022.82.bb +++ b/meta/recipes-core/dropbear/dropbear_2022.82.bb | |||
@@ -12,8 +12,6 @@ DEPENDS = "zlib virtual/crypt" | |||
12 | RPROVIDES:${PN} = "ssh sshd" | 12 | RPROVIDES:${PN} = "ssh sshd" |
13 | RCONFLICTS:${PN} = "openssh-sshd openssh" | 13 | RCONFLICTS:${PN} = "openssh-sshd openssh" |
14 | 14 | ||
15 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
16 | |||
17 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ | 15 | SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ |
18 | file://0001-urandom-xauth-changes-to-options.h.patch \ | 16 | file://0001-urandom-xauth-changes-to-options.h.patch \ |
19 | file://init \ | 17 | file://init \ |
@@ -36,8 +34,6 @@ PAM_PLUGINS = "libpam-runtime \ | |||
36 | pam-plugin-permit \ | 34 | pam-plugin-permit \ |
37 | pam-plugin-unix \ | 35 | pam-plugin-unix \ |
38 | " | 36 | " |
39 | RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" | ||
40 | |||
41 | inherit autotools update-rc.d systemd | 37 | inherit autotools update-rc.d systemd |
42 | 38 | ||
43 | CVE_PRODUCT = "dropbear_ssh" | 39 | CVE_PRODUCT = "dropbear_ssh" |
@@ -51,14 +47,12 @@ SBINCOMMANDS = "dropbear dropbearkey dropbearconvert" | |||
51 | BINCOMMANDS = "dbclient ssh scp" | 47 | BINCOMMANDS = "dbclient ssh scp" |
52 | EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' | 48 | EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' |
53 | 49 | ||
54 | PACKAGECONFIG ?= "disable-weak-ciphers" | 50 | PACKAGECONFIG ?= "disable-weak-ciphers ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
51 | PACKAGECONFIG[pam] = "--enable-pam,--disable-pam,libpam,${PAM_PLUGINS}" | ||
55 | PACKAGECONFIG[system-libtom] = "--disable-bundled-libtom,--enable-bundled-libtom,libtommath libtomcrypt" | 52 | PACKAGECONFIG[system-libtom] = "--disable-bundled-libtom,--enable-bundled-libtom,libtommath libtomcrypt" |
56 | PACKAGECONFIG[disable-weak-ciphers] = "" | 53 | PACKAGECONFIG[disable-weak-ciphers] = "" |
57 | PACKAGECONFIG[enable-x11-forwarding] = "" | 54 | PACKAGECONFIG[enable-x11-forwarding] = "" |
58 | 55 | ||
59 | EXTRA_OECONF += "\ | ||
60 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | ||
61 | |||
62 | # This option appends to CFLAGS and LDFLAGS from OE | 56 | # This option appends to CFLAGS and LDFLAGS from OE |
63 | # This is causing [textrel] QA warning | 57 | # This is causing [textrel] QA warning |
64 | EXTRA_OECONF += "--disable-harden" | 58 | EXTRA_OECONF += "--disable-harden" |