summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh
diff options
context:
space:
mode:
authorOtavio Salvador <otavio.salvador@gmail.com>2020-09-24 16:58:00 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-25 10:55:08 +0100
commitfd17e5459d4f8eeb8004756a6c6c646ac2ac3bee (patch)
tree6169a2f72c0f18252b91d7bee166f297361a4d4d /meta/recipes-connectivity/openssh
parent3250e3311f713210a5f052e18e3c3d529f87a056 (diff)
downloadpoky-fd17e5459d4f8eeb8004756a6c6c646ac2ac3bee.tar.gz
openssh: Allow enable/disable of rng-tools recommendation on sshd
We are adding a new PACKAGECONFIG option ('rng-tools') to control if we wish the openssh-sshd to RRECOMMENDS the 'rng-tools' package. We are enabling it by default so there is no behavior change. (From OE-Core rev: fe99349c1bd72b69d22ab0dc52b8825d3157b8e7) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_8.3p1.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_8.3p1.bb b/meta/recipes-connectivity/openssh/openssh_8.3p1.bb
index fad321898c..e007328704 100644
--- a/meta/recipes-connectivity/openssh/openssh_8.3p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_8.3p1.bb
@@ -42,12 +42,15 @@ SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket"
42 42
43inherit autotools-brokensep ptest 43inherit autotools-brokensep ptest
44 44
45PACKAGECONFIG ??= "" 45PACKAGECONFIG ??= "rng-tools"
46PACKAGECONFIG[kerberos] = "--with-kerberos5,--without-kerberos5,krb5" 46PACKAGECONFIG[kerberos] = "--with-kerberos5,--without-kerberos5,krb5"
47PACKAGECONFIG[ldns] = "--with-ldns,--without-ldns,ldns" 47PACKAGECONFIG[ldns] = "--with-ldns,--without-ldns,ldns"
48PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" 48PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit"
49PACKAGECONFIG[manpages] = "--with-mantype=man,--with-mantype=cat" 49PACKAGECONFIG[manpages] = "--with-mantype=man,--with-mantype=cat"
50 50
51# Add RRECOMMENDS to rng-tools for sshd package
52PACKAGECONFIG[rng-tools] = ""
53
51EXTRA_AUTORECONF += "--exclude=aclocal" 54EXTRA_AUTORECONF += "--exclude=aclocal"
52 55
53# login path is hardcoded in sshd 56# login path is hardcoded in sshd
@@ -149,7 +152,10 @@ FILES_${PN}-keygen = "${bindir}/ssh-keygen"
149 152
150RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" 153RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen"
151RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}" 154RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}"
152RRECOMMENDS_${PN}-sshd_append_class-target = " rng-tools" 155RRECOMMENDS_${PN}-sshd_append_class-target = "\
156 ${@bb.utils.filter('PACKAGECONFIG', 'rng-tools', d)} \
157"
158
153# gdb would make attach-ptrace test pass rather than skip but not worth the build dependencies 159# gdb would make attach-ptrace test pass rather than skip but not worth the build dependencies
154RDEPENDS_${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils" 160RDEPENDS_${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils"
155 161