2 # Copyright (C) 2007-2014 OpenWrt.org
3 # Copyright (C) 2014-2016 Baptiste Jonglez
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://github.com
/tgraf
/bmon
/releases
/download
/v
$(PKG_VERSION
)/
17 PKG_MD5SUM
:=02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a
18 PKG_MAINTAINER
:=Baptiste Jonglez
<openwrt-pkg@bitsofnetworks.org
>
21 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+libncursesw
+libnl-core
+libnl-route
+confuse
+terminfo
27 TITLE
:=bmon is a portable bandwidth monitor
28 URL
:=https
://github.com
/tgraf
/bmon
/
31 define Package
/bmon
/description
32 bmon is a portable bandwidth monitor
33 and rate estimator running on various
34 operating systems. It supports various
35 input methods for different architectures.
39 --disable-cnt-workaround \
42 ac_cv_lib_nl_nl_connect
=no \
44 # Needed to compile some objects
45 TARGET_CFLAGS
+= -std
=gnu99
47 define Package
/bmon
/install
48 $(INSTALL_DIR
) $(1)/usr
/sbin
49 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/bmon
$(1)/usr
/sbin
/
52 $(eval
$(call BuildPackage
,bmon
))