From patchwork Mon Jan 21 19:24:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bogdan Radulescu X-Patchwork-Id: 214238 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id D59392C0082 for ; Tue, 22 Jan 2013 04:24:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 306B2A017E; Mon, 21 Jan 2013 17:24:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4aSphTzGL3ZF; Mon, 21 Jan 2013 17:24:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 36615A0070; Mon, 21 Jan 2013 17:24:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4739B8F74B for ; Mon, 21 Jan 2013 17:24:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4AA4D8B107 for ; Mon, 21 Jan 2013 17:24:51 +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 SuoAddgJUfSD for ; Mon, 21 Jan 2013 17:24:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id D26298B08B for ; Mon, 21 Jan 2013 17:24:49 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id d13so2512233eaa.14 for ; Mon, 21 Jan 2013 09:24:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Y5Znf6w88kJa6wGs7S7rKgaCj6aC2/m8biapgCHOGeg=; b=EPgfvhGK+ep73rj5UapHHbFHTwk6iCXjr3zcfYKkEREjitAwJ5E/woktzQt1ek6K2h XCq5E31UFjv0PKXQQOzf/VLoMdl4jSBnU7I8XPQ4n0XzsSyz5//hYoFCPv1I4Wb+u6Hh bIVyZpgg1yb5sVv+m2+EbDVGcULPAX2yApT3cHbbNcg1is9mhXg5n4UBjOCf7A0grted GwVg9WkPnDSTuOuAKAD7ZudIsHy6Z31SymrI3uc0G5yC0JQdC9xGrt5aan8DeIUNymj0 n1McVSvsWMDqysT5ES0gt3TwX8jSL9DfS9aBwlxqEzxDOpeqnWumSPXZJIk45q6ahy6g yyQg== X-Received: by 10.14.176.66 with SMTP id a42mr62545606eem.34.1358789087995; Mon, 21 Jan 2013 09:24:47 -0800 (PST) Received: from nimblex.nimblex.org ([86.126.13.132]) by mx.google.com with ESMTPS id l3sm23163910een.14.2013.01.21.09.24.46 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 09:24:47 -0800 (PST) From: Bogdan Radulescu To: buildroot@busybox.net Date: Mon, 21 Jan 2013 19:24:48 +0000 Message-Id: <1358796288-17403-1-git-send-email-bogdan@nimblex.net> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <87622rd1ex.fsf@dell.be.48ers.dk> References: <87622rd1ex.fsf@dell.be.48ers.dk> X-Gm-Message-State: ALoCoQnQcLCtTbFK9SP6FEzrd7iBZo/MpwgEKuD1jUAi5r1wBDmNPUzV7kOV1AsW9xCGbXNUFlB/ Cc: thomas.petazzoni@free-electrons.com, Bogdan Radulescu Subject: [Buildroot] [PATCH] iftop: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net I adjusted my patch and yes, the correct way is very nice :) I was at the mountains and I didn't have my computer to send the adjustment earlier. Thanks for you advice! Signed-off-by: Bogdan Radulescu --- package/Config.in | 1 + package/iftop/Config.in | 16 ++++++++++++++++ package/iftop/iftop.mk | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package/iftop/Config.in create mode 100644 package/iftop/iftop.mk diff --git a/package/Config.in b/package/Config.in index ba03b3c..9e2dd8b 100644 --- a/package/Config.in +++ b/package/Config.in @@ -772,6 +772,7 @@ endif source "package/bwm-ng/Config.in" source "package/cpuload/Config.in" source "package/htop/Config.in" +source "package/iftop/Config.in" source "package/keyutils/Config.in" source "package/kmod/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS diff --git a/package/iftop/Config.in b/package/iftop/Config.in new file mode 100644 index 0000000..90e36b8 --- /dev/null +++ b/package/iftop/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_IFTOP + bool "iftop" + select BR2_PACKAGE_NCURSES + select BR2_PACKAGE_LIBPCAP + select BR2_INET_IPV6 + + help + iftop does for network usage what top(1) does for CPU usage. + It listens to network traffic on a named interface and displays + a table of current bandwidth usage by pairs of hosts. Handy for + answering the question "why is our ADSL link so slow?". + + http://www.ex-parrot.com/pdw/iftop/ + +comment "iftop requires IPv6 support in toolchain" + depends on !BR2_INET_IPV6 diff --git a/package/iftop/iftop.mk b/package/iftop/iftop.mk new file mode 100644 index 0000000..48c9480 --- /dev/null +++ b/package/iftop/iftop.mk @@ -0,0 +1,15 @@ +############################################################# +# +# iftop +# +############################################################# + +IFTOP_VERSION = 1.0pre2 +IFTOP_SITE = http://www.ex-parrot.com/pdw/iftop/download/ + +IFTOP_DEPENDENCIES = ncurses libpcap + +IFTOP_LICENSE = GPL +IFTOP_LICENSE_FILES = COPYING + +$(eval $(autotools-package))