homebrew-core/Formula/tcptrack.rb
2012-02-09 21:40:58 -08:00

21 lines
744 B
Ruby

require 'formula'
class Tcptrack < Formula
homepage 'http://www.rhythm.cx/~steve/devel/tcptrack/'
url 'http://www.rhythm.cx/~steve/devel/tcptrack/release/1.4.2/source/tcptrack-1.4.2.tar.gz'
md5 'dacf71a6b5310caf1203a2171b598610'
def install
# Fix IPv6 on MacOS. The patch was sent by email to the maintainer
# (tcptrack2@s.rhythm.cx) on 2010-11-24 for inclusion.
# Still not fixed in 1.4.2 - @adamv
inreplace 'src/IPv6Address.cc', 's6_addr16', '__u6_addr.__u6_addr16'
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
def caveats
"Run tcptrack as root or via sudo in order for the program to obtain permissions on the network interface."
end
end