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.

52 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2014 OpenWrt.org
  3. # Copyright (C) 2014-2016 Baptiste Jonglez
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=bmon
  10. PKG_VERSION:=4.0
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/tgraf/bmon/releases/download/v$(PKG_VERSION)/
  14. PKG_MD5SUM:=02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a
  15. PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
  16. PKG_LICENSE:=MIT
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/bmon
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+libncursesw +libnl-core +libnl-route +confuse +terminfo
  22. TITLE:=bmon is a portable bandwidth monitor
  23. URL:=https://github.com/tgraf/bmon/
  24. endef
  25. define Package/bmon/description
  26. bmon is a portable bandwidth monitor
  27. and rate estimator running on various
  28. operating systems. It supports various
  29. input methods for different architectures.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --disable-cnt-workaround \
  33. CONFIGURE_VARS += \
  34. ac_cv_lib_nl_nl_connect=no \
  35. # Needed to compile some objects
  36. TARGET_CFLAGS+= -std=gnu99
  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))