aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamillo Lugaresi2012-06-07 18:09:26 +0200
committerAdam Vandenberg2012-06-07 20:34:38 -0700
commitbfc49feb66b078895491b674d2ed1f57b395bd10 (patch)
treeef78aec946cf6ce22028445b64aa3fa859b98680
parent7c4abe678ca2b6c16b119b80cc5614f7ad0dfb1e (diff)
downloadhomebrew-bfc49feb66b078895491b674d2ed1f57b395bd10.tar.bz2
socat 1.7.2.1 and 2.0.0-b5
Note that socat 1.7.2.0 had a security vulnerability (see socat homepage). Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/socat.rb33
1 files changed, 29 insertions, 4 deletions
diff --git a/Library/Formula/socat.rb b/Library/Formula/socat.rb
index 1c494bc3a..12223761e 100644
--- a/Library/Formula/socat.rb
+++ b/Library/Formula/socat.rb
@@ -2,14 +2,22 @@ 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'
+ url 'http://www.dest-unreach.org/socat/download/socat-1.7.2.1.tar.bz2'
+ sha1 'c48cbba5e4d20fcf04b327e40d878b7322be82fd'
+
+ devel do
+ url 'http://www.dest-unreach.org/socat/download/socat-2.0.0-b5.tar.bz2'
+ sha1 'd75c0abc816f9bb8ee1e36f6ca4fe58d7e56f2a4'
+ end
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" }
+ # Socat devs are aware; see:
+ # https://trac.macports.org/ticket/32044
+ p = { :p0 => "https://trac.macports.org/export/90442/trunk/dports/sysutils/socat/files/patch-xioexit.c.diff" }
+ p[:p1] = DATA if ARGV.build_devel?
+ p
end
def install
@@ -18,3 +26,20 @@ class Socat < Formula
system "make install"
end
end
+
+__END__
+diff --git a/sysincludes.h b/sysincludes.h
+index ee25556..8a57422 100644
+--- a/sysincludes.h
++++ b/sysincludes.h
+@@ -5,6 +5,10 @@
+ #ifndef __sysincludes_h_included
+ #define __sysincludes_h_included 1
+
++#if __APPLE__
++#define __APPLE_USE_RFC_3542 1
++#endif
++
+ #if HAVE_LIMITS_H
+ #include <limits.h> /* USHRT_MAX */
+ #endif