Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=iftop
  9. PKG_VERSION:=1.0pre4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.ex-parrot.com/~pdw/iftop/download
  13. PKG_MD5SUM:=7e6decb4958e8a4890cccac335239f24
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
  15. PKG_LICENSE:=GPL-2.0
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/iftop
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+libpcap +libncurses +libpthread
  21. TITLE:=display bandwith usage on an interface
  22. URL:=http://www.ex-parrot.com/~pdw/iftop/
  23. endef
  24. define Package/iftop/description
  25. iftop does for network usage what top(1) does for CPU usage. It
  26. listens to network traffic on a named interface and displays a
  27. table of current bandwidth usage by pairs of hosts. Handy for
  28. answering the question 'why is our ADSL link so slow?'.
  29. endef
  30. define Package/iftop/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/iftop $(1)/usr/bin/
  33. endef
  34. $(eval $(call BuildPackage,iftop))