fix path to new include file
[openadk.git] / package / sysdig / Makefile
blobddc36cd53e9351619337c0ce5088f63d056bfc26
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
6 PKG_NAME:= sysdig
7 PKG_VERSION:= ce24a1dd0925c0ed5df9c3e3e290817f536715cf
8 PKG_GIT:= hash
9 PKG_RELEASE:= 1
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
14 PKG_BUILDDEP+= curl
15 PKG_KDEPENDS:= ftrace generic-tracer function-tracer
16 PKG_NEEDS:= c++
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
28 CONFIG_STYLE:= cmake
29 CMAKE_FLAGS:= -DUSE_BUNDLED_DEPS=OFF -DUSE_BUNDLED_B64=ON
30 XAKE_FLAGS+= KERNELDIR="$(LINUX_DIR)" \
31 ARCH=$(ADK_TARGET_ARCH)
33 sysdig-install:
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