homebrew-core/Formula/osxfuse.rb
Terry Nycum 26016fb3ec osxfuse: fix cp destination in caveats.
Add missing trailing slash to destination of `cp` command. Without it, the copy of osxfusefs.fs/Contents goes directly into /Library/Filesystems, without the osxfuse.fs parent directory.

Closes Homebrew/homebrew#31692.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-19 10:58:26 +01:00

48 lines
1.5 KiB
Ruby

require "formula"
class Osxfuse < Formula
homepage "http://osxfuse.github.io"
url "https://github.com/osxfuse/osxfuse.git", :tag => "osxfuse-2.7.0"
head "https://github.com/osxfuse/osxfuse.git", :branch => "osxfuse-2"
bottle do
sha1 "e96e12d2fe72a2a85f80b9c9b640229f269cdb82" => :mavericks
sha1 "f3a10fed4401867107fcee6850f03301f1698f49" => :mountain_lion
sha1 "a7b6d7d22f08d64efab35917c7ee2338a5487b22" => :lion
end
depends_on :macos => :snow_leopard
depends_on :xcode => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "gettext" => :build
conflicts_with "fuse4x", :because => "both install `fuse.pc`"
def install
# Do not override Xcode build settings
ENV.remove_cc_etc
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 #{opt_prefix}/Library/Filesystems/osxfusefs.fs /Library/Filesystems/
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
EOS
end
end