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.2 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.5
  10. PKG_RELEASE:=1
  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:=b7d0d055727f2cf1e452f26dfbf6a825
  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:=+libncurses +libnl +confuse
  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. --disable-dbi \
  33. --disable-rrd \
  34. --disable-asound \
  35. CONFIGURE_VARS += \
  36. ac_cv_lib_nl_nl_connect=no \
  37. define Package/bmon/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,bmon))