brew/Library/Homebrew/requirements/unsigned_kext_requirement.rb
Dominyk Tiller d8c34e83b7 Add unsigned kext requirement.
Creates a new requirement that dictates packages are unable to install due to requiring a signed kext to function.

Closes Homebrew/homebrew#33404.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-23 08:57:12 +01:00

17 lines
431 B
Ruby

require 'requirement'
class UnsignedKextRequirement < Requirement
fatal true
satisfy { MacOS.version < :yosemite }
def message
<<-EOS.undent
OS X Mavericks or older is required for this package.
OS X Yosemite introduced a strict unsigned kext ban which breaks this package.
You should remove this package from your system and attempt to find upstream
binaries to use instead.
EOS
end
end