mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <post@lespocky.de>
Subject: [ptxdist] [PATCH] iftop: new package
Date: Mon, 19 Jun 2017 13:34:57 +0200	[thread overview]
Message-ID: <1497872097-18020-1-git-send-email-post@lespocky.de> (raw)

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

                 reply	other threads:[~2017-06-19 11:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497872097-18020-1-git-send-email-post@lespocky.de \
    --to=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox