1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
7 PKG_VERSION
:= ce24a1dd0925c0ed5df9c3e3e290817f536715cf
10 PKG_DESCR
:= system troubleshooting tool
11 PKG_SECTION
:= app
/debug
12 PKG_DEPENDS
:= zlib jsoncpp luajit jq libressl libcurl
13 PKG_BUILDDEP
:= cmake-host zlib jsoncpp luajit jq libressl
15 PKG_KDEPENDS
:= ftrace generic-tracer function-tracer
17 PKG_URL
:= http
://www.sysdig.org
/
18 PKG_SITES
:= https
://github.com
/draios
/sysdig.git
20 PKG_SYSTEM_DEPENDS
:= !mikrotik-rb532
22 include $(ADK_TOPDIR
)/mk
/package.mk
23 include $(ADK_TOPDIR
)/mk
/$(ADK_TARGET_OS
)-ver.mk
25 $(eval
$(call PKG_template
,SYSDIG
,sysdig
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
27 WRKBUILD
= $(WRKDIR
)/$(PKG_NAME
)-obj
29 CMAKE_FLAGS
:= -DUSE_BUNDLED_DEPS
=OFF
-DUSE_BUNDLED_B64
=ON
30 XAKE_FLAGS
+= KERNELDIR
="$(LINUX_DIR)" \
31 ARCH
=$(ADK_TARGET_ARCH
)
34 $(INSTALL_DIR
) $(IDIR_SYSDIG
)/usr
/bin
35 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/sysdig \
36 $(IDIR_SYSDIG
)/usr
/bin
37 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/csysdig \
38 $(IDIR_SYSDIG
)/usr
/bin
39 $(INSTALL_DIR
) $(IDIR_SYSDIG
)/usr
/share
40 $(CP
) $(WRKINST
)/usr
/share
/* \
41 $(IDIR_SYSDIG
)/usr
/share
42 ${INSTALL_DIR} ${IDIR_SYSDIG}/etc
/modules.d
/
43 echo
"sysdig-probe" > ${IDIR_SYSDIG}/etc
/modules.d
/90-sysdig
44 ${INSTALL_DIR} ${IDIR_SYSDIG}/lib
/modules
/${KERNEL_VERSION}/
45 ${INSTALL_DATA} ${WRKBUILD}/driver
/sysdig-probe.ko \
46 ${IDIR_SYSDIG}/lib
/modules
/${KERNEL_VERSION}
48 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk