ajout des recettes pour la compilation de wazuh agent
This commit is contained in:
70
recipes-support/sqlite/sqlite3.inc
Normal file
70
recipes-support/sqlite/sqlite3.inc
Normal file
@@ -0,0 +1,70 @@
|
||||
SUMMARY = "Embeddable SQL database engine"
|
||||
HOMEPAGE = "http://www.sqlite.org"
|
||||
SECTION = "libs"
|
||||
|
||||
PE = "3"
|
||||
|
||||
def sqlite_download_version(d):
|
||||
pvsplit = d.getVar('PV').split('.')
|
||||
if len(pvsplit) < 4:
|
||||
pvsplit.append('0')
|
||||
return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]])
|
||||
|
||||
SQLITE_PV = "${@sqlite_download_version(d)}"
|
||||
|
||||
S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://www.sqlite.org/"
|
||||
UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
|
||||
|
||||
CVE_PRODUCT = "sqlite"
|
||||
|
||||
inherit autotools pkgconfig siteinfo
|
||||
|
||||
# enable those which are enabled by default in configure
|
||||
PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
|
||||
PACKAGECONFIG_class-native ?= "fts4 fts5 json1 rtree dyn_ext"
|
||||
|
||||
PACKAGECONFIG[editline] = "--enable-editline,--disable-editline,libedit"
|
||||
PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline ncurses"
|
||||
PACKAGECONFIG[fts3] = "--enable-fts3,--disable-fts3"
|
||||
PACKAGECONFIG[fts4] = "--enable-fts4,--disable-fts4"
|
||||
PACKAGECONFIG[fts5] = "--enable-fts5,--disable-fts5"
|
||||
PACKAGECONFIG[json1] = "--enable-json1,--disable-json1"
|
||||
PACKAGECONFIG[rtree] = "--enable-rtree,--disable-rtree"
|
||||
PACKAGECONFIG[session] = "--enable-session,--disable-session"
|
||||
PACKAGECONFIG[dyn_ext] = "--enable-dynamic-extensions,--disable-dynamic-extensions"
|
||||
PACKAGECONFIG[zlib] = ",,zlib"
|
||||
|
||||
CACHED_CONFIGUREVARS += "${@bb.utils.contains('PACKAGECONFIG', 'zlib', '', 'ac_cv_search_deflate=no',d)}"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--enable-shared \
|
||||
--enable-threadsafe \
|
||||
--disable-static-shell \
|
||||
"
|
||||
|
||||
CFLAGS_append = " -fPIC"
|
||||
|
||||
# pread() is in POSIX.1-2001 so any reasonable system must surely support it
|
||||
CFLAGS_append = " -DUSE_PREAD"
|
||||
|
||||
# Provide column meta-data API
|
||||
CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA"
|
||||
|
||||
# Unless SQLITE_BYTEORDER is predefined, the code falls back to build time
|
||||
# huristics, which are not always correct
|
||||
CFLAGS_append = " ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DSQLITE_BYTEORDER=1234', '-DSQLITE_BYTEORDER=4321', d)}"
|
||||
|
||||
PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
|
||||
|
||||
FILES_${PN} = "${bindir}/*"
|
||||
FILES_lib${BPN} = "${libdir}/*.so.*"
|
||||
FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \
|
||||
${libdir}/pkgconfig ${includedir}"
|
||||
FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}"
|
||||
FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
|
||||
|
||||
AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
11
recipes-support/sqlite/sqlite3_3.36.0.bb
Normal file
11
recipes-support/sqlite/sqlite3_3.36.0.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
require sqlite3.inc
|
||||
|
||||
LICENSE = "PD"
|
||||
LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66"
|
||||
|
||||
SRC_URI = "http://www.sqlite.org/2021/sqlite-autoconf-${SQLITE_PV}.tar.gz \
|
||||
"
|
||||
SRC_URI[md5sum] = "f5752052fc5b8e1b539af86a3671eac7"
|
||||
SRC_URI[sha256sum] = "bd90c3eb96bee996206b83be7065c9ce19aef38c3f4fb53073ada0d0b69bbce3"
|
||||
|
||||
PREFERRED_VERSION_glibc = "2.30"
|
||||
Reference in New Issue
Block a user