Skip to contentSkip to conversation

package/sysdig: New package

PATCH Superseded Angelo Compagnucci 2 participants 2 messages Mar 16, 2015 – Mar 17, 2015

v1 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/sysdig: New package

Sysdig is open source, system-level exploration:
capture system state and activity from a running Linux instance, then save, filter and analyze.

---
 package/Config.in        |  1 +
 package/sysdig/Config.in | 14 ++++++++++++++
 package/sysdig/sysdig.mk | 22 ++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/sysdig/Config.in
 create mode 100644 package/sysdig/sysdig.mk
package/Config.in +1 -0
index e221deb..019d40b 100644
@@ -94,6 +94,7 @@ endif
 	source "package/strace/Config.in"
 	source "package/stress/Config.in"
 	source "package/sysprof/Config.in"
+	source "package/sysdig/Config.in"
 	source "package/tinymembench/Config.in"
 	source "package/trace-cmd/Config.in"
 	source "package/trinity/Config.in"
package/sysdig/Config.in new file +14 -0
new file mode 100644
index 0000000..ff873a8
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_SYSDIG
+	bool "sysdig"
+	depends on BR2_PACKAGE_ZLIB
+	depends on BR2_PACKAGE_LUAJIT
+	depends on BR2_PACKAGE_LIBJSON
+	depends on BR2_LINUX_KERNEL
+	help
+	  Sysdig is open source, system-level exploration:
+	  capture system state and activity from a running Linux instance,
+	  then save, filter and analyze.
+	  Think of it as strace + tcpdump + lsof + awesome sauce.
+	  With a little Lua cherry on top.
+
+	  http://sysdig.org
package/sysdig/sysdig.mk new file +22 -0
new file mode 100644
index 0000000..62b9344
@@ -0,0 +1,22 @@
+#############################################################
+#
+# sysdig
+#
+#############################################################
+
+SYSDIG_VERSION = 0.1.98
+SYSDIG_SITE = $(call github,draios,sysdig,$(SYSDIG_VERSION))
+SYSDIG_LICENSE = GPLv2
+SYSDIG_LICENSE_FILES = COPYING
+SYSDIG_CONF_OPTS = -DUSE_BUNDLED_LUAJIT=OFF -DUSE_BUNDLED_ZLIB=OFF
+SYSDIG_DEPENDENCIES += zlib luajit libjson linux
+SYSDIG_SUPPORTS_IN_SOURCE_BUILD = NO
+
+define SYSDIG_INSTALL_DRIVER
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules
+	$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) M=$(@D)/driver modules_install
+endef
+
+SYSDIG_POST_INSTALL_TARGET_HOOKS += SYSDIG_INSTALL_DRIVER
+
+$(eval $(cmake-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 package/sysdig: New package

Hi Angelo,

package/sysdig/Config.in line 5

Quoted 11 lines · Angelo Compagnucci
package/sysdig/Config.in new file +5 -0
new file mode 100644
index 0000000..ff873a8
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_SYSDIG
+	bool "sysdig"
+	depends on BR2_PACKAGE_ZLIB
+	depends on BR2_PACKAGE_LUAJIT
+	depends on BR2_PACKAGE_LIBJSON

We generally 'select' packages that are mandatory dependencies, and copy their dependencies here. See
http://nightly.buildroot.org/manual.html#depends-on-vs-select.

package/sysdig/Config.in line 6

Quoted 1 line
package/sysdig/Config.in new file +1 -0
+	depends on BR2_LINUX_KERNEL

This is OK, though. But please also add a comment as described in
http://nightly.buildroot.org/manual.html#_dependencies_on_a_linux_kernel_built_by_buildroot.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -