summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libssh/libssh_0.10.5.bb
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2023-11-01 17:27:04 +0000
committerArmin Kuster <akuster808@gmail.com>2023-11-16 21:49:15 -0500
commit644edb8b6a8786f84e50cd7cf955731ec4609c65 (patch)
tree3ffd1db5c6ea3970f8026a208bbb9f572d40a0f3 /meta-oe/recipes-support/libssh/libssh_0.10.5.bb
parentd5d3526d5cd83259528ee702d7a394c5a628a720 (diff)
downloadmeta-openembedded-644edb8b6a8786f84e50cd7cf955731ec4609c65.tar.gz
libssh: upgrade 0.10.4 -> 0.10.5
Changelog: https://git.libssh.org/projects/libssh.git/tag/?h=libssh-0.10.5 * Generate cases list dynamically in run-ptest. * Install missing file to fix ptest failure. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit b0833f1f3ec78f16a79d9ff66cdd19da93496018) Signed-off-by: Yogita Urade <yogita.urade@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libssh/libssh_0.10.5.bb')
-rw-r--r--meta-oe/recipes-support/libssh/libssh_0.10.5.bb48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libssh/libssh_0.10.5.bb b/meta-oe/recipes-support/libssh/libssh_0.10.5.bb
new file mode 100644
index 0000000000..f33987acf5
--- /dev/null
+++ b/meta-oe/recipes-support/libssh/libssh_0.10.5.bb
@@ -0,0 +1,48 @@
1SUMMARY = "Multiplatform C library implementing the SSHv2 and SSHv1 protocol"
2HOMEPAGE = "http://www.libssh.org"
3SECTION = "libs"
4LICENSE = "LGPL-2.1-only"
5LIC_FILES_CHKSUM = "file://COPYING;md5=dabb4958b830e5df11d2b0ed8ea255a0"
6
7DEPENDS = "zlib openssl"
8
9SRC_URI = "git://git.libssh.org/projects/libssh.git;protocol=https;branch=stable-0.10 \
10 file://0001-tests-CMakeLists.txt-do-not-search-ssh-sshd-commands.patch \
11 file://0001-libgcrypt.c-Fix-prototype-of-des3_encrypt-des3_decry.patch \
12 file://run-ptest \
13 "
14SRCREV = "479eca13aaaa46b43e68c52186e3783f06ae6f34"
15
16S = "${WORKDIR}/git"
17
18inherit cmake ptest
19
20PACKAGECONFIG ??= "gcrypt ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
21PACKAGECONFIG[gssapi] = "-DWITH_GSSAPI=1, -DWITH_GSSAPI=0, krb5, "
22PACKAGECONFIG[gcrypt] = "-DWITH_GCRYPT=1, -DWITH_GCRYPT=0, libgcrypt, "
23PACKAGECONFIG[tests] = "-DUNIT_TESTING=1, -DUNIT_TESTING=0, cmocka"
24
25ARM_INSTRUCTION_SET:armv5 = "arm"
26
27EXTRA_OECMAKE = " \
28 -DWITH_PCAP=1 \
29 -DWITH_SFTP=1 \
30 -DWITH_ZLIB=1 \
31 -DWITH_EXAMPLES=0 \
32 "
33
34do_compile:prepend () {
35 if [ ${PTEST_ENABLED} = "1" ]; then
36 sed -i -e 's|${B}|${PTEST_PATH}|g' ${B}/config.h
37 sed -i -e 's|${S}|${PTEST_PATH}|g' ${B}/config.h
38 fi
39}
40
41do_install_ptest () {
42 install -d ${D}${PTEST_PATH}/tests
43 cp -f ${B}/tests/unittests/torture_* ${D}${PTEST_PATH}/tests/
44 install -d ${D}${PTEST_PATH}/tests/unittests
45 cp -f ${S}/tests/unittests/hello*.sh ${D}${PTEST_PATH}/tests/unittests/
46}
47
48BBCLASSEXTEND = "native nativesdk"