Skip to contentSkip to conversation

Add iotop-c package

PATCH New Boian Bonev via buildroot 1 participant 1 message Feb 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add iotop-c package

Reimplementation of iotop in C

---
 package/Config.in            |  1 +
 package/iotop-c/Config.in    |  7 +++++++
 package/iotop-c/iotop-c.hash |  3 +++
 package/iotop-c/iotop-c.mk   | 24 ++++++++++++++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/iotop-c/Config.in
 create mode 100644 package/iotop-c/iotop-c.hash
 create mode 100644 package/iotop-c/iotop-c.mk
package/Config.in +1 -0
index e9c789cff2..4a323d0908 100644
@@ -2840,6 +2840,7 @@ menu "System tools"
 	source "package/ibm-sw-tpm2/Config.in"
 	source "package/initscripts/Config.in"
 	source "package/iotop/Config.in"
+	source "package/iotop-c/Config.in"
 	source "package/iprutils/Config.in"
 	source "package/irqbalance/Config.in"
 	source "package/jailhouse/Config.in"
package/iotop-c/Config.in new file +7 -0
new file mode 100644
index 0000000000..f5e95f5098
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_IOTOP_C
+	bool "iotop-c"
+	select BR2_PACKAGE_NCURSES
+	help
+	  iotop does for I/O usage what top does for CPU usage.
+
+	  https://github.com/Tomas-M/iotop
package/iotop-c/iotop-c.hash new file +3 -0
new file mode 100644
index 0000000000..5f3b14c272
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  45d90cea6e9b726739e59a63bc2d09296d3539666fb4ca6c30229998e2a113a9  iotop-1.27.tar.xz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/iotop-c/iotop-c.mk new file +24 -0
new file mode 100644
index 0000000000..e8ed5163e6
@@ -0,0 +1,24 @@
+################################################################################
+#
+# iotop-c
+#
+################################################################################
+
+IOTOP_C_VERSION = 1.27
+IOTOP_C_SOURCE = iotop-$(IOTOP_C_VERSION).tar.xz
+IOTOP_C_SITE = https://github.com/Tomas-M/iotop/releases/download/v$(IOTOP_C_VERSION)
+IOTOP_C_LICENSE = GPL-2.0+
+IOTOP_C_LICENSE_FILES = COPYING
+IOTOP_C_DEPENDENCIES = ncurses
+
+define IOTOP_C_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		$(TARGET_CONFIGURE_OPTS) \
+		NCLD=-lncurses
+endef
+
+define IOTOP_C_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
+endef
+
+$(eval $(generic-package))
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot