homebrew-core/Formula/n2n.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

24 lines
598 B
Ruby

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