homebrew-core/Formula/horndis.rb

31 lines
1.1 KiB
Ruby
Raw Normal View History

class Horndis < Formula
desc "USB tethering driver for OS X"
homepage "http://joshuawise.com/horndis"
url "https://github.com/jwise/HoRNDIS/archive/rel7.tar.gz"
sha256 "62963e3c4e7fc81f3babd6843e516fde682f5065730d6eb62dc58480719917cd"
2014-05-30 23:03:52 +00:00
bottle do
cellar :any
2015-01-27 14:19:03 +00:00
sha1 "0d55b2656caeb26a77ee1eb5d6785bbf85529a0b" => :mavericks
sha1 "5f8c5a67a3c3eaa99e60f59e1b2910a95ca2bdb6" => :mountain_lion
2014-05-30 23:03:52 +00:00
end
depends_on UnsignedKextRequirement
depends_on :xcode => :build
def install
xcodebuild "-configuration", "Release", "SDKROOT=",
"MACOSX_DEPLOYMENT_TARGET=",
"GCC_VERSION=",
"ONLY_ACTIVE_ARCH=YES",
"SYMROOT=build"
kext_prefix.install "build/Release/HoRNDIS.kext"
end
def caveats; <<-EOS.undent
In order for HoRNDIS to work, kernel extension must be installed by the root user:
$ sudo /bin/cp -rfX #{kext_prefix}/HoRNDIS.kext /Library/Extensions
EOS
end
end