2014-01-25 07:47:45 +00:00
|
|
|
class Horndis < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "USB tethering driver for OS X"
|
2014-01-25 07:47:45 +00:00
|
|
|
homepage "http://joshuawise.com/horndis"
|
2015-01-27 13:55:26 +00:00
|
|
|
url "https://github.com/jwise/HoRNDIS/archive/rel7.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "62963e3c4e7fc81f3babd6843e516fde682f5065730d6eb62dc58480719917cd"
|
2014-01-25 07:47:45 +00:00
|
|
|
|
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
|
|
|
|
|
2014-10-20 20:45:40 +00:00
|
|
|
depends_on UnsignedKextRequirement
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build
|
2014-01-25 07:47:45 +00:00
|
|
|
|
|
|
|
def install
|
2015-01-27 13:55:26 +00:00
|
|
|
xcodebuild "-configuration", "Release", "SDKROOT=",
|
|
|
|
"MACOSX_DEPLOYMENT_TARGET=",
|
|
|
|
"GCC_VERSION=",
|
|
|
|
"ONLY_ACTIVE_ARCH=YES",
|
|
|
|
"SYMROOT=build"
|
2014-01-25 07:47:45 +00:00
|
|
|
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
|