aboutsummaryrefslogtreecommitdiff
path: root/net/bmon/Makefile
blob: dfe4843140b0c6c2aced44f08e6d23de4dd210a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Copyright (C) 2007-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=bmon
PKG_VERSION:=3.8
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/tgraf/bmon/releases/download/v$(PKG_VERSION)/
PKG_MD5SUM:=162ce0d108ff32cbf44b874c5a7e8147
PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
PKG_LICENSE:=MIT

include $(INCLUDE_DIR)/package.mk

define Package/bmon
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses +libnl +confuse
  TITLE:=bmon is a portable bandwidth monitor
  URL:=https://github.com/tgraf/bmon/
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 \

define Package/bmon/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,bmon))