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.

63 lines
1.6 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. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  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. define Build/Configure
  34. $(call Build/Configure/Default, \
  35. $(if $(CONFIG_BWMNG_CONFIGFILE),--enable,--disable)-configfile \
  36. $(if $(CONFIG_BWMNG_HTML),--enable,--disable)-html \
  37. $(if $(CONFIG_BWMNG_CSV),--enable,--disable)-csv \
  38. $(if $(CONFIG_BWMNG_EXTENDEDSTATS),--enable,--disable)-extendedstats \
  39. $(if $(CONFIG_BWMNG_LIBNCURSES),--with,--without)-ncurses \
  40. $(if $(CONFIG_BWMNG_TIME),--with,--without)-time \
  41. $(if $(CONFIG_BWMNG_GETOPT_LONG),--with,--without)-getopt_long \
  42. --with-strip \
  43. --with-procnetdev \
  44. --with-diskstats \
  45. )
  46. endef
  47. define Package/bwm-ng/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bwm-ng $(1)/usr/bin/
  50. endef
  51. $(eval $(call BuildPackage,bwm-ng))