Skip to content

Instantly share code, notes, and snippets.

@michaelwills
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelwills/8b37f73a6d1487d77253 to your computer and use it in GitHub Desktop.
Save michaelwills/8b37f73a6d1487d77253 to your computer and use it in GitHub Desktop.
homebrew patched install for socat 2b5
require "formula"
class Socat2b < Formula
homepage "http://www.dest-unreach.org/socat/socat-version2.html"
url "http://www.dest-unreach.org/socat/download/socat-2.0.0-b5.tar.gz"
sha256 "b936a6ce67d89b5ada382a093a1aabd093534773b4997c1b211bdae40e8b60b0"
## Patch
# https://gist.github.com/michaelwills/1534146cfdd97ee28fc0
# based on http://www.xappsoftware.com/wordpress/2013/10/10/how-to-run-socat-on-mac-os-x/
patch :p0 do
url "https://gist.githubusercontent.com/michaelwills/1534146cfdd97ee28fc0/raw/4c3c0d2cea40797d5299b25c45ef99ff6ab3bebc/socat2-osx.diff"
sha1 "055bc237506149784a2cd4cc377b4a1f2a701edb"
end
def install
system "./configure"
system "make"
system "make install"
end
test do
system bin/"socat", "-V"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment