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.

60 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=bwm-ng
  6. PKG_VERSION:=0.6.3
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=http://www.gropp.org/bwm-ng
  10. PKG_HASH:=c1a552b6ff48ea3e4e10110a7c188861abc4750befc67c6caaba8eb3ecf67f46
  11. PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
  12. PKG_LICENSE:=GPL2-2.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/bwm-ng
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+BWMNG_LIBNCURSES:libncurses
  22. TITLE:=bwm-ng
  23. URL:=http://www.gropp.org/?id=projects&sub=bwm-ng
  24. MENU:=1
  25. endef
  26. define Package/bwm-ng/description
  27. Bandwidth Monitor NG is a small and simple console-based live
  28. network and disk io bandwidth monitor.
  29. endef
  30. define Package/bwm-ng/config
  31. source "$(SOURCE)/Config.in"
  32. endef
  33. CONFIGURE_ARGS += \
  34. $(if $(CONFIG_BWMNG_CONFIGFILE),--enable,--disable)-configfile \
  35. $(if $(CONFIG_BWMNG_HTML),--enable,--disable)-html \
  36. $(if $(CONFIG_BWMNG_CSV),--enable,--disable)-csv \
  37. $(if $(CONFIG_BWMNG_EXTENDEDSTATS),--enable,--disable)-extendedstats \
  38. $(if $(CONFIG_BWMNG_LIBNCURSES),--with,--without)-ncurses \
  39. $(if $(CONFIG_BWMNG_TIME),--with,--without)-time \
  40. $(if $(CONFIG_BWMNG_GETOPT_LONG),--with,--without)-getopt_long \
  41. --with-strip \
  42. --with-procnetdev \
  43. --with-diskstats
  44. define Package/bwm-ng/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bwm-ng $(1)/usr/bin/
  47. endef
  48. $(eval $(call BuildPackage,bwm-ng))