Fix procps free and top installation
[openwrt/svn-archive/archive.git] / net / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iftop
12 PKG_VERSION:=0.17
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.ex-parrot.com/~pdw/iftop/download
17 PKG_MD5SUM:=062bc8fb3856580319857326e0b8752d
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iftop
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpcap +libncurses +libpthread
29 TITLE:=display bandwith usage on an interface
30 DESCRIPTION:=\
31 iftop does for network usage what top(1) does for CPU usage. It \\\
32 listens to network traffic on a named interface and displays a \\\
33 table of current bandwidth usage by pairs of hosts. Handy for \\\
34 answering the question 'why is our ADSL link so slow?'.
35 URL:=http://www.ex-parrot.com/~pdw/iftop/
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Package/iftop/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iftop $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,iftop))