5a4cd8b3d380740245db49035caaa79cf1c4b11a
[openwrt/staging/chunkeey.git] / package / network / utils / iftop / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iftop
11 PKG_VERSION:=1.0pre4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.ex-parrot.com/~pdw/iftop/download
16 PKG_MD5SUM:=7e6decb4958e8a4890cccac335239f24
17
18 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
19 PKG_LICENSE:=GPL-2.0
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/iftop
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap +libncurses +libpthread
27 TITLE:=display bandwith usage on an interface
28 URL:=http://www.ex-parrot.com/~pdw/iftop/
29 endef
30
31 define Package/iftop/description
32 iftop does for network usage what top(1) does for CPU usage. It
33 listens to network traffic on a named interface and displays a
34 table of current bandwidth usage by pairs of hosts. Handy for
35 answering the question 'why is our ADSL link so slow?'.
36 endef
37
38 define Package/iftop/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iftop $(1)/usr/bin/
41 endef
42
43 $(eval $(call BuildPackage,iftop))