This adds the well known tool 'iftop' for displaying bandwidth usage on a network interface.
Signed-off-by: Alexander Dahl <[email protected]> --- 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 <[email protected]> +# +# 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 <[email protected]>") + @$(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 [email protected]
