ettercap: move conditional into method

master
Adam Vandenberg 2014-02-24 21:29:03 -08:00
parent ae5304308d
commit 954c11507f
1 changed files with 4 additions and 2 deletions

View File

@ -13,8 +13,10 @@ class Ettercap < Formula
# 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 < :lion
if MacOS.version < :lion
"https://github.com/Ettercap/ettercap/commit/1692218693ed419465466299c8c76da41c37c945.patch"
end
end
def install
libnet = Formula.factory 'libnet'