blob: 077507198133b53a0d88747c6ef078e378078838 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
class Horndis < Formula
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
|