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

class Socat < Formula
  homepage 'http://www.dest-unreach.org/socat/'
  url 'http://www.dest-unreach.org/socat/download/socat-1.7.2.0.tar.bz2'
  md5 'eb563dd00b9d39a49fb62a677fc941fe'

  depends_on 'readline'

  def patches
    # see https://trac.macports.org/ticket/32044; socat devs are aware
    { :p0 => "https://trac.macports.org/export/90442/trunk/dports/sysutils/socat/files/patch-xioexit.c.diff" }
  end

  def install
    ENV.enable_warnings # -w causes build to fail
    system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
    system "make install"
  end
end