From patchwork Wed Aug 19 10:41:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jugurtha BELKALEM X-Patchwork-Id: 1347695 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=qBMFGHv7; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BWkqL39qCz9sTW for ; Wed, 19 Aug 2020 20:41:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CF8DB204F0; Wed, 19 Aug 2020 10:41:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iRSLtyrv9kMa; Wed, 19 Aug 2020 10:41:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E43C92048B; Wed, 19 Aug 2020 10:41:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C4E1C1BF30D for ; Wed, 19 Aug 2020 10:41:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B92FF203B2 for ; Wed, 19 Aug 2020 10:41:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sDZ2Fdt09fQV for ; Wed, 19 Aug 2020 10:41:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by silver.osuosl.org (Postfix) with ESMTPS id 5FB212038B for ; Wed, 19 Aug 2020 10:41:36 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id y3so21032238wrl.4 for ; Wed, 19 Aug 2020 03:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=UBfJ72uEcnixP9CUucuAqj91t3aIRRsGk37/kaEJkZ8=; b=qBMFGHv7Mwx4FMJOho6W/8WcDJCIl7Bi7co2lCtEXb9gTIyLIy3Dgr8uKF/DRPvmL5 WcWg6ljG4U1ZNZlMOwim1Nz0H8h931B+xklMecSPui74tu/NxUOK/pK5GGYiJIMZ0dHp S6wfDkuHmz2U9cpDhlMwPpG7nvXAydB4gpssnmd/XG44Qe+LB4Cyp0h9yosVRok77h2m gaJgRb9MPphX/BV5Yt3u0udIe9oshv20C5B3+O2L40nVMECVNwnbvhlDZIGfpFU6Du/x gM+4wUbUYx5TlrDr5D2M/5yNLRVt4UsX3YBxVjaRTj0Q3OOiO6NmrcqB84q17EuLwL7i mEpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UBfJ72uEcnixP9CUucuAqj91t3aIRRsGk37/kaEJkZ8=; b=iUunR3TIZ4kj88lvuurdQEmNVl9aT+sC9VXBooY4YJwXKhFCKmUjWM8UjeENeOOwQL 2jDISL1pkhCKk853NxPx8MLf39atjFvZabti5HIDMlM3X+SJeBLtIVXJkfaxmm9cGfJD k5RT/24xZgpi5QW5WU7SSzRJ6m5MsDSJyc78HbqlOzJ5LOiieOwjOlQilpqAZT4HXrZL v3r5MfYEtoHRpbBUkHlC4IpsxomtdTPX3uSAEJpGi2agEsO7WCpeNZPXrHXoxNX2h+tn i/3Y1hQWrossdn20AuThodh6+7ojHgp982m5kLkF+0BxtTHWdmzv24nE89BdgqfnuvIu m9aQ== X-Gm-Message-State: AOAM532JcJ4koUUQIa/PJxP5JF5V1EsdSYArKyrAf1r3xHXjBeI2l3lz Ompirl8CS4TjGllXAk6nRJVnxeXZV1mwhw== X-Google-Smtp-Source: ABdhPJwqQBfTlJ8LBG9xea+kcTM00DMkSvLgbaXSwRPKZfWuMOA51lo5Vr/eSL47f/k+eqbCOYlfpQ== X-Received: by 2002:adf:c108:: with SMTP id r8mr3620362wre.350.1597833694394; Wed, 19 Aug 2020 03:41:34 -0700 (PDT) Received: from P-NAN-SUCRE.numericable.fr (122.57.26.93.rev.sfr.net. [93.26.57.122]) by smtp.gmail.com with ESMTPSA id v67sm4905330wma.46.2020.08.19.03.41.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2020 03:41:33 -0700 (PDT) From: Jugurtha BELKALEM To: buildroot@buildroot.org Date: Wed, 19 Aug 2020 12:41:31 +0200 Message-Id: <1597833691-18154-1-git-send-email-jugurtha.belkalem@smile.fr> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/1] package/iptraf-ng: bump to version 1.2.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jugurtha BELKALEM , romain.naour@smile.fr MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" PTraf-ng is a console-based network monitoring program for Linux that displays information about IP traffic. It returns such information as: - Current TCP connections - UDP, ICMP, OSPF, and other types of IP packets - Packet and byte counts on TCP connections - IP, TCP, UDP, ICMP, non-IP, and other packet and byte counts - TCP/UDP counts by ports - Packet counts by packet sizes - Packet and byte counts by IP address - Interface activity - Flag statuses on TCP packets - LAN station statistics V1.2.1 fixed multiple issues in V1.1.4 like : - Introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 to capture in multigigabit speeds. - Handling mlock() failures and carry on execution (without crashing iptraf-ng). - Properly account non-IP packets. - Show dropped packet count. Signed-off-by: Jugurtha BELKALEM --- package/iptraf-ng/Config.in | 7 +++---- package/iptraf-ng/iptraf-ng.hash | 3 +-- package/iptraf-ng/iptraf-ng.mk | 19 ++++++++++++------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package/iptraf-ng/Config.in b/package/iptraf-ng/Config.in index 5c3b484..f240daf 100644 --- a/package/iptraf-ng/Config.in +++ b/package/iptraf-ng/Config.in @@ -3,11 +3,10 @@ config BR2_PACKAGE_IPTRAF_NG depends on BR2_USE_MMU # fork() select BR2_PACKAGE_NCURSES help - IPTraf-ng is a ncurses-based network monitoring utility. It - gathers data like TCP connection packet and byte counts, - interface statistics and activity indicators. + IPTraf-ng is a console-based network monitoring program for + Linux that gathers displays information about IP traffic. - https://fedorahosted.org/iptraf-ng/ + https://github.com/iptraf-ng/iptraf-ng IPTraf-ng is a fork of original IPTraf v3.0.0 (http://iptraf.seul.org). diff --git a/package/iptraf-ng/iptraf-ng.hash b/package/iptraf-ng/iptraf-ng.hash index 0a257ec..278816f 100644 --- a/package/iptraf-ng/iptraf-ng.hash +++ b/package/iptraf-ng/iptraf-ng.hash @@ -1,4 +1,3 @@ -# From https://fedorahosted.org/releases/i/p/iptraf-ng/iptraf-ng-1.1.4.tar.gz.sum -sha1 a2e51b0dd6b8c80583fc25d055850c96b3d2f544 iptraf-ng-1.1.4.tar.gz # Locally computed +sha256 9f5cef584065420dea1ba32c86126aede1fa9bd25b0f8362b0f9fd9754f00870 iptraf-ng-1.2.1.tar.gz sha256 4e49bef38f621aac4a870da4b30011c7b7abc7256b218daec1c425b08448ae1e LICENSE diff --git a/package/iptraf-ng/iptraf-ng.mk b/package/iptraf-ng/iptraf-ng.mk index ac572b9..4504ea1 100644 --- a/package/iptraf-ng/iptraf-ng.mk +++ b/package/iptraf-ng/iptraf-ng.mk @@ -4,16 +4,21 @@ # ################################################################################ -IPTRAF_NG_VERSION = 1.1.4 -IPTRAF_NG_SITE = https://fedorahosted.org/releases/i/p/iptraf-ng +IPTRAF_NG_VERSION = 1.2.1 +IPTRAF_NG_SITE = $(call github,iptraf-ng,iptraf-ng,v$(IPTRAF_NG_VERSION)) IPTRAF_NG_LICENSE = GPL-2.0+ IPTRAF_NG_LICENSE_FILES = LICENSE IPTRAF_NG_DEPENDENCIES = ncurses -IPTRAF_NG_MAKE_ENV = \ - NCURSES_LDFLAGS="-lpanel -lncurses" +define IPTRAF_NG_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef -IPTRAF_NG_CONF_ENV = \ - CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" +# HOME should be overwritten, otherwise it falls on the value of +# the cross compiling machine. +define IPTRAF_NG_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ + HOME=$(TARGET_DIR)/usr install +endef -$(eval $(autotools-package)) +$(eval $(generic-package))