aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ettercap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ettercap.rb')
-rw-r--r--Library/Formula/ettercap.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/ettercap.rb b/Library/Formula/ettercap.rb
index 6a30f0a57..bc2572ce1 100644
--- a/Library/Formula/ettercap.rb
+++ b/Library/Formula/ettercap.rb
@@ -11,6 +11,11 @@ class Ettercap < Formula
depends_on 'libnet'
depends_on 'curl' # require libcurl >= 7.26.0
+ # fixes absence of strndup function on 10.6 and lower; merged upstream
+ def patches
+ "https://github.com/Ettercap/ettercap/commit/1692218693ed419465466299c8c76da41c37c945.patch"
+ end if MacOS.version < 10.7
+
def install
libnet = Formula.factory 'libnet'