929ceffb4e
This is needed by any filesystem that uses the `allow_other` mount option. Closes Homebrew/homebrew#7742. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Fuse4x < Formula
|
|
homepage 'http://fuse4x.org/'
|
|
url 'https://github.com/fuse4x/fuse.git', :tag => "fuse4x_0_8_12"
|
|
version "0.8.12"
|
|
|
|
depends_on 'gettext'
|
|
depends_on 'fuse4x-kext'
|
|
|
|
def install
|
|
# Build universal if the hardware can handle it---otherwise 32 bit only
|
|
MacOS.prefer_64_bit? ? ENV.universal_binary : ENV.m32
|
|
gettext = Formula.factory('gettext')
|
|
|
|
# Don't hardwire a universal binary build in the CFLAGS and LDFLAGS
|
|
# see issue #7713
|
|
inreplace 'configure.in', '-arch i386 -arch x86_64', ''
|
|
ENV['ACLOCAL'] = "/usr/bin/aclocal -I#{gettext.share}/aclocal"
|
|
system "autoreconf", "--force", "--install"
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--disable-debug", "--disable-static", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
|
|
def caveats
|
|
<<-EOS.undent
|
|
In order to use the allow_other mount option, you must set the fuse4x admin group.
|
|
To set it to the default (admin group):
|
|
sudo sysctl -w vfs.generic.fuse4x.tunables.admin_group=80
|
|
EOS
|
|
end
|
|
end
|