Merge pull request #2809 from dibdot/adblock
[feed/packages.git] / net / bmon / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bmon
11 PKG_VERSION:=3.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/tgraf/bmon/releases/download/v$(PKG_VERSION)/
16 PKG_MD5SUM:=162ce0d108ff32cbf44b874c5a7e8147
17 PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
18 PKG_LICENSE:=MIT
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bmon
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libncursesw +libnl-core +libnl-route +confuse +terminfo
26 TITLE:=bmon is a portable bandwidth monitor
27 URL:=https://github.com/tgraf/bmon/
28 endef
29
30 define Package/bmon/description
31 bmon is a portable bandwidth monitor
32 and rate estimator running on various
33 operating systems. It supports various
34 input methods for different architectures.
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-cnt-workaround \
39
40 CONFIGURE_VARS += \
41 ac_cv_lib_nl_nl_connect=no \
42
43 # Needed to compile some objects
44 TARGET_CFLAGS+= -std=gnu99
45
46 define Package/bmon/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,bmon))