Extracted from: http://deb.debian.org/debian/pool/main/i/ifstat/ifstat_1.1-8.1.diff.gz Note that I also created a new git repository with these fixes: https://github.com/matttbe/ifstat/ The original author of these modification is: Goswin von Brederlow <goswin-v-b@web.de> ChangeLog: * snmp.c: fix 2 pointer targets differ in signedness warnings * Adding upport for 64bit /proc/net/dev counters. * Clean up compiler warnings. More modifications are available in the patch from the Debian project but mostly related to the "debian" dir, man page and debug mode. Here I only took the modifications related to the .c and .h files. The most important fix is related to the support for 64bit counters in /proc/net/dev instead of displaying 0 after a while. Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ifstat
|
|
PKG_VERSION:=1.1
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://gael.roualland.free.fr/ifstat/
|
|
PKG_HASH:=8599063b7c398f9cfef7a9ec699659b25b1c14d2bc0f535aed05ce32b7d9f507
|
|
|
|
PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ifstat
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=InterFace STATistics Monitoring
|
|
URL:=http://gael.roualland.free.fr/ifstat/
|
|
DEPENDS:=+IFSTAT_SNMP:libnetsnmp
|
|
endef
|
|
|
|
define Package/ifstat/description
|
|
ifstat is a tool to report network interfaces bandwidth just like
|
|
vmstat/iostat do for other system counters. It can monitor local
|
|
interfaces by polling the kernel counters, or remote hosts
|
|
interfaces using SNMP.
|
|
endef
|
|
|
|
define Package/ifstat/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
CONFIGURE_ARGS += --with$(if $(CONFIG_IFSTAT_SNMP),,out)-snmp
|
|
|
|
define Package/ifstat/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifstat $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ifstat))
|