2010-04-04 07:16:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tcptrack < Formula
|
2010-04-04 07:16:24 +00:00
|
|
|
homepage 'http://www.rhythm.cx/~steve/devel/tcptrack/'
|
2012-09-04 15:25:31 +00:00
|
|
|
url 'http://ftp.de.debian.org/debian/pool/main/t/tcptrack/tcptrack_1.4.2.orig.tar.gz'
|
|
|
|
sha1 '921e33279e0032ba3639cdfc674ed74505691d6b'
|
2010-04-04 07:16:24 +00:00
|
|
|
|
|
|
|
def install
|
2011-02-22 12:43:13 +00:00
|
|
|
# Fix IPv6 on MacOS. The patch was sent by email to the maintainer
|
|
|
|
# (tcptrack2@s.rhythm.cx) on 2010-11-24 for inclusion.
|
2012-02-10 05:40:44 +00:00
|
|
|
# Still not fixed in 1.4.2 - @adamv
|
2011-02-22 12:43:13 +00:00
|
|
|
inreplace 'src/IPv6Address.cc', 's6_addr16', '__u6_addr.__u6_addr16'
|
|
|
|
|
2012-02-10 05:40:44 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2010-04-04 07:16:24 +00:00
|
|
|
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
|