2009-11-18 22:16:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-09-23 07:01:14 +00:00
|
|
|
# Version is "pre-release", but is what Debian, MacPorts, etc.
|
|
|
|
# package, and upstream has not had any movement in a long time.
|
2011-03-10 05:11:03 +00:00
|
|
|
class Iftop < Formula
|
2009-11-18 22:16:37 +00:00
|
|
|
homepage 'http://www.ex-parrot.com/~pdw/iftop/'
|
2014-03-03 02:42:45 +00:00
|
|
|
url 'http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz'
|
|
|
|
version '1.0pre4'
|
|
|
|
sha1 '7f8e16ea26a0dee37ec9d1cbcef7b27692036572'
|
2009-11-18 22:16:37 +00:00
|
|
|
|
|
|
|
def install
|
2012-09-23 07:01:14 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-11-18 22:16:37 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2013-10-25 11:57:48 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
iftop requires superuser privileges. You can either run the program
|
|
|
|
via `sudo`, or change its ownership to root and set the setuid bit:
|
|
|
|
$ sudo chown root:wheel #{sbin}/iftop
|
|
|
|
$ sudo chmod u+s #{sbin}/iftop
|
|
|
|
|
|
|
|
In any case, you should be certain that you trust the software you
|
|
|
|
are executing with elevated privileges.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-11-18 22:16:37 +00:00
|
|
|
end
|