Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=bwm-ng
  6. PKG_VERSION:=0.6.1
  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:=ef0c7669508e95f56250ad4f8db98b7f
  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))