summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/dropbear
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2022-10-06 12:31:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-25 13:42:03 +0100
commit5052a071e5b13e6c33dfa2c4618a0e3e947c2e42 (patch)
tree26633831d32d7a28453e3f8c1072bfc4c2bad767 /meta/recipes-core/dropbear
parent378f67bd825b4926113fb60588c81b4ffb05b704 (diff)
downloadpoky-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.bb10
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"
12RPROVIDES:${PN} = "ssh sshd" 12RPROVIDES:${PN} = "ssh sshd"
13RCONFLICTS:${PN} = "openssh-sshd openssh" 13RCONFLICTS:${PN} = "openssh-sshd openssh"
14 14
15DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
16
17SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ 15SRC_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 "
39RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
40
41inherit autotools update-rc.d systemd 37inherit autotools update-rc.d systemd
42 38
43CVE_PRODUCT = "dropbear_ssh" 39CVE_PRODUCT = "dropbear_ssh"
@@ -51,14 +47,12 @@ SBINCOMMANDS = "dropbear dropbearkey dropbearconvert"
51BINCOMMANDS = "dbclient ssh scp" 47BINCOMMANDS = "dbclient ssh scp"
52EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' 48EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"'
53 49
54PACKAGECONFIG ?= "disable-weak-ciphers" 50PACKAGECONFIG ?= "disable-weak-ciphers ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
51PACKAGECONFIG[pam] = "--enable-pam,--disable-pam,libpam,${PAM_PLUGINS}"
55PACKAGECONFIG[system-libtom] = "--disable-bundled-libtom,--enable-bundled-libtom,libtommath libtomcrypt" 52PACKAGECONFIG[system-libtom] = "--disable-bundled-libtom,--enable-bundled-libtom,libtommath libtomcrypt"
56PACKAGECONFIG[disable-weak-ciphers] = "" 53PACKAGECONFIG[disable-weak-ciphers] = ""
57PACKAGECONFIG[enable-x11-forwarding] = "" 54PACKAGECONFIG[enable-x11-forwarding] = ""
58 55
59EXTRA_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
64EXTRA_OECONF += "--disable-harden" 58EXTRA_OECONF += "--disable-harden"