Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
osxfuse 2.6.1
Browse files Browse the repository at this point in the history
Add FUSE for OS X formula

Closes #21318.

Signed-off-by: Xiyue Deng <[email protected]>
  • Loading branch information
bfleischer authored and manphiz committed Sep 20, 2013
1 parent 27cc6fa commit c5de743
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Library/Formula/osxfuse.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c5de743

Please sign in to comment.