diff options
Diffstat (limited to 'meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb')
-rw-r--r-- | meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb b/meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb new file mode 100644 index 0000000000..7221130fe6 --- /dev/null +++ b/meta-networking/recipes-support/libtdb/libtdb_1.4.13.bb | |||
@@ -0,0 +1,63 @@ | |||
1 | SUMMARY = "The tdb library" | ||
2 | HOMEPAGE = "https://tdb.samba.org/" | ||
3 | SECTION = "libs" | ||
4 | LICENSE = "LGPL-3.0-or-later & GPL-3.0-or-later" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://tools/tdbdump.c;endline=18;md5=b59cd45aa8624578126a8c98f48018c4 \ | ||
7 | file://include/tdb.h;endline=27;md5=f5bb544641d3081821bcc1dd58310be6" | ||
8 | |||
9 | export PYTHONHASHSEED = "1" | ||
10 | export PYTHONARCHDIR = "${PYTHON_SITEPACKAGES_DIR}" | ||
11 | |||
12 | SRC_URI = "https://samba.org/ftp/tdb/tdb-${PV}.tar.gz \ | ||
13 | file://0001-tdb-Add-configure-options-for-packages.patch \ | ||
14 | file://0002-Fix-pyext_PATTERN-for-cross-compilation.patch \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[sha256sum] = "5ee276e7644d713e19e4b6adc00b440afb5851ff21e65821ffaed89e15a5e167" | ||
19 | |||
20 | PACKAGECONFIG ??= "\ | ||
21 | ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)} \ | ||
22 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \ | ||
23 | " | ||
24 | |||
25 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | ||
26 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | ||
27 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | ||
28 | PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" | ||
29 | PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" | ||
30 | |||
31 | S = "${UNPACKDIR}/tdb-${PV}" | ||
32 | |||
33 | inherit waf-samba pkgconfig ptest | ||
34 | |||
35 | # Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen | ||
36 | # to cross Popen | ||
37 | export WAF_NO_PREFORK = "yes" | ||
38 | |||
39 | EXTRA_OECONF += "--disable-rpath \ | ||
40 | --disable-rpath-install \ | ||
41 | --bundled-libraries=NONE \ | ||
42 | --builtin-libraries=replace \ | ||
43 | --with-libiconv=${STAGING_DIR_HOST}${prefix}\ | ||
44 | " | ||
45 | |||
46 | do_install_ptest() { | ||
47 | install -d ${D}${PTEST_PATH}/tests | ||
48 | install -m 0755 ${B}/bin/tdb1-* ${D}${PTEST_PATH}/tests/ | ||
49 | install -m 0755 ${B}/bin/replace_testsuite ${D}${PTEST_PATH}/tests/ | ||
50 | install -d ${D}${PTEST_PATH}/tests/test | ||
51 | install -m 0644 ${B}/test/*.tdb ${D}${PTEST_PATH}/tests/test/ | ||
52 | install -m 0644 ${B}/test/*.corrupt ${D}${PTEST_PATH}/tests/test/ | ||
53 | } | ||
54 | |||
55 | PACKAGES += "tdb-tools python3-tdb" | ||
56 | |||
57 | RPROVIDES:${PN}-dbg += "python3-tdb-dbg" | ||
58 | |||
59 | FILES:${PN} = "${libdir}/*.so.*" | ||
60 | FILES:tdb-tools = "${bindir}/*" | ||
61 | FILES:python3-tdb = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
62 | RDEPENDS:python3-tdb = "python3" | ||
63 | INSANE_SKIP:${MLPREFIX}python3-tdb = "dev-so" | ||