Makefile (1330B)
1 # 2 # Copyright (C) 2007-2014 OpenWrt.org 3 # Copyright (C) 2014-2016 Baptiste Jonglez 4 # 5 # This is free software, licensed under the GNU General Public License v2. 6 # See /LICENSE for more information. 7 # 8 9 include $(TOPDIR)/rules.mk 10 11 PKG_NAME:=bmon 12 PKG_VERSION:=4.0 13 PKG_RELEASE:=1 14 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> 19 PKG_LICENSE:=MIT 20 21 include $(INCLUDE_DIR)/package.mk 22 23 define Package/bmon 24 SECTION:=net 25 CATEGORY:=Network 26 DEPENDS:=+libncursesw +libnl-core +libnl-route +confuse +terminfo 27 TITLE:=bmon is a portable bandwidth monitor 28 URL:=https://github.com/tgraf/bmon/ 29 endef 30 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. 36 endef 37 38 CONFIGURE_ARGS += \ 39 --disable-cnt-workaround \ 40 41 CONFIGURE_VARS += \ 42 ac_cv_lib_nl_nl_connect=no \ 43 44 # Needed to compile some objects 45 TARGET_CFLAGS+= -std=gnu99 46 47 define Package/bmon/install 48 $(INSTALL_DIR) $(1)/usr/sbin 49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/ 50 endef 51 52 $(eval $(call BuildPackage,bmon))