2011-09-02 23:36:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sshfs < Formula
|
2014-01-05 06:48:04 +00:00
|
|
|
homepage 'http://osxfuse.github.io/'
|
2014-02-21 03:13:37 +00:00
|
|
|
url 'https://github.com/osxfuse/sshfs/archive/osxfuse-sshfs-2.5.0.tar.gz'
|
|
|
|
sha1 '34d81a2f6b4150bff5ee55978b98df50c0bd3152'
|
2014-01-05 06:48:04 +00:00
|
|
|
|
2014-02-21 03:18:31 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "af9fbf03eff59354c0d4071de23ad44f68d986bd" => :mavericks
|
|
|
|
sha1 "7fa3b69a4f3f4cd06a32c11df13db57f21437c88" => :mountain_lion
|
|
|
|
sha1 "8828686ca5c28061825fe059d7d6b9afae5972e9" => :lion
|
|
|
|
end
|
|
|
|
|
2014-01-05 06:48:04 +00:00
|
|
|
option 'without-sshnodelay', "Don't compile NODELAY workaround for ssh"
|
2011-09-02 23:36:10 +00:00
|
|
|
|
2013-04-16 18:55:36 +00:00
|
|
|
depends_on 'autoconf' => :build
|
2013-04-16 18:54:42 +00:00
|
|
|
depends_on 'automake' => :build
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :libtool
|
|
|
|
|
2011-09-02 23:36:10 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2014-01-05 06:48:04 +00:00
|
|
|
depends_on 'osxfuse'
|
2011-09-02 23:36:10 +00:00
|
|
|
depends_on 'glib'
|
2013-12-12 11:03:26 +00:00
|
|
|
depends_on :xcode
|
2011-09-02 23:36:10 +00:00
|
|
|
|
2014-03-20 19:05:20 +00:00
|
|
|
# Fixes issue https://github.com/osxfuse/sshfs/pull/4
|
|
|
|
patch :DATA
|
2014-01-13 20:56:11 +00:00
|
|
|
|
2011-09-02 23:36:10 +00:00
|
|
|
def install
|
2014-01-05 06:48:04 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
|
|
|
args << "--disable-sshnodelay" if build.without? 'sshnodelay'
|
|
|
|
|
2013-01-06 06:00:04 +00:00
|
|
|
# Compatibility with Automake 1.13 and newer.
|
|
|
|
inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
|
2014-01-05 06:48:04 +00:00
|
|
|
inreplace 'configure.ac', 'AM_INIT_AUTOMAKE', 'AM_INIT_AUTOMAKE([subdir-objects])'
|
2013-01-06 06:00:04 +00:00
|
|
|
|
2012-02-27 03:44:55 +00:00
|
|
|
system "autoreconf", "--force", "--install"
|
2014-01-05 06:48:04 +00:00
|
|
|
system "./configure", *args
|
2011-09-02 23:36:10 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2014-02-21 03:13:37 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/sshfs.c
|
|
|
|
+++ b/sshfs.c
|
|
|
|
@@ -313,6 +313,8 @@
|
|
|
|
"ConnectTimeout",
|
|
|
|
"ControlMaster",
|
|
|
|
"ControlPath",
|
|
|
|
+ "ForwardAgent",
|
|
|
|
+ "ForwardX11",
|
|
|
|
"GlobalKnownHostsFile",
|
|
|
|
"GSSAPIAuthentication",
|
|
|
|
"GSSAPIDelegateCredentials",
|