1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00
openwrt-packages/net/bmon/Makefile
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00

53 lines
1.3 KiB
Makefile

#
# Copyright (C) 2007-2014 OpenWrt.org
# Copyright (C) 2014-2016 Baptiste Jonglez
#
# 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:=4.0
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_HASH:=02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a
PKG_MAINTAINER:=Baptiste Jonglez <openwrt-pkg@bitsofnetworks.org>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/bmon
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libncursesw +libnl-core +libnl-route +confuse +terminfo
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 \
# Needed to compile some objects
TARGET_CFLAGS+= -std=gnu99
define Package/bmon/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bmon $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,bmon))