diff options
Diffstat (limited to 'meta/recipes-support/libssh2/libssh2_1.11.0.bb')
-rw-r--r-- | meta/recipes-support/libssh2/libssh2_1.11.0.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-support/libssh2/libssh2_1.11.0.bb b/meta/recipes-support/libssh2/libssh2_1.11.0.bb new file mode 100644 index 0000000000..5100e6f7f9 --- /dev/null +++ b/meta/recipes-support/libssh2/libssh2_1.11.0.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | SUMMARY = "A client-side C library implementing the SSH2 protocol" | ||
2 | HOMEPAGE = "http://www.libssh2.org/" | ||
3 | SECTION = "libs" | ||
4 | |||
5 | DEPENDS = "zlib" | ||
6 | |||
7 | LICENSE = "BSD-3-Clause" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=24a33237426720395ebb1dd1349ca225" | ||
9 | |||
10 | SRC_URI = "http://www.libssh2.org/download/${BP}.tar.gz \ | ||
11 | file://run-ptest \ | ||
12 | file://CVE-2023-48795.patch \ | ||
13 | " | ||
14 | |||
15 | SRC_URI[sha256sum] = "3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461" | ||
16 | |||
17 | inherit autotools pkgconfig ptest | ||
18 | |||
19 | EXTRA_OECONF += "\ | ||
20 | --with-libz \ | ||
21 | --with-libz-prefix=${STAGING_LIBDIR} \ | ||
22 | --disable-rpath \ | ||
23 | " | ||
24 | DISABLE_STATIC = "" | ||
25 | |||
26 | # only one of openssl and gcrypt could be set | ||
27 | PACKAGECONFIG ??= "openssl" | ||
28 | PACKAGECONFIG[openssl] = "--with-crypto=openssl --with-libssl-prefix=${STAGING_LIBDIR}, , openssl" | ||
29 | PACKAGECONFIG[gcrypt] = "--with-crypto=libgcrypt --with-libgcrypt-prefix=${STAGING_EXECPREFIXDIR}, , libgcrypt" | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | ||
32 | |||
33 | # required for ptest on documentation | ||
34 | RDEPENDS:${PN}-ptest = "bash man-db openssh util-linux-col" | ||
35 | RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us" | ||
36 | |||
37 | do_compile_ptest() { | ||
38 | sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" tests/Makefile | ||
39 | oe_runmake check | ||
40 | } | ||
41 | |||
42 | do_install_ptest() { | ||
43 | install -d ${D}${PTEST_PATH}/tests | ||
44 | install -m 0755 ${S}/test-driver ${D}${PTEST_PATH}/ | ||
45 | cp -rf ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/ | ||
46 | cp -rf ${B}/tests/test_simple ${D}${PTEST_PATH}/tests/ | ||
47 | cp -rf ${S}/tests/mansyntax.sh ${D}${PTEST_PATH}/tests/ | ||
48 | cp -rf ${S}/tests/key* ${D}${PTEST_PATH}/tests/ | ||
49 | cp -rf ${S}/tests/openssh_server/ ${D}${PTEST_PATH}/tests/ | ||
50 | cp -rf ${S}/tests/*.test ${D}${PTEST_PATH}/tests/ | ||
51 | mkdir -p ${D}${PTEST_PATH}/docs | ||
52 | cp -r ${S}/docs/* ${D}${PTEST_PATH}/docs/ | ||
53 | } | ||