[yocto] Enabling SFTP on libcurl package

Saddam Quirem squirem at fbdfrozen.com
Fri Jul 19 09:09:03 PDT 2013


Daniel Stenberg <daniel at ...> writes:

> libssh2 is a rather standard autotools-using library that itself depends on a 
> crypto backend (OpenSSL or gcrypt). There should be plenty of recipes for 
> similar libs to get inspiration from.

Appreciate the response.

I added a libssh2 recipe in poky/meta/recipes-support/libssh2.

####Here are the contents of libssh2_1.4.3.bb:####
DESCRIPTION = "A client-side C library implementing the SSH2 protocol"
HOMEPAGE = "http://www.libssh2.org/"
BUGTRACKER = ""
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=d00afe44f336a79a2ca7e1681ce14509"
SECTION = "libs"
SRC_URI = "http://www.libssh2.org/download/${BPN}-${PV}.tar.gz"
DEPENDS = "libgcrypt"
SRC_URI[md5sum] = "071004c60c5d6f90354ad1b701013a0b"
SRC_URI[sha256sum] = "eac6f85f9df9db2e6386906a6227eb2cd7b3245739561cad7d6dc1d \
                      5d021b96d"
inherit autotools
#################################################

I'm not exactly sure where the bugtracker site is, 
but it's not necessary for bitbake.

In the curl recipe, I changed these lines:
    DEPENDS = "zlib gnutls"
    --without-libssh2 \
To this:
    DEPENDS = "zlib gnutls libssh2"
    --with-libssh2=${STAGING_LIBDIR} \

I'm using poky-dylan w/ Freesacale ARM BSP. There were no issues reported.
My application, which uses libcurl, now runs fine and can use SFTP to
upload to a remote site.

I've noticed that the master-next branch of poky does not include libssh2
and curl does not yet support SSH.

Since you're the author and maintainer of cURL, I was wondering why SSH
is not yet supported in the Yocto cURL package and if it will be?




More information about the yocto mailing list