From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD1B6138334 for ; Thu, 7 Feb 2019 17:50:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B61DAE0BF5; Thu, 7 Feb 2019 17:50:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E617E0BF5 for ; Thu, 7 Feb 2019 17:50:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49FFD335DB3 for ; Thu, 7 Feb 2019 17:50:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AFAF5463 for ; Thu, 7 Feb 2019 17:50:45 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1549561816.4b42f9409144423996b0240fbc49654a15788112.bkohler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/iftop/, net-analyzer/iftop/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/iftop/files/iftop-1.0_pre4-fix-MAC-formatting.patch net-analyzer/iftop/iftop-1.0_pre4-r4.ebuild X-VCS-Directories: net-analyzer/iftop/ net-analyzer/iftop/files/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 4b42f9409144423996b0240fbc49654a15788112 X-VCS-Branch: master Date: Thu, 7 Feb 2019 17:50:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f3b0b72d-59a6-4135-8af4-12ed18a7e5cf X-Archives-Hash: 8b2b6e8045ddcb428824ebfa5a4ad534 commit: 4b42f9409144423996b0240fbc49654a15788112 Author: Ben Kohler gentoo org> AuthorDate: Thu Feb 7 17:49:59 2019 +0000 Commit: Ben Kohler gentoo org> CommitDate: Thu Feb 7 17:50:16 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b42f940 net-analyzer/iftop: revbump for MAC formatting patch Closes: https://bugs.gentoo.org/661890 Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Ben Kohler gentoo.org> .../files/iftop-1.0_pre4-fix-MAC-formatting.patch | 22 +++++++++++ net-analyzer/iftop/iftop-1.0_pre4-r4.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/net-analyzer/iftop/files/iftop-1.0_pre4-fix-MAC-formatting.patch b/net-analyzer/iftop/files/iftop-1.0_pre4-fix-MAC-formatting.patch new file mode 100644 index 00000000000..d68a8095dce --- /dev/null +++ b/net-analyzer/iftop/files/iftop-1.0_pre4-fix-MAC-formatting.patch @@ -0,0 +1,22 @@ +From: Xiaoguang Sun +Date: Tue, 11 Mar 2014 13:18:46 +0100 +Subject: MAC address format + +Forwarded: http://lists.beasts.org/pipermail/iftop-users/2014-March/000413.html +--- + iftop.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/iftop.c b/iftop.c +index a090dcf..883782e 100644 +--- a/iftop.c ++++ b/iftop.c +@@ -713,7 +713,7 @@ void packet_init() { + if(have_hw_addr) { + fprintf(stderr, "MAC address is:"); + for (i = 0; i < 6; ++i) +- fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]); ++ fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned char)if_hw_addr[i]); + fprintf(stderr, "\n"); + } + diff --git a/net-analyzer/iftop/iftop-1.0_pre4-r4.ebuild b/net-analyzer/iftop/iftop-1.0_pre4-r4.ebuild new file mode 100644 index 00000000000..890ba6ff2ae --- /dev/null +++ b/net-analyzer/iftop/iftop-1.0_pre4-r4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils + +DESCRIPTION="display bandwidth usage on an interface" +SRC_URI="http://www.ex-parrot.com/pdw/iftop/download/${P/_/}.tar.gz" +HOMEPAGE="http://www.ex-parrot.com/pdw/iftop/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +RDEPEND=" + net-libs/libpcap + sys-libs/ncurses:0= +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" +S="${WORKDIR}"/${P/_/} +PATCHES=( + "${FILESDIR}"/${P}-configure.ac.patch + "${FILESDIR}"/${P}-Makefile.am.patch + "${FILESDIR}"/${P}-tsent-set-but-not-used.patch + "${FILESDIR}"/${P}-ip6.arpa.patch + "${FILESDIR}"/${P}-fix-MAC-formatting.patch +) + +src_prepare() { + default + # bug 490168 + cat "${FILESDIR}"/ax_pthread.m4 >> "${S}"/acinclude.m4 || die + + eautoreconf +} + +src_install() { + dosbin iftop + doman iftop.8 + + dodoc AUTHORS ChangeLog README "${FILESDIR}"/iftoprc +}