blob: 340a1249655c96465763ad1cd7ee7a3b1cfaf48f [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "A New System Troubleshooting Tool Built for the Way You Work"
2DESCRIPTION = "Sysdig is open source, system-level exploration: capture \
3system state and activity from a running Linux instance, then save, \
4filter and analyze."
5HOMEPAGE = "http://www.sysdig.org/"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006LICENSE = "Apache-2.0 & (MIT | GPL-2.0)"
7LIC_FILES_CHKSUM = "file://COPYING;md5=f8fee3d59797546cffab04f3b88b2d44"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
9inherit cmake pkgconfig
10
Andrew Geissler82c905d2020-04-13 13:39:40 -050011#OECMAKE_GENERATOR = "Unix Makefiles"
12JIT ?= "jit"
Patrick Williams213cb262021-08-07 19:21:33 -050013JIT:mipsarchn32 = ""
14JIT:mipsarchn64 = ""
15JIT:riscv64 = ""
16JIT:riscv32 = ""
17JIT:powerpc = ""
18JIT:powerpc64le = ""
19JIT:powerpc64 = ""
Brad Bishop316dfdd2018-06-25 12:45:53 -040020
Andrew Geissler32b11992021-03-31 13:37:05 -050021DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp tbb jq openssl elfutils protobuf protobuf-native jq-native"
Patrick Williams213cb262021-08-07 19:21:33 -050022RDEPENDS:${PN} = "bash"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023
Andrew Geissler595f6302022-01-24 19:11:47 +000024SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https \
Andrew Geissler82c905d2020-04-13 13:39:40 -050025 file://0001-fix-build-with-LuaJIT-2.1-betas.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050026 file://aarch64.patch \
Andrew Geissler595f6302022-01-24 19:11:47 +000027 file://0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050028 "
Andrew Geissler32b11992021-03-31 13:37:05 -050029SRCREV = "67833b2aca06bd9d11cff7cb29f04fbf4ef96cad"
30PV = "0.27.1"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031
32S = "${WORKDIR}/git"
33
Andrew Geissler82c905d2020-04-13 13:39:40 -050034EXTRA_OECMAKE = "\
35 -DBUILD_DRIVER=OFF \
36 -DUSE_BUNDLED_DEPS=OFF \
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 -DCREATE_TEST_TARGETS=OFF \
38 -DDIR_ETC=${sysconfdir} \
39 -DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \
40 -DLUA_LIBRARY=libluajit-5.1.so \
41"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050042
Patrick Williams213cb262021-08-07 19:21:33 -050043FILES:${PN} += " \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044 ${DIR_ETC}/* \
Patrick Williamsddad1a12017-02-23 20:36:32 -060045 ${datadir}/zsh/* \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050046 ${prefix}/src/* \
47"
Andrew Geissler82c905d2020-04-13 13:39:40 -050048# Use getaddrinfo_a is a GNU extension in libsinsp
49# It should be fixed in sysdig, until then disable
50# on musl
51# Something like this https://code.videolan.org/ePirat/vlc/-/commit/01fd9fe4c7f6c5558f7345f38abf0152e17853ab is needed to fix it
Patrick Williams213cb262021-08-07 19:21:33 -050052COMPATIBLE_HOST:libc-musl = "null"
53COMPATIBLE_HOST:mips = "null"
54COMPATIBLE_HOST:riscv64 = "null"
55COMPATIBLE_HOST:riscv32 = "null"
56COMPATIBLE_HOST:powerpc = "null"