aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/proxytunnel.rb
blob: 7be4777757239f59f2d6d2baa1f43253f489bdb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Proxytunnel < Formula
  homepage 'http://proxytunnel.sourceforge.net/'
  url 'http://downloads.sourceforge.net/proxytunnel/proxytunnel-1.9.0.tgz'
  sha1 '51d816125bb9e9bca267d35f861000eb0fa9d80b'

  def install
    if MacOS.version >= :mavericks
      # http://trac.macports.org/browser/trunk/dports/net/proxytunnel/Portfile
      inreplace ["proxytunnel.h", "setproctitle.c", "strlcat.c", "strzcat.c"], "strlcat", "strlcat_disable"
      inreplace ["proxytunnel.h", "setproctitle.c", "strlcpy.c"], "strlcpy", "strlcpy_disable"
    end

    system "make"
    bin.install "proxytunnel"
    man1.install "proxytunnel.1"
  end
end