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.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2014 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:=bmon
  9. PKG_VERSION:=3.8
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/tgraf/bmon/releases/download/v$(PKG_VERSION)/
  13. PKG_MD5SUM:=162ce0d108ff32cbf44b874c5a7e8147
  14. PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
  15. PKG_LICENSE:=MIT
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/bmon
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses +libnl-core +libnl-route +confuse +terminfo
  21. TITLE:=bmon is a portable bandwidth monitor
  22. URL:=https://github.com/tgraf/bmon/
  23. endef
  24. define Package/bmon/description
  25. bmon is a portable bandwidth monitor
  26. and rate estimator running on various
  27. operating systems. It supports various
  28. input methods for different architectures.
  29. endef
  30. CONFIGURE_ARGS += \
  31. --disable-cnt-workaround \
  32. CONFIGURE_VARS += \
  33. ac_cv_lib_nl_nl_connect=no \
  34. # Needed to compile some objects
  35. TARGET_CFLAGS+= -std=gnu99
  36. define Package/bmon/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,bmon))