aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBenjamin Fleischer2013-07-11 00:02:57 +0200
committerXiyue Deng2013-09-20 01:34:23 -0700
commitc5de7437a458dbb8ad066fdcd9f6ffee4bb75747 (patch)
treebb57b374252c8284a00f136af9b88c40e8876244 /Library
parent27cc6fa527b85198c9fe4a7f0788f9e7a75c46c4 (diff)
downloadhomebrew-c5de7437a458dbb8ad066fdcd9f6ffee4bb75747.tar.bz2
osxfuse 2.6.1
Add FUSE for OS X formula Closes #21318. Signed-off-by: Xiyue Deng <manphiz@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/osxfuse.rb44
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/osxfuse.rb b/Library/Formula/osxfuse.rb
new file mode 100644
index 000000000..7100bc8c3
--- /dev/null
+++ b/Library/Formula/osxfuse.rb
@@ -0,0 +1,44 @@
+require 'formula'
+
+class Osxfuse < Formula
+ homepage 'http://osxfuse.github.io'
+ url 'https://github.com/osxfuse/osxfuse.git', :tag => 'osxfuse-2.6.1_1'
+
+ head 'https://github.com/osxfuse/osxfuse.git', :branch => 'osxfuse-2'
+
+ depends_on :macos => :snow_leopard
+ depends_on :autoconf
+ depends_on :automake
+ depends_on 'gettext' => :build
+ depends_on 'libtool' => :build
+
+ def install
+ # Do not override Xcode build settings
+ ENV.remove_cc_etc
+
+ if MacOS::Xcode.provides_autotools?
+ # Xcode version of aclocal does not respect ACLOCAL_PATH
+ ENV['ACLOCAL'] = 'aclocal ' + ENV['ACLOCAL_PATH'].split(':').map {|p| '-I' + p}.join(' ')
+ end
+
+ system "./build.sh", "-t", "homebrew", "-f", prefix
+ end
+
+ def caveats; <<-EOS.undent
+ If upgrading from a previous version of osxfuse, the previous kernel extension
+ will need to be unloaded before installing the new version. First, check that
+ no FUSE-based file systems are running:
+
+ mount -t osxfusefs
+
+ Unmount all FUSE file systems and then unload the kernel extension:
+
+ sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
+
+ The new osxfuse file system bundle needs to be installed by the root user:
+
+ sudo /bin/cp -RfX #{prefix}/Library/Filesystems/osxfusefs.fs /Library/Filesystems
+ sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
+ EOS
+ end
+end