homebrew-core/Formula/iftop.rb
Eugene San (eugenesan) 69947cd3e2 iftop: add caveats
Closes Homebrew/homebrew#23581.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-27 08:18:19 -07:00

29 lines
946 B
Ruby

require 'formula'
# Version is "pre-release", but is what Debian, MacPorts, etc.
# package, and upstream has not had any movement in a long time.
class Iftop < Formula
homepage 'http://www.ex-parrot.com/~pdw/iftop/'
url 'http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre2.tar.gz'
version '1.0pre2'
sha1 'd4dc473f8263192334da6289b69e102a4ae7df9e'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make install"
end
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
end