You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
  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:=ifstat
  9. PKG_VERSION:=1.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/
  13. PKG_HASH:=8599063b7c398f9cfef7a9ec699659b25b1c14d2bc0f535aed05ce32b7d9f507
  14. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ifstat
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=InterFace STATistics Monitoring
  22. URL:=http://gael.roualland.free.fr/ifstat/
  23. DEPENDS:=+IFSTAT_SNMP:libnetsnmp
  24. endef
  25. define Package/ifstat/description
  26. ifstat is a tool to report network interfaces bandwidth just like
  27. vmstat/iostat do for other system counters. It can monitor local
  28. interfaces by polling the kernel counters, or remote hosts
  29. interfaces using SNMP.
  30. endef
  31. define Package/ifstat/config
  32. source "$(SOURCE)/Config.in"
  33. endef
  34. CONFIGURE_ARGS += --with$(if $(CONFIG_IFSTAT_SNMP),,out)-snmp
  35. define Package/ifstat/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/
  38. endef
  39. $(eval $(call BuildPackage,ifstat))