Commit 12dbd2a7 authored by Casey Strouse's avatar Casey Strouse

Add iftop (0.17) package

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?".

Tested as working on Samsung XE50013-K01US.
parent c44dd0c6
require 'package'
class Iftop < Package
version '0.17'
source_url 'http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz'
source_sha1 '75ce6afc8c0bf851278b0a15e66f523af90cfda9'
depends_on "libpcap"
depends_on "ncurses"
def self.build
system './configure --prefix=/usr/local CPPFLAGS="-I/usr/local/include/ncurses"'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment