homebrew-core/Formula/horndis.rb
2015-06-05 14:47:57 +01:00

30 lines
1 KiB
Ruby

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"
sha1 "b3186de7c43ff0398e429f1af8e73cb3a255e5cd"
bottle do
cellar :any
sha1 "0d55b2656caeb26a77ee1eb5d6785bbf85529a0b" => :mavericks
sha1 "5f8c5a67a3c3eaa99e60f59e1b2910a95ca2bdb6" => :mountain_lion
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