homebrew-core/Formula/horndis.rb
Eugene San (eugenesan) 0b73fb4425 HoRNDIS rel5
HoRNDIS (pronounce: "horrendous") is a driver for Mac OS X, that allows you
to use your Android phone's native USB tethering mode to get Internet access.

Closes Homebrew/homebrew#26159.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-09 14:20:56 -07:00

20 lines
640 B
Ruby

require "formula"
class Horndis < Formula
homepage "http://joshuawise.com/horndis"
url "https://github.com/jwise/HoRNDIS/archive/rel5.tar.gz"
sha1 "5f01c62ae61554252c0fe727e414edcb8e060106"
depends_on :xcode
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