aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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"