From cbc4468094c9d3fbe3095a1e6c85ade80691dbdc Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 11 Feb 2013 16:12:49 +0100 Subject: [PATCH] new package: added package 'iftop' Signed-off-by: Stephan Raue --- packages/debug/iftop/build | 33 +++++++++++++++++ packages/debug/iftop/install | 26 +++++++++++++ packages/debug/iftop/meta | 37 +++++++++++++++++++ .../iftop/patches/iftop-automake-1.13.patch | 12 ++++++ packages/debug/meta | 2 +- 5 files changed, 109 insertions(+), 1 deletion(-) create mode 100755 packages/debug/iftop/build create mode 100755 packages/debug/iftop/install create mode 100644 packages/debug/iftop/meta create mode 100644 packages/debug/iftop/patches/iftop-automake-1.13.patch diff --git a/packages/debug/iftop/build b/packages/debug/iftop/build new file mode 100755 index 0000000000..1f9b576fd8 --- /dev/null +++ b/packages/debug/iftop/build @@ -0,0 +1,33 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +export LIBS="-ltinfo" + +cd $PKG_BUILD + +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + +make diff --git a/packages/debug/iftop/install b/packages/debug/iftop/install new file mode 100755 index 0000000000..23ae6b0c38 --- /dev/null +++ b/packages/debug/iftop/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/bin/ + cp $PKG_BUILD/iftop $INSTALL/usr/bin/ diff --git a/packages/debug/iftop/meta b/packages/debug/iftop/meta new file mode 100644 index 0000000000..6673478a60 --- /dev/null +++ b/packages/debug/iftop/meta @@ -0,0 +1,37 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2013 Dag Wieers (dag@wieers.com) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="iftop" +PKG_VERSION="1.0pre2" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://htop.sourceforge.net/" +PKG_URL="http://www.ex-parrot.com/pdw/iftop/download/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="ncurses libpcap" +PKG_BUILD_DEPENDS="toolchain ncurses libpcap" +PKG_PRIORITY="optional" +PKG_SECTION="debug/tools" +PKG_SHORTDESC="iftop: display bandwidth usage on an interface" +PKG_LONGDESC="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?'." + +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes" diff --git a/packages/debug/iftop/patches/iftop-automake-1.13.patch b/packages/debug/iftop/patches/iftop-automake-1.13.patch new file mode 100644 index 0000000000..9997f7998b --- /dev/null +++ b/packages/debug/iftop/patches/iftop-automake-1.13.patch @@ -0,0 +1,12 @@ +diff -Naur iftop-1.0pre2/configure.in iftop-1.0pre2.patch/configure.in +--- iftop-1.0pre2/configure.in 2011-10-03 23:55:33.000000000 +0200 ++++ iftop-1.0pre2.patch/configure.in 2013-03-05 11:17:10.423257608 +0100 +@@ -28,7 +28,7 @@ + + AC_CANONICAL_SYSTEM + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + AM_INIT_AUTOMAKE(iftop, "1.0pre2") + + AC_DEFINE_UNQUOTED(IFTOP_VERSION, "$VERSION", [The iftop version number]) diff --git a/packages/debug/meta b/packages/debug/meta index 870cc994a8..0f394773b5 100644 --- a/packages/debug/meta +++ b/packages/debug/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools pmtools powertop smem strace" +PKG_DEPENDS="acpica cpuid dmidecode dstat evtest gdb hddtemp htop i2c-tools iftop pmtools powertop smem strace" PKG_BUILD_DEPENDS="toolchain" PKG_PRIORITY="optional" PKG_SECTION="debug"