diff options
author | Alexander Dahl <post@lespocky.de> | 2017-06-19 13:34:57 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-06-21 10:14:53 +0200 |
commit | caa39e0714730c2ae84f9aa3ee93aecee7b3173d (patch) | |
tree | bf9d541b29b8dc8e67ac9dc6c07ac07da420f8b3 /rules/iftop.make | |
parent | 2861b4436bafb387d0937b163bfb9196ab3767ec (diff) | |
download | ptxdist-caa39e0714730c2ae84f9aa3ee93aecee7b3173d.tar.gz ptxdist-caa39e0714730c2ae84f9aa3ee93aecee7b3173d.tar.xz |
iftop: new package
This adds the well known tool 'iftop' for displaying bandwidth usage on
a network interface.
Signed-off-by: Alexander Dahl <post@lespocky.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/iftop.make')
-rw-r--r-- | rules/iftop.make | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/rules/iftop.make b/rules/iftop.make new file mode 100644 index 000000000..135ef1856 --- /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 |