2010-05-21 09:38:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class N2n < Formula
|
|
|
|
url 'http://www.sideshowcoder.railsplayground.net/files/n2n-2.7.tar.gz'
|
|
|
|
homepage 'http://www.ntop.org/n2n/'
|
2010-04-07 05:58:35 +00:00
|
|
|
md5 '8e64e4fd0ebf05c76b942549dc8b6b76'
|
2010-05-21 09:38:25 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
def caveats; <<-EOF.undent
|
|
|
|
To link correctly you need to have access to the /usr/local/sbin
|
|
|
|
and link n2n
|
2010-05-21 09:38:25 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
$ chown `whoami`:staff /usr/local/sbin
|
|
|
|
$ brew link n2n
|
2010-05-21 09:38:25 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
n2n also requires the tun/tap devices. To get these on OS X:
|
|
|
|
http://tuntaposx.sourceforge.net/download.xhtml
|
2010-05-21 09:38:25 +00:00
|
|
|
EOF
|
|
|
|
end
|
|
|
|
end
|