aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Koonce2013-11-09 23:22:22 -0600
committerAdam Vandenberg2013-11-09 22:05:52 -0800
commitfb700c1b055ad14810b32061de96e1bc03b8249d (patch)
tree4cba7447d5125e8c47f76f9359b1c7f90054ffcc
parent157acdf397218bc5704096bd475f864105ca32b7 (diff)
downloadhomebrew-fb700c1b055ad14810b32061de96e1bc03b8249d.tar.bz2
proxytunnel: disable strlcat/strlcpy on mavericks
Fixes #24138. Closes #24144. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/proxytunnel.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/proxytunnel.rb b/Library/Formula/proxytunnel.rb
index 00f997ddb..7be477775 100644
--- a/Library/Formula/proxytunnel.rb
+++ b/Library/Formula/proxytunnel.rb
@@ -6,6 +6,12 @@ class Proxytunnel < Formula
sha1 '51d816125bb9e9bca267d35f861000eb0fa9d80b'
def install
+ if MacOS.version >= :mavericks
+ # http://trac.macports.org/browser/trunk/dports/net/proxytunnel/Portfile
+ inreplace ["proxytunnel.h", "setproctitle.c", "strlcat.c", "strzcat.c"], "strlcat", "strlcat_disable"
+ inreplace ["proxytunnel.h", "setproctitle.c", "strlcpy.c"], "strlcpy", "strlcpy_disable"
+ end
+
system "make"
bin.install "proxytunnel"
man1.install "proxytunnel.1"