aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/n2n.rb
blob: d029d2cfeceb5153fda03a21f75809a38f68fe65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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