7818cef78b
0.23.1 has compilation errors with recent kernels. 0.27.1 changed license for userspace from GPLv2 to Apache and added MIT option for driver. New dependencies: c-ares, grpc, protobuf, tbb. There's also a dependency on gtest, but only if tests are enabled. Therefore, add conf opt to disable tests. Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com> [Arnout: - Add Francis to DEVELOPERS for sysdig. - Add link to source of patch 2. - Remove N/M from patch 2 (check-package). - Correct license info and hashes. - Remove gtest dependency. - Add -DCREATE_TEST_TARGETS=OFF conf opt. - Propagate Config.in dependencies of reverse dependencies.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# sysdig
|
|
#
|
|
################################################################################
|
|
|
|
SYSDIG_VERSION = 0.27.1
|
|
SYSDIG_SITE = $(call github,draios,sysdig,$(SYSDIG_VERSION))
|
|
SYSDIG_LICENSE = Apache-2.0 (userspace), MIT or GPL-2.0 (driver)
|
|
SYSDIG_LICENSE_FILES = COPYING driver/MIT.txt driver/GPL2.txt
|
|
SYSDIG_CPE_ID_VENDOR = sysdig
|
|
SYSDIG_CONF_OPTS = \
|
|
-DENABLE_DKMS=OFF \
|
|
-DUSE_BUNDLED_DEPS=OFF \
|
|
-DCREATE_TEST_TARGETS=OFF
|
|
SYSDIG_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
SYSDIG_DEPENDENCIES = \
|
|
c-ares \
|
|
elfutils \
|
|
grpc \
|
|
jq \
|
|
jsoncpp \
|
|
libb64 \
|
|
libcurl \
|
|
luainterpreter \
|
|
ncurses \
|
|
openssl \
|
|
protobuf \
|
|
tbb \
|
|
zlib
|
|
|
|
# sysdig creates the module Makefile from a template, which contains a
|
|
# single place-holder, KBUILD_FLAGS, wich is only replaced with two
|
|
# things:
|
|
# - debug flags, which we don't care about here,
|
|
# - 'sysdig-feature' flags, which are never set, so always empty
|
|
# So, just replace the place-holder with the only meaningful value: nothing.
|
|
define SYSDIG_MODULE_GEN_MAKEFILE
|
|
$(INSTALL) -m 0644 $(@D)/driver/Makefile.in $(@D)/driver/Makefile
|
|
$(SED) 's/@KBUILD_FLAGS@//;' $(@D)/driver/Makefile
|
|
$(SED) 's/@PROBE_NAME@/sysdig-probe/;' $(@D)/driver/Makefile
|
|
endef
|
|
SYSDIG_POST_PATCH_HOOKS += SYSDIG_MODULE_GEN_MAKEFILE
|
|
|
|
# Don't build the driver as part of the 'standard' procedure, we'll
|
|
# build it on our own with the kernel-module infra.
|
|
SYSDIG_CONF_OPTS += -DBUILD_DRIVER=OFF
|
|
|
|
SYSDIG_MODULE_SUBDIRS = driver
|
|
SYSDIG_MODULE_MAKE_OPTS = KERNELDIR=$(LINUX_DIR)
|
|
|
|
$(eval $(kernel-module))
|
|
$(eval $(cmake-package))
|