From d83abe7ca341091666eb3feb2de099903daaaf0f Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 12 Aug 2009 10:32:20 -0700 Subject: Formula for sshfs SSHFS is a MacFuse based filesystem that lets you mount remote machines (via ssh) so they are visible to Finder (and on the command line, of course.) To use this formula, you must first install the binary of MacFuse, because it is (not yet) avaiable via brew. --- Library/Formula/sshfs.rb | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Library/Formula/sshfs.rb (limited to 'Library') diff --git a/Library/Formula/sshfs.rb b/Library/Formula/sshfs.rb new file mode 100644 index 000000000..d832f2399 --- /dev/null +++ b/Library/Formula/sshfs.rb @@ -0,0 +1,32 @@ +require 'brewkit' + +class SshfsFuse ["http://macfuse.googlecode.com/svn/tags/macfuse-2.0.3|2/filesystems/sshfs/sshfs-fuse-2.2-macosx.patch"] + } + end + + def deps + BinaryDep.new 'pkg-config' + LibraryDep.new 'glib' + #MacFuse is not compiling via brew yet... + #LibraryDep.new 'macfuse' + end + + def install + # Steal compile flags from macfuse_buildtool.sh + # Except that those flags include "-DSSH_NODELAY_WORKAROUND" which causes a bogus + # warning message to be printed to the console, so cut out that crap. + ENV['CFLAGS'] += " -D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT" + system "./configure --prefix='#{prefix}' --disable-dependency-tracking" + system "make" + system "make install" + end +end -- cgit v1.2.3