
We have an upstream signed binary available! Big big love to Mattias for this. This PR converts all the existing tuntap dependencies into binary-friendly tuntap dependencies, and adds a tuntap dependency to requirements to look for the kexts. Closes Homebrew/homebrew#33894. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
14 lines
462 B
Ruby
14 lines
462 B
Ruby
require "requirement"
|
|
|
|
class TuntapDependency < Requirement
|
|
fatal true
|
|
default_formula "tuntap"
|
|
satisfy { self.class.binary_tuntap_installed? || Formula["tuntap"].installed? }
|
|
|
|
def self.binary_tuntap_installed?
|
|
File.exist?("/Library/Extensions/tun.kext") && File.exist?("/Library/Extensions/tap.kext")
|
|
File.exist?("/Library/LaunchDaemons/net.sf.tuntaposx.tun.plist")
|
|
File.exist?("/Library/LaunchDaemons/net.sf.tuntaposx.tap.plist")
|
|
end
|
|
end
|