Last active
August 29, 2015 14:10
-
-
Save michaelwills/8b37f73a6d1487d77253 to your computer and use it in GitHub Desktop.
homebrew patched install for socat 2b5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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