summaryrefslogtreecommitdiff
path: root/package/sysdig
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-04-04 21:33:11 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-04-04 21:33:31 +0200
commit095dce1161da25a0dc31ec92f350be725c9bcdb6 (patch)
tree2a79cb3b088ea7e565405e674e4434d46bd2d53b /package/sysdig
parent10267fffba7a6040fb54362ed328e04f0c93ae73 (diff)
add sysdig package and dependencies. cleanup Config.in.debug
Diffstat (limited to 'package/sysdig')
-rw-r--r--package/sysdig/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/sysdig/Makefile b/package/sysdig/Makefile
new file mode 100644
index 000000000..e1d7f557a
--- /dev/null
+++ b/package/sysdig/Makefile
@@ -0,0 +1,43 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= sysdig
+PKG_VERSION:= d7f05fc973080f5471af596cbcc8e2b2efc9e934
+PKG_RELEASE:= 1
+PKG_DESCR:= system troubleshooting tool
+PKG_SECTION:= app/debug
+PKG_DEPENDS:= libstdcxx zlib jsoncpp luajit
+PKG_BUILDDEP:= cmake-host zlib jsoncpp luajit
+PKG_URL:= http://www.sysdig.org/
+PKG_SITES:= https://github.com/draios/sysdig.git
+
+PKG_CFLINE_SYSDIG:= select ADK_KERNEL_FTRACE@
+PKG_CFLINE_SYSDIG+= select ADK_KERNEL_GENERIC_TRACER@
+PKG_CFLINE_SYSDIG+= select ADK_KERNEL_FUNCTION_TRACER
+
+include $(ADK_TOPDIR)/mk/package.mk
+include ${ADK_TOPDIR}/mk/kernel-ver.mk
+
+$(eval $(call PKG_template,SYSDIG,sysdig,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
+CONFIG_STYLE:= cmake
+CMAKE_FLAGS:= -DUSE_BUNDLED_ZLIB=OFF -DUSE_BUNDLED_JSONCPP=OFF -DUSE_BUNDLED_LUAJIT=OFF
+XAKE_FLAGS+= KERNELDIR="$(LINUX_DIR)" ARCH=$(ADK_TARGET_ARCH) GCC_HONOUR_COPTS=s
+
+sysdig-install:
+ $(INSTALL_DIR) $(IDIR_SYSDIG)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/sysdig \
+ $(IDIR_SYSDIG)/usr/bin
+ $(INSTALL_DIR) $(IDIR_SYSDIG)/usr/share
+ $(CP) $(WRKINST)/usr/share/* \
+ $(IDIR_SYSDIG)/usr/share
+ ${INSTALL_DIR} ${IDIR_SYSDIG}/etc/modules.d/
+ echo "sysdig-probe" > ${IDIR_SYSDIG}/etc/modules.d/90-sysdig
+ ${INSTALL_DIR} ${IDIR_SYSDIG}/lib/modules/${KERNEL_VERSION}/
+ ${INSTALL_DATA} ${WRKBUILD}/driver/sysdig-probe.ko \
+ ${IDIR_SYSDIG}/lib/modules/${KERNEL_VERSION}
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk