mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] iftop: new package
@ 2017-06-19 11:34 Alexander Dahl
  0 siblings, 0 replies; only message in thread
From: Alexander Dahl @ 2017-06-19 11:34 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

This adds the well known tool 'iftop' for displaying bandwidth usage on
a network interface.

Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 rules/iftop.in   | 15 +++++++++++++++
 rules/iftop.make | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 rules/iftop.in
 create mode 100644 rules/iftop.make

diff --git a/rules/iftop.in b/rules/iftop.in
new file mode 100644
index 0000000..fc08378
--- /dev/null
+++ b/rules/iftop.in
@@ -0,0 +1,15 @@
+## SECTION=networking
+
+config IFTOP
+	tristate
+	prompt "iftop"
+	select LIBPCAP
+	select NCURSES
+	help
+	  iftop does for network usage what top(1) does for CPU usage. It
+	  listens to network traffic on a named interface and displays a
+	  table of current bandwidth usage by pairs of hosts.
+	  
+	  http://www.ex-parrot.com/pdw/iftop/
+
+# vim: ft=kconfig noet tw=72
diff --git a/rules/iftop.make b/rules/iftop.make
new file mode 100644
index 0000000..135ef18
--- /dev/null
+++ b/rules/iftop.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Alexander Dahl <post@lespocky.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_IFTOP) += iftop
+
+#
+# Paths and names
+#
+IFTOP_VERSION	:= 1.0pre4
+IFTOP_MD5	:= 7e6decb4958e8a4890cccac335239f24
+IFTOP		:= iftop-$(IFTOP_VERSION)
+IFTOP_SUFFIX	:= tar.gz
+IFTOP_URL	:= http://www.ex-parrot.com/pdw/iftop/download/$(IFTOP).$(IFTOP_SUFFIX)
+IFTOP_SOURCE	:= $(SRCDIR)/$(IFTOP).$(IFTOP_SUFFIX)
+IFTOP_DIR	:= $(BUILDDIR)/$(IFTOP)
+IFTOP_LICENSE	:= GPL-2.0+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+IFTOP_CONF_TOOL	:= autoconf
+IFTOP_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--with-resolver=netdb \
+	--with-libpcap
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/iftop.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, iftop)
+	@$(call install_fixup, iftop,PRIORITY,optional)
+	@$(call install_fixup, iftop,SECTION,base)
+	@$(call install_fixup, iftop,AUTHOR,"Alexander Dahl <post@lespocky.de>")
+	@$(call install_fixup, iftop,DESCRIPTION,missing)
+
+	@$(call install_copy, iftop, 0, 0, 0755, -, /usr/sbin/iftop)
+
+	@$(call install_finish, iftop)
+
+	@$(call touch)
+
+# vim: ft=make noet
-- 
2.1.4


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-19 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-19 11:34 [ptxdist] [PATCH] iftop: new package Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox