[oe] SSH configuration question.
Sean_Hudson at Dell.com
Sean_Hudson at Dell.com
Wed Jul 14 19:20:06 UTC 2010
Thanks for the tip. The patch included below seems to do the trick.
diff --git a/recipes/openssh/openssh.inc b/recipes/openssh/openssh.inc
index 9e4ca14..f20f27c 100644
--- a/recipes/openssh/openssh.inc
+++ b/recipes/openssh/openssh.inc
@@ -1,4 +1,5 @@
DEPENDS = "zlib openssl"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
RCONFLICTS_${PN} = "dropbear"
RCONFLICTS_${PN}-sshd = "dropbear"
@@ -26,7 +27,8 @@ CFLAGS_prepend = "-I${S} "
CFLAGS_append = " -D__FILE_OFFSET_BITS=64"
LDFLAGS_prepend = "-L${S} -L${S}/openbsd-compat "
EXTRA_OECONF = "--disable-suid-ssh --with-ssl=${STAGING_LIBDIR}/ssl \
- --with-rand-helper=no --without-pam \
+ --with-rand-helper=no \
+ ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
--without-zlib-version-check \
--with-privsep-path=/var/run/sshd \
--sysconfdir=${sysconfdir}/ssh \
-----Original Message-----
From: openembedded-devel-bounces at lists.openembedded.org [mailto:openembedded-devel-bounces at lists.openembedded.org] On Behalf Of Khem Raj
Sent: Tuesday, July 13, 2010 1:03 AM
To: openembedded-devel at lists.openembedded.org
Subject: Re: [oe] SSH configuration question.
On Mon, Jul 12, 2010 at 3:42 PM, <Sean_Hudson at dell.com> wrote:
> All,
>
> What is the best way to update the configuration used to build SSH?
>
> Specifically, I'd like to build SSH with pam enabled, however, the configuration in the recipes/openssh/openssh.inc specifies "-without-pam".
>
in your case you could use DISTRO_FEATURE to check if pam is available
and set the option accordingly. something like below
EXTRA_OECONF += ${@base_contains('DISTRO_FEATURES', 'pam',
'--with-pam', '--without-pam', d)
Thx
-Khem
> Regards,
> -Sean
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel at lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list