summaryrefslogtreecommitdiffstats
path: root/meta
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-10-06 14:15:21 +0100
commitf2d6fa90b62868f29f7aa0d94b81c0e53f5c06fc (patch)
treefbb09303b127339cad63982dfb1da78249f062a3 /meta
parent027d451239e247215c21213f960e71980fb1cad2 (diff)
downloadpoky-f2d6fa90b62868f29f7aa0d94b81c0e53f5c06fc.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: ff61cf5777c63a7ebecde5ada1cf01d7bafe265d) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit fe99349c1bd72b69d22ab0dc52b8825d3157b8e7) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/openssh/openssh_8.2p1.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_8.2p1.bb b/meta/recipes-connectivity/openssh/openssh_8.2p1.bb
index d879efc201..17138c0ad8 100644
--- a/meta/recipes-connectivity/openssh/openssh_8.2p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_8.2p1.bb
@@ -43,12 +43,15 @@ SYSTEMD_SERVICE_${PN}-sshd = "sshd.socket"
43 43
44inherit autotools-brokensep ptest 44inherit autotools-brokensep ptest
45 45
46PACKAGECONFIG ??= "" 46PACKAGECONFIG ??= "rng-tools"
47PACKAGECONFIG[kerberos] = "--with-kerberos5,--without-kerberos5,krb5" 47PACKAGECONFIG[kerberos] = "--with-kerberos5,--without-kerberos5,krb5"
48PACKAGECONFIG[ldns] = "--with-ldns,--without-ldns,ldns" 48PACKAGECONFIG[ldns] = "--with-ldns,--without-ldns,ldns"
49PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit" 49PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit"
50PACKAGECONFIG[manpages] = "--with-mantype=man,--with-mantype=cat" 50PACKAGECONFIG[manpages] = "--with-mantype=man,--with-mantype=cat"
51 51
52# Add RRECOMMENDS to rng-tools for sshd package
53PACKAGECONFIG[rng-tools] = ""
54
52EXTRA_AUTORECONF += "--exclude=aclocal" 55EXTRA_AUTORECONF += "--exclude=aclocal"
53 56
54# login path is hardcoded in sshd 57# login path is hardcoded in sshd
@@ -150,7 +153,10 @@ FILES_${PN}-keygen = "${bindir}/ssh-keygen"
150 153
151RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" 154RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen"
152RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}" 155RDEPENDS_${PN}-sshd += "${PN}-keygen ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-keyinit pam-plugin-loginuid', '', d)}"
153RRECOMMENDS_${PN}-sshd_append_class-target = " rng-tools" 156RRECOMMENDS_${PN}-sshd_append_class-target = "\
157 ${@bb.utils.filter('PACKAGECONFIG', 'rng-tools', d)} \
158"
159
154# gdb would make attach-ptrace test pass rather than skip but not worth the build dependencies 160# gdb would make attach-ptrace test pass rather than skip but not worth the build dependencies
155RDEPENDS_${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils" 161RDEPENDS_${PN}-ptest += "${PN}-sftp ${PN}-misc ${PN}-sftp-server make sed sudo coreutils"
156 162