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.

61 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=bwm-ng
  6. PKG_VERSION:=0.6
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=http://www.gropp.org/bwm-ng
  10. PKG_MD5SUM:=d3a02484fb7946371bfb4e10927cebfb
  11. PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
  12. PKG_LICENSE:=GPL2-2.0
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/bwm-ng
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+BWMNG_LIBNCURSES:libncurses
  21. TITLE:=bwm-ng
  22. URL:=http://www.gropp.org/?id=projects&sub=bwm-ng
  23. MENU:=1
  24. endef
  25. define Package/bwm-ng/description
  26. Bandwidth Monitor NG is a small and simple console-based live
  27. network and disk io bandwidth monitor.
  28. endef
  29. define Package/bwm-ng/config
  30. source "$(SOURCE)/Config.in"
  31. endef
  32. define Build/Configure
  33. $(call Build/Configure/Default, \
  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. )
  45. endef
  46. define Package/bwm-ng/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bwm-ng $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,bwm-ng))