aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/horndis.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/horndis.rb b/Library/Formula/horndis.rb
new file mode 100644
index 000000000..3a0753836
--- /dev/null
+++ b/Library/Formula/horndis.rb
@@ -0,0 +1,20 @@
+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