2010-03-15 03:48:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ptunnel < Formula
|
2010-03-15 03:48:33 +00:00
|
|
|
homepage 'http://www.cs.uit.no/~daniels/PingTunnel/'
|
2012-07-31 01:42:44 +00:00
|
|
|
url 'http://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-0.72.tar.gz'
|
|
|
|
sha1 'd5d874ec7b4f68d2307cacc83a1c408aeb4206a5'
|
2010-03-15 03:48:33 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "ptunnel"
|
2010-04-07 05:58:35 +00:00
|
|
|
man8.install "ptunnel.8"
|
2010-03-15 03:48:33 +00:00
|
|
|
end
|
|
|
|
|
2011-06-17 03:31:14 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2010-03-15 03:48:33 +00:00
|
|
|
Normally, ptunnel uses raw sockets and must be run as root (using sudo, for example).
|
|
|
|
|
|
|
|
Alternatively, you can try using the -u flag to start ptunnel in 'unprivileged' mode,
|
|
|
|
but this is not recommended. See http://www.cs.uit.no/~daniels/PingTunnel/ for details.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|