2014-10-28 23:12:43 +00:00
|
|
|
#
|
2014-10-29 01:43:03 +00:00
|
|
|
# Copyright (C) 2007-2014 OpenWrt.org
|
2016-12-18 17:33:05 +00:00
|
|
|
# Copyright (C) 2014-2016 Baptiste Jonglez
|
2014-10-28 23:12:43 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bmon
|
2016-12-18 17:33:05 +00:00
|
|
|
PKG_VERSION:=4.0
|
2016-09-26 14:51:35 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-10-28 23:12:43 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2014-10-29 01:43:03 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/tgraf/bmon/releases/download/v$(PKG_VERSION)/
|
2017-08-28 04:28:09 +00:00
|
|
|
PKG_HASH:=02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a
|
2014-10-29 01:43:03 +00:00
|
|
|
PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
|
|
|
|
PKG_LICENSE:=MIT
|
2014-10-28 23:12:43 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bmon
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2016-05-11 10:36:32 +00:00
|
|
|
DEPENDS:=+libncursesw +libnl-core +libnl-route +confuse +terminfo
|
2014-10-28 23:12:43 +00:00
|
|
|
TITLE:=bmon is a portable bandwidth monitor
|
2014-10-29 01:43:03 +00:00
|
|
|
URL:=https://github.com/tgraf/bmon/
|
2014-10-28 23:12:43 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bmon/description
|
|
|
|
bmon is a portable bandwidth monitor
|
|
|
|
and rate estimator running on various
|
|
|
|
operating systems. It supports various
|
|
|
|
input methods for different architectures.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-cnt-workaround \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_lib_nl_nl_connect=no \
|
|
|
|
|
2015-09-03 15:09:58 +00:00
|
|
|
# Needed to compile some objects
|
|
|
|
TARGET_CFLAGS+= -std=gnu99
|
|
|
|
|
2014-10-28 23:12:43 +00:00
|
|
|
define Package/bmon/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bmon))
|