Browse Source

Merge pull request #668 from Zokormazo/bwm-ng

bwm-ng: import 0.6
lilik-openwrt-22.03
Steven Barth 10 years ago
parent
commit
4cfb0fce47
2 changed files with 98 additions and 0 deletions
  1. +35
    -0
      net/bwm-ng/Config.in
  2. +63
    -0
      net/bwm-ng/Makefile

+ 35
- 0
net/bwm-ng/Config.in View File

@ -0,0 +1,35 @@
# bwm-ng advanced configuration
menu "Configuration"
depends on PACKAGE_bwm-ng
config BWMNG_CONFIGFILE
bool "enable configfile support"
default n
config BWMNG_HTML
bool "enable html output"
default n
config BWMNG_CSV
bool "enable csv output"
default n
config BWMNG_EXTENDEDSTATS
bool "enable max, sum and avg stats"
default y
config BWMNG_LIBNCURSES
bool "enable libncurses support"
default n
config BWMNG_TIME
bool "enable accurate time calculating"
default y
config BWMNG_GETOPT_LONG
bool "enable long options"
default n
endmenu

+ 63
- 0
net/bwm-ng/Makefile View File

@ -0,0 +1,63 @@
#
# Copyright (C) 2014 OpenWrt.org
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bwm-ng
PKG_VERSION:=0.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.gropp.org/bwm-ng
PKG_MD5SUM:=d3a02484fb7946371bfb4e10927cebfb
PKG_MAINTAINER:=Julen Landa Alustiza <julen@zokormazo.info>
PKG_LICENSE:=GPL2-2.0
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/bwm-ng
SECTION:=net
CATEGORY:=Network
DEPENDS:=+BWMNG_LIBNCURSES:libncurses
TITLE:=bwm-ng
URL:=http://www.gropp.org/?id=projects&sub=bwm-ng
MENU:=1
endef
define Package/bwm-ng/description
Bandwidth Monitor NG is a small and simple console-based live
network and disk io bandwidth monitor.
endef
define Package/bwm-ng/config
source "$(SOURCE)/Config.in"
endef
define Build/Configure
$(call Build/Configure/Default, \
$(if $(CONFIG_BWMNG_CONFIGFILE),--enable,--disable)-configfile \
$(if $(CONFIG_BWMNG_HTML),--enable,--disable)-html \
$(if $(CONFIG_BWMNG_CSV),--enable,--disable)-csv \
$(if $(CONFIG_BWMNG_EXTENDEDSTATS),--enable,--disable)-extendedstats \
$(if $(CONFIG_BWMNG_LIBNCURSES),--with,--without)-ncurses \
$(if $(CONFIG_BWMNG_TIME),--with,--without)-time \
$(if $(CONFIG_BWMNG_GETOPT_LONG),--with,--without)-getopt_long \
--with-strip \
--with-procnetdev \
--with-diskstats \
)
endef
define Package/bwm-ng/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bwm-ng $(1)/usr/bin/
endef
$(eval $(call BuildPackage,bwm-ng))

Loading…
Cancel
Save