From patchwork Thu Sep 5 16:02:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 1158529 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sdOodt8e"; 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 46PQSs20s9z9s4Y for ; Fri, 6 Sep 2019 02:02:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1163A2048A; Thu, 5 Sep 2019 16:02:49 +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 xnKe52Af4Mos; Thu, 5 Sep 2019 16:02:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 35A2F20448; Thu, 5 Sep 2019 16:02:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9D8861BF36D for ; Thu, 5 Sep 2019 16:02:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9A52C878D0 for ; Thu, 5 Sep 2019 16:02:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ZYss1LCHPY7 for ; Thu, 5 Sep 2019 16:02:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 853B4878A0 for ; Thu, 5 Sep 2019 16:02:44 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id q19so3440023wmc.3 for ; Thu, 05 Sep 2019 09:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T7K2X78b6iOkNAtTv+Lwukdn9orrb+gh4kkIGvAepxs=; b=sdOodt8eYMappQj978zqQVwceZN85TvrVtM9siMc26jQ7dfs8Gh+m2zCYROSpKfgfp PXT0A/BFSWhXrqZaNVRiU7++bM+TDmTRmjK1cyo1xmZzyGS4F4nvA/3RP2wL/MN995Zr EiRE8Dgwvhs0OM67Y7a6baepRNH3Yin1izCpnxtfD2z9G/4KRrEBLc8eySc+OdEXmL52 OPwA7g3saHtEzrTfQJQHQuY6ebhxMTqfG15o2JAOX9FeF3XBYJ3N4Ikuhro9cuhjJB4f VVOv5qc7yOs4KFfNJ51yvROfplRSs0mahiaKRJI4W3MEcm+DV1P1GFSoTZ1VOrByPE2N 2UTg== 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:mime-version :content-transfer-encoding; bh=T7K2X78b6iOkNAtTv+Lwukdn9orrb+gh4kkIGvAepxs=; b=ULDrgMvlfrbgaCEnP3zLIt658jLGhT7y1wXSoTXeI0ZEO79zW3tzyOxLQ6OhsIPIZ3 ppVJFNyS1gvzBv/aPaZV2k6U+bzEWNigW9nTGSwNUZW4PKw2cH+lYx3tJ1f33F3JoOmN zjuZJdnqDmrNKbX7iuxAfMQMlWLkUS9LTSbenUqpO0P1f5GDmso3I6DR6RwucJ6QJZhU LwW9iezjhLHMCT8q09sjyL7ocp9YD9QDtrYhmYq4BbNb99ZFo40vfAZQewCj0Dk4J7Xu 76DiaRbb1NXNqZfSTm1C38LAiohuwaND30WYB9iDRb4do1ubZuL+0ucRfinPvlEwaQjC hOzg== X-Gm-Message-State: APjAAAX+6Bm4JVkiWXVmJWsnvgoi5JQc+nTgDyG/pugkjRi6zJqdcvOi nSlD0YhhrEI83x9KapiG7gxbyzPL X-Google-Smtp-Source: APXvYqyYWi2dYXbRgtoaw4spaxAkwmH8E+oQu2dcwmDCyIbMOsAJvINL6x+bVTg4eCmoFUHglo3/vw== X-Received: by 2002:a1c:1d85:: with SMTP id d127mr3829333wmd.14.1567699362538; Thu, 05 Sep 2019 09:02:42 -0700 (PDT) Received: from localhost.localdomain (254.7.19.109.rev.sfr.net. [109.19.7.254]) by smtp.gmail.com with ESMTPSA id f23sm3352431wmf.1.2019.09.05.09.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 09:02:41 -0700 (PDT) From: Francois Perrad X-Google-Original-From: Francois Perrad To: buildroot@busybox.net Date: Thu, 5 Sep 2019 18:02:29 +0200 Message-Id: <20190905160229.29645-1-francois.perrad@gadz.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] ifstat: new package 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Francois Perrad --- DEVELOPERS | 1 + package/Config.in | 1 + .../0001-install-without-strip-flag.patch | 26 +++++++++++++++++++ package/ifstat/Config.in | 9 +++++++ package/ifstat/ifstat.hash | 3 +++ package/ifstat/ifstat.mk | 21 +++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 package/ifstat/0001-install-without-strip-flag.patch create mode 100644 package/ifstat/Config.in create mode 100644 package/ifstat/ifstat.hash create mode 100644 package/ifstat/ifstat.mk diff --git a/DEVELOPERS b/DEVELOPERS index 3df21a78e..e452a1cbb 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -881,6 +881,7 @@ F: package/copas/ F: package/coxpcall/ F: package/dado/ F: package/ficl/ +F: package/ifstat/ F: package/libtomcrypt/ F: package/libtommath/ F: package/libwpe/ diff --git a/package/Config.in b/package/Config.in index 710ed12be..42dccf068 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1927,6 +1927,7 @@ menu "Networking applications" source "package/ifenslave/Config.in" source "package/ifmetric/Config.in" source "package/ifplugd/Config.in" + source "package/ifstat/Config.in" source "package/iftop/Config.in" source "package/ifupdown/Config.in" source "package/ifupdown-scripts/Config.in" diff --git a/package/ifstat/0001-install-without-strip-flag.patch b/package/ifstat/0001-install-without-strip-flag.patch new file mode 100644 index 000000000..217681f0a --- /dev/null +++ b/package/ifstat/0001-install-without-strip-flag.patch @@ -0,0 +1,26 @@ +From 63533db706244d8b43e242349fcf32866ea10ab6 Mon Sep 17 00:00:00 2001 +From: Francois Perrad +Date: Thu, 5 Sep 2019 17:11:53 +0200 +Subject: [PATCH] install without strip flag + +Signed-off-by: Francois Perrad +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 486fe3e..5d17383 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -66,7 +66,7 @@ install: install-$(TARGET) install-@LIBTARGET@ + + install-$(TARGET): $(TARGET) + $(INSTALL) -d -m 755 $(bindir) +- $(INSTALL) -s -m 755 $(TARGET) $(bindir)/$(TARGET) ++ $(INSTALL) -m 755 $(TARGET) $(bindir)/$(TARGET) + $(INSTALL) -d -m 755 $(mandir)/man1 + $(INSTALL) -m 644 ifstat.1 $(mandir)/man1/ifstat.1 + +-- +2.20.1 + diff --git a/package/ifstat/Config.in b/package/ifstat/Config.in new file mode 100644 index 000000000..1e9671901 --- /dev/null +++ b/package/ifstat/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_IFSTAT + bool "ifstat" + help + 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. + + http://gael.roualland.free.fr/ifstat/ diff --git a/package/ifstat/ifstat.hash b/package/ifstat/ifstat.hash new file mode 100644 index 000000000..dcc2ced31 --- /dev/null +++ b/package/ifstat/ifstat.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 8599063b7c398f9cfef7a9ec699659b25b1c14d2bc0f535aed05ce32b7d9f507 ifstat-1.1.tar.gz +sha256 91df39d1816bfb17a4dda2d3d2c83b1f6f2d38d53e53e41e8f97ad5ac46a0cad COPYING diff --git a/package/ifstat/ifstat.mk b/package/ifstat/ifstat.mk new file mode 100644 index 000000000..9a911739c --- /dev/null +++ b/package/ifstat/ifstat.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# ifstat +# +################################################################################ + +IFSTAT_VERSION = 1.1 +IFSTAT_SITE = http://gael.roualland.free.fr/ifstat +IFSTAT_LICENSE = GPL +IFSTAT_LICENSE_FILES = COPYING + +IFSTAT_CONF_OPTS = --prefix=$(TARGET_DIR)/usr --exec_prefix=$(TARGET_DIR)/usr + +ifeq ($(BR2_PACKAGE_NETSNMP),y) +IFSTAT_DEPENDENCIES += netsnmp +IFSTAT_CONF_OPTS += --with-snmp +else +IFSTAT_CONF_OPTS += --without-snmp +endif + +$(eval $(autotools-package))