socat 1.7.3.3

Closes #39660.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
equal-l2 2019-05-11 08:45:22 +09:00 committed by Chongyu Zhu
parent 077bfba812
commit 4de7857eb7
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -1,9 +1,8 @@
class Socat < Formula
desc "netcat on steroids"
homepage "http://www.dest-unreach.org/socat/"
url "http://www.dest-unreach.org/socat/download/socat-1.7.3.2.tar.gz"
sha256 "ce3efc17e3e544876ebce7cd6c85b3c279fda057b2857fcaaf67b9ab8bdaf034"
revision 3
url "http://www.dest-unreach.org/socat/download/socat-1.7.3.3.tar.gz"
sha256 "8cc0eaee73e646001c64adaab3e496ed20d4d729aaaf939df2a761e99c674372"
bottle do
cellar :any
@ -15,6 +14,9 @@ class Socat < Formula
depends_on "openssl"
depends_on "readline"
# patch for type conflict, sent upstream
patch :p0, :DATA
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
@ -25,3 +27,16 @@ class Socat < Formula
assert_match "HTTP/1.0", output.lines.first
end
end
__END__
--- xio-termios.h 2019-05-11 09:10:55.000000000 +0900
+++ xio-termios.h 2019-05-11 09:11:13.000000000 +0900
@@ -148,7 +148,7 @@
extern int xiotermios_value(int fd, int word, tcflag_t mask, tcflag_t value);
extern int xiotermios_char(int fd, int n, unsigned char c);
#ifdef HAVE_TERMIOS_ISPEED
-extern int xiotermios_speed(int fd, int n, unsigned int speed);
+extern int xiotermios_speed(int fd, int n, speed_t speed);
#endif
extern int xiotermios_spec(int fd, int optcode);
extern int xiotermios_flush(int fd);