fuse: migrate mandatory fuse dependency formulae

This commit is contained in:
Dominyk Tiller 2015-05-30 23:01:28 +01:00
parent 12596f20bb
commit 89f2f2ede9
26 changed files with 0 additions and 1124 deletions

View file

@ -1,15 +0,0 @@
require 'formula'
class Afuse < Formula
homepage 'https://github.com/pcarrier/afuse/'
url 'https://afuse.googlecode.com/files/afuse-0.4.1.tar.gz'
sha1 '156b196a27c181eee8b192e7922fbe3c32c858e3'
depends_on 'pkg-config' => :build
depends_on :osxfuse
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end

View file

@ -1,25 +0,0 @@
require 'formula'
class Archivemount < Formula
homepage 'http://www.cybernoia.de/software/archivemount.html'
url 'http://www.cybernoia.de/software/archivemount/archivemount-0.8.3.tar.gz'
sha1 '8dbe4681fec3f4bbd69801204480192ad4f3f836'
head 'http://cybernoia.de/software/archivemount/git'
depends_on 'pkg-config' => :build
depends_on :osxfuse
depends_on 'libarchive'
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"archivemount", "--version"
end
end

View file

@ -1,68 +0,0 @@
require "formula"
class Avfs < Formula
homepage "http://avf.sourceforge.net/"
url "https://downloads.sourceforge.net/project/avf/avfs/1.0.2/avfs-1.0.2.tar.bz2"
sha1 "e4f8377ea2565c1ac59f7b66893905b778ddf849"
depends_on "pkg-config" => :build
depends_on :osxfuse
depends_on "xz" => :recommended # Upstream recommends building with lzma support.
depends_on "openssl" => :optional
# Fix scripts to work on Mac OS X.
# Nothing the patch fixes has been changed in 1.0.2, so still necessary.
patch :DATA
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--enable-fuse",
"--enable-library",
]
args << "--with-ssl=#{Formula["openssl"].opt_prefix}" if build.with? "openssl"
system "./configure", *args
system "make", "install"
end
test do
system bin/"avfsd", "--version"
end
end
__END__
diff --git i/scripts/mountavfs w/scripts/mountavfs
index 5722dcd..a35e633 100755
--- i/scripts/mountavfs
+++ w/scripts/mountavfs
@@ -14,7 +14,7 @@ else
MntDir=${HOME}/.avfs
fi
-grep -qE "avfsd ${MntDir}" /proc/mounts || {
+grep -qE "avfsd.*${MntDir}" < <(mount) || {
if [ ! -e "$MntDir" ]; then
mkdir -p "$MntDir"
fi
diff --git i/scripts/umountavfs w/scripts/umountavfs
index 09dc629..a242c21 100644
--- i/scripts/umountavfs
+++ w/scripts/umountavfs
@@ -14,11 +14,11 @@ else
MntDir="${HOME}/.avfs"
fi
-grep -qE "${MntDir}.*avfsd" /proc/mounts && {
+grep -qE "avfsd.*${MntDir}" < <(mount) && {
echo unMounting AVFS on $MntDir...
if type -p fusermount > /dev/null 2>&1 ; then
fusermount -u -z "$MntDir"
else
- umount -l "$MntDir"
+ umount "$MntDir"
fi
}

View file

@ -1,42 +0,0 @@
require "formula"
class Bindfs < Formula
homepage "http://bindfs.org/"
url "http://bindfs.org/downloads/bindfs-1.12.6.tar.gz"
sha1 "2685a2a1a88f5f84d305bd47f058035949bc887a"
bottle do
cellar :any
sha1 "46e3db6e3561d5ba4c199e54e7233aacee361fc8" => :mavericks
sha1 "e11546dca95a6fb8fd67fb180418a29984021219" => :mountain_lion
sha1 "cf04d4fd33ba8575c74c53c44a9978cc99b7cd4b" => :lion
end
head do
url "https://github.com/mpartel/bindfs.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on :osxfuse
def install
if build.head?
system "./autogen.sh", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
else
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
end
system "make install"
end
test do
system "#{bin}/bindfs", "-V"
end
end

View file

@ -1,125 +0,0 @@
require 'formula'
class Djmount < Formula
homepage 'http://djmount.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/djmount/djmount/0.71/djmount-0.71.tar.gz'
sha1 '527d4603d85b7fb86dc97d326b78c97bdcc4d687'
depends_on 'pkg-config' => :build
depends_on 'libupnp'
depends_on :osxfuse
patch :p0, :DATA
def install
ENV['FUSE_CFLAGS'] = `pkg-config fuse --cflags`.chomp
ENV['FUSE_LIBS'] = `pkg-config fuse --libs`.chomp
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-external-libupnp",
"--with-libupnp-prefix=#{HOMEBREW_PREFIX}"
system "make"
system "make install"
end
end
__END__
diff -u -r djmount/cache.h djmount/cache.h
--- djmount/cache.h 2006-08-27 21:12:20.000000000 +0100
+++ djmount/cache.h 2009-06-01 07:52:19.000000000 +0100
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <stdbool.h>
+#include <time.h>
/******************************************************************************
diff -u -r djmount/fuse_main.c djmount/fuse_main.c
--- djmount/fuse_main.c 2006-08-27 21:12:20.000000000 +0100
+++ djmount/fuse_main.c 2009-06-01 07:49:45.000000000 +0100
@@ -32,7 +32,7 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#include <sys/statfs.h>
+/*#include <sys/statfs.h>*/
#ifdef HAVE_SETXATTR
# include <sys/xattr.h>
#endif
diff -u -r djmount/test_device.c djmount/test_device.c
--- djmount/test_device.c 2006-08-27 21:12:20.000000000 +0100
+++ djmount/test_device.c 2009-06-01 08:02:05.000000000 +0100
@@ -27,6 +27,7 @@
#include <stdio.h>
#include "talloc_util.h"
#include "log.h"
+#include "upnp/upnpdebug.h"
#undef NDEBUG
@@ -62,7 +63,7 @@
Log_SetMaxLevel (LOG_ERROR);
// Manually initialise UPnP logs because UpnpInit() is not called
- assert (InitLog() == UPNP_E_SUCCESS);
+ /*assert (UpnpInitLog() == UPNP_E_SUCCESS);*/
char buffer [10 * 1024];
char* const descDocText = fgets (buffer, sizeof (buffer), stdin);
diff -u -r djmount/test_vfs.c djmount/test_vfs.c
--- djmount/test_vfs.c 2006-08-27 21:12:20.000000000 +0100
+++ djmount/test_vfs.c 2009-06-01 08:03:03.000000000 +0100
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#include <sys/statfs.h>
+/*#include <sys/statfs.h>*/
#ifdef HAVE_SETXATTR
# include <sys/xattr.h>
#endif
diff -u -r configure configure
--- configure 2006-08-27 21:13:13.000000000 +0100
+++ configure 2009-06-01 07:51:25.000000000 +0100
@@ -26489,7 +26489,7 @@
-FUSE_CFLAGS="$FUSE_CFLAGS -DFUSE_USE_VERSION=22"
+FUSE_CFLAGS="$FUSE_CFLAGS -DFUSE_USE_VERSION=25"
#
--- djmount/upnp_util.h.orig 2006-08-27 20:12:20.000000000 +0000
+++ djmount/upnp_util.h
@@ -27,6 +27,7 @@
#define UPNP_UTIL_H_INCLUDED
+#include <upnp/upnp.h>
#include <upnp/upnptools.h>
@@ -46,8 +47,8 @@ extern "C" {
*****************************************************************************/
char*
UpnpUtil_GetEventString (void* talloc_context,
- IN Upnp_EventType eventType,
- IN const void* event);
+ Upnp_EventType eventType,
+ const void* event);
/*****************************************************************************
@@ -55,7 +56,7 @@ UpnpUtil_GetEventString (void* talloc_co
* @return a static constant string, or NULL if unknown event type.
*****************************************************************************/
const char*
-UpnpUtil_GetEventTypeString (IN Upnp_EventType e);
+UpnpUtil_GetEventTypeString (Upnp_EventType e);

View file

@ -1,51 +0,0 @@
require 'formula'
class Encfs < Formula
homepage 'https://vgough.github.io/encfs/'
stable do
url 'https://github.com/vgough/encfs/archive/v1.8.1.tar.gz'
sha1 '107e1bcc4b8fd60821a7c8dd99f0c7c37cf5619c'
end
head 'https://github.com/vgough/encfs.git'
bottle do
sha256 "4d79b4413c12e591e6de81a4ba3624f31b0937da17974fc63ac81cc82d08d6aa" => :mavericks
sha256 "a63c7df51551d64eee771f7f6ab712367e951bad1a5933b423256ff81eddf0b2" => :mountain_lion
end
depends_on 'pkg-config' => :build
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'intltool' => :build
depends_on 'gettext' => :build
depends_on 'boost'
depends_on 'rlog'
depends_on 'openssl'
depends_on :osxfuse
depends_on 'xz'
needs :cxx11
def install
ENV.cxx11
system "make", "-f", "Makefile.dist"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{HOMEBREW_PREFIX}"
system "make"
system "make install"
end
test do
if Pathname.new("/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs").exist?
(testpath/"print-password").write("#!/bin/sh\necho password")
chmod 0755, testpath/"print-password"
system "yes | #{bin}/encfs --standard --extpass=#{testpath}/print-password #{testpath}/a #{testpath}/b"
system "umount", testpath/"b"
end
end
end

View file

@ -1,20 +0,0 @@
require 'formula'
class Ext2fuse < Formula
homepage 'http://sourceforge.net/projects/ext2fuse'
url 'https://downloads.sourceforge.net/project/ext2fuse/ext2fuse/0.8.1/ext2fuse-src-0.8.1.tar.gz'
sha1 '6a13fce7842ead1485a4f48cb57c1272d990b5a5'
depends_on :osxfuse
depends_on 'e2fsprogs'
def install
ENV.append "LIBS", "-losxfuse"
ENV.append "CFLAGS", "-D__FreeBSD__=10 -DENABLE_SWAPFS -I/usr/local/include/osxfuse/fuse -I#{HOMEBREW_PREFIX}/opt/osxfuse/include/osxfuse/fuse"
ENV.append "CFLAGS", "--std=gnu89" if ENV.compiler == :clang
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end

View file

@ -1,17 +0,0 @@
require 'formula'
class Ext4fuse < Formula
homepage 'https://github.com/gerard/ext4fuse'
url 'https://github.com/gerard/ext4fuse/archive/v0.1.3.tar.gz'
sha1 '87d436581fea73273d83779021a7a3c0158d7c41'
head 'https://github.com/gerard/ext4fuse.git'
depends_on 'pkg-config' => :build
depends_on :osxfuse
def install
system 'make'
bin.install 'ext4fuse'
end
end

View file

@ -1,20 +0,0 @@
require 'formula'
class FuseZip < Formula
homepage 'https://code.google.com/p/fuse-zip/'
url 'https://fuse-zip.googlecode.com/files/fuse-zip-0.4.0.tar.gz'
sha1 '09ee8c6f9d045436309e126d891510540c3d68fa'
head 'https://code.google.com/p/fuse-zip/', :using => :hg
depends_on 'pkg-config' => :build
depends_on :osxfuse
depends_on 'libzip'
def install
system "make", "INSTALLPREFIX=#{prefix}", "install"
end
test do
system bin/"fuse-zip", "--help"
end
end

View file

@ -1,75 +0,0 @@
class Fuse4xKext < Formula
homepage "https://fuse4x.github.io"
url "https://github.com/fuse4x/kext/archive/fuse4x_0_9_2.tar.gz"
sha256 "d4072d9110c7990c9b4ced4d4a37cbca278d8569ea566732c0533fad3b69116d"
bottle do
cellar :any
revision 4
sha1 "1d1ab89b714ea897c981f356a659afaff977a0da" => :mavericks
sha1 "0a03e6a51e40fe3456b8f132549516e4cb996985" => :mountain_lion
sha1 "6f306f38557d016f5eaa0c999f2092d0767870e6" => :lion
end
depends_on :xcode => :build
depends_on UnsignedKextRequirement
def install
ENV.delete("CC")
ENV.delete("CXX")
args = [
"-sdk",
"macosx#{MacOS.version}",
"-configuration", "Release",
"-alltargets",
"MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}",
"SYMROOT=build",
# Build a 32-bit kernel extension on Leopard and a fat binary for Snow
# Leopard/Lion.
"ARCHS=i386 #{"x86_64" if MacOS.prefer_64_bit?}", "ONLY_ACTIVE_ARCH=NO"
]
xcodebuild *args
system "/bin/mkdir", "-p", "build/Release/fuse4x.kext/Support"
system "/bin/cp", "build/Release/load_fuse4x", "build/Release/fuse4x.kext/Support"
kext_prefix.install "build/Release/fuse4x.kext"
end
def caveats
message = <<-EOS.undent
In order for FUSE-based filesystems to work, the fuse4x kernel extension
must be installed by the root user:
sudo /bin/cp -rfX #{kext_prefix}/fuse4x.kext /Library/Extensions
sudo chmod +s /Library/Extensions/fuse4x.kext/Support/load_fuse4x
If upgrading from a previous version of Fuse4x, the old kernel extension
will need to be unloaded before performing the steps listed above. First,
check that no FUSE-based filesystems are running:
mount -t fuse4x
Unmount all FUSE filesystems and then unload the kernel extension:
sudo kextunload -b org.fuse4x.kext.fuse4x
EOS
# In fuse4x version 0.9.0 the kext has been moved from /System to /Library to match
# filesystem layout convention from Apple.
# Check if the user has fuse4x kext in the old location.
# Remove this check Q4 2012 when it become clear that everyone migrated to 0.9.0+
if File.exist?("/System/Library/Extensions/fuse4x.kext/")
message += <<-EOS.undent
You have older version of fuse4x installed. Please remove it by running:
sudo rm -rf /System/Library/Extensions/fuse4x.kext/
EOS
end
return message
end
end

View file

@ -1,30 +0,0 @@
class Fuse4x < Formula
homepage "https://fuse4x.github.io"
url "https://github.com/fuse4x/fuse/archive/fuse4x_0_9_2.tar.gz"
sha256 "f51b2be4223fb811b30eab215d6bd7f5db50f8eba60e091d446fec4a3de382f7"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "gettext" => :build
depends_on ConflictsWithBinaryOsxfuse
depends_on UnsignedKextRequirement
depends_on "fuse4x-kext"
conflicts_with "osxfuse", :because => "both install `fuse.pc`"
def install
# Build universal if the hardware can handle it---otherwise 32 bit only
MacOS.prefer_64_bit? ? ENV.universal_binary : ENV.m32
inreplace "makeconf.sh", "libtoolize", "glibtoolize"
system "./makeconf.sh"
# force 64bit inodes on 10.5. On 10.6+ this is no-op.
ENV.append_to_cflags "-D_DARWIN_USE_64_BIT_INODE"
system "./configure", "--disable-dependency-tracking",
"--disable-static",
"--prefix=#{prefix}"
system "make", "install"
end
end

View file

@ -1,93 +0,0 @@
require "language/go"
class Gcsfuse < Formula
desc "A user-space file system for interacting with Google Cloud Storage"
homepage "https://github.com/googlecloudplatform/gcsfuse"
url "https://github.com/GoogleCloudPlatform/gcsfuse/archive/v0.1.1.tar.gz"
sha256 "cc3c12dc82a8e9ff0672976131b60af4161606c082f8dfe9cc51730caf4f3123"
bottle do
cellar :any
sha256 "56c8618fe16d0336b0c8dbd7882f5c33669f8e5d07d8a4dd779db97578d582ca" => :mavericks
sha256 "9c014ddaafe37faf831f8f09809bbad99cd945f5863d3db6dce3e51e5d1e1e17" => :mountain_lion
end
depends_on :osxfuse
depends_on "go" => :build
go_resource "github.com/jacobsa/bazilfuse" do
url "https://github.com/jacobsa/bazilfuse.git",
:revision => "0ecedd83db5ab023bda2af4217a6a43fa9e0fd3d"
end
go_resource "github.com/jacobsa/fuse" do
url "https://github.com/jacobsa/fuse.git",
:revision => "d8008607135912a7682aadeeedcc283c76975320"
end
go_resource "github.com/jacobsa/gcloud" do
url "https://github.com/jacobsa/gcloud.git",
:revision => "89fb1940659c49c1de84cea15061ebfec65d94f0"
end
go_resource "github.com/jacobsa/oglematchers" do
url "https://github.com/jacobsa/oglematchers.git",
:revision => "3ecefc49db07722beca986d9bb71ddd026b133f0"
end
go_resource "github.com/jacobsa/reqtrace" do
url "https://github.com/jacobsa/reqtrace.git",
:revision => "245c9e0234cb2ad542483a336324e982f1a22934"
end
go_resource "github.com/jacobsa/util" do
url "https://github.com/jacobsa/util.git",
:revision => "72fcc8628ce3fceba2ccb4a443015bee085cd7a4"
end
go_resource "golang.org/x/net" do
url "https://go.googlesource.com/net",
:revision => "621fff363a1d9ad7fdd0bfa9d80a42881267deb4", :using => :git
end
go_resource "golang.org/x/oauth2" do
url "https://go.googlesource.com/oauth2",
:revision => "36ff901f7b5bce4fa4f23b4e0e02ab9a70ebf3ec", :using => :git
end
go_resource "golang.org/x/sys" do
url "https://go.googlesource.com/sys",
:revision => "58e109635f5d754f4b3a8a0172db65a52fcab866", :using => :git
end
go_resource "google.golang.org/api" do
url "https://code.googlesource.com/google-api-go-client",
:revision => "d56f328dc27a4097cd0fc535e7c77807f48a2e84", :using => :git
end
go_resource "google.golang.org/cloud" do
url "https://code.googlesource.com/gocloud",
:revision => "5a049ccadb4555e68e9b7ed0a86f79c147bc8e7b", :using => :git
end
def install
ENV["GOPATH"] = buildpath
Language::Go.stage_deps resources, buildpath/"src"
# Make the gcsfuse source code from the tarball appear in the appropriate
# place in the $GOPATH workspace, then build the binaries with names that
# don't conflict with directory names.
mkdir_p "src/github.com/googlecloudplatform"
ln_s buildpath, "src/github.com/googlecloudplatform/gcsfuse"
system "go", "build", "-o", "gcsfuse.bin"
system "go", "build", "-o", "gcsfuse_mount_helper.bin", "./gcsfuse_mount_helper"
bin.install "gcsfuse.bin" => "gcsfuse"
bin.install "gcsfuse_mount_helper.bin" => "gcsfuse_mount_helper"
end
test do
system bin/"gcsfuse", "--help"
system bin/"gcsfuse_mount_helper", "--help"
end
end

View file

@ -1,92 +0,0 @@
class Gitfs < Formula
homepage "http://www.presslabs.com/gitfs"
url "https://github.com/PressLabs/gitfs/archive/0.2.5.tar.gz"
sha1 "a54056c1ba4095daae63e3a6e3c2505943691a34"
head "https://github.com/PressLabs/gitfs.git"
bottle do
cellar :any
revision 1
sha1 "5c28b1731d96c22d97115869704d3f3ecf5ef825" => :mavericks
sha1 "fb78f15aaf634698e2ad0b985ecf5ed53d6b2e95" => :mountain_lion
end
depends_on "libgit2" => "with-libssh2"
depends_on :osxfuse
depends_on :python if MacOS.version <= :snow_leopard
resource "fusepy" do
url "https://pypi.python.org/packages/source/f/fusepy/fusepy-2.0.2.tar.gz"
sha1 "d838388a122006614cd699cbcc5aa681194a5ae1"
end
# MUST update this every time libgit2 gets a major update.
# Check if upstream have updated the requirements, and patch if necessary.
resource "pygit2" do
url "https://pypi.python.org/packages/source/p/pygit2/pygit2-0.22.0.tar.gz"
sha1 "f60501293c2ed18224f880e419de10b6f52209d9"
end
resource "atomiclong" do
url "https://pypi.python.org/packages/source/a/atomiclong/atomiclong-0.1.1.tar.gz"
sha1 "4b3cab22c1910426fff41eef4cc69f418ec78a35"
end
resource "cffi" do
url "https://pypi.python.org/packages/source/c/cffi/cffi-0.8.6.tar.gz"
sha1 "4e82390201e6f30e9df8a91cd176df19b8f2d547"
end
resource "pycparser" do
url "https://pypi.python.org/packages/source/p/pycparser/pycparser-2.10.tar.gz"
sha1 "378a7a987d40e2c1c42cad0b351a6fc0a51ed004"
end
def install
# This exactly replicates how upstream handled the last pygit2 update
# https://github.com/PressLabs/gitfs/commit/8a53f6ba5ce2a4497779077a9249e7b4b5fcc32b
# https://github.com/PressLabs/gitfs/pull/178
inreplace "requirements.txt", "pygit2==0.21.4", "pygit2==0.22.0"
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
%w[fusepy pygit2 atomiclong cffi pycparser].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
def caveats; <<-EOS.undent
gitfs clones repos in /var/lib/gitfs. You can either create it with
sudo mkdir -m 1777 /var/lib/gitfs or use another folder with the
repo_path argument.
Also make sure OSXFUSE is properly installed by running brew info osxfuse.
EOS
end
test do
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
Pathname("test.py").write <<-EOS.undent
import gitfs
import pygit2
pygit2.init_repository('testing/.git', True)
EOS
system "python", "test.py"
assert File.exist?("testing/.git/config")
cd "testing" do
system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew.git"
assert_match /homebrew/, shell_output("git remote")
end
end
end

View file

@ -1,31 +0,0 @@
require 'formula'
class Ifuse < Formula
homepage 'http://www.libimobiledevice.org/'
url 'https://github.com/libimobiledevice/ifuse/archive/1.1.3.tar.gz'
sha1 '447e9309fba1979be98ec83a4627b421dbd83032'
bottle do
cellar :any
sha1 "36193691045028ec72dfde9b862b752a3e53ee2b" => :mavericks
sha1 "9793481729e287f0a1b0e43bdcda489880d81a83" => :mountain_lion
end
revision 1
head 'http://cgit.sukimashita.com/ifuse.git'
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "glib"
depends_on "libimobiledevice"
depends_on :osxfuse
def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end

View file

@ -1,23 +0,0 @@
require "formula"
class Mp3fs < Formula
homepage "http://khenriks.github.io/mp3fs/"
url "https://github.com/khenriks/mp3fs/releases/download/v0.91/mp3fs-0.91.tar.gz"
sha1 "a9e65b8453f4444ec6faba045120e7efb18da20e"
depends_on "pkg-config" => :build
depends_on "lame"
depends_on :osxfuse
depends_on "libid3tag"
depends_on "flac"
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match /mp3fs version: #{Regexp.escape(version)}/,
shell_output("#{bin}/mp3fs -V")
end
end

View file

@ -1,68 +0,0 @@
require 'formula'
class Ntfs3g < Formula
homepage 'http://www.tuxera.com/community/ntfs-3g-download/'
url 'http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2014.2.15.tgz'
sha1 'c9836f340b508f5d7776156e5afb02434d3f0174'
bottle do
sha1 "fe9fe60adee81fdb8fc5eb73bfbf5ac9d75db9e0" => :mavericks
sha1 "dac4e91b2e2f42fed5e1b703bb80754b863d2059" => :mountain_lion
sha1 "38407af2c691ff1cf6feb64030f9f29ac883e7b0" => :lion
end
depends_on 'pkg-config' => :build
depends_on :osxfuse
depends_on 'gettext'
def install
# Workaround for hardcoded /sbin in ntfsprogs
inreplace "ntfsprogs/Makefile.in", "/sbin", sbin
ENV.append "LDFLAGS", "-lintl"
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--exec-prefix=#{prefix}",
"--mandir=#{man}",
"--with-fuse=external"]
system "./configure", *args
system "make"
system "make install"
# Install a script that can be used to enable automount
File.open("#{sbin}/mount_ntfs", File::CREAT|File::TRUNC|File::RDWR, 0755) do |f|
f.puts <<-EOS.undent
#!/bin/bash
VOLUME_NAME="${@:$#}"
VOLUME_NAME=${VOLUME_NAME#/Volumes/}
USER_ID=#{Process.uid}
GROUP_ID=#{Process.gid}
if [ `/usr/bin/stat -f %u /dev/console` -ne 0 ]; then
USER_ID=`/usr/bin/stat -f %u /dev/console`
GROUP_ID=`/usr/bin/stat -f %g /dev/console`
fi
#{opt_bin}/ntfs-3g \\
-o volname="${VOLUME_NAME}" \\
-o local \\
-o negative_vncache \\
-o auto_xattr \\
-o auto_cache \\
-o noatime \\
-o windows_names \\
-o user_xattr \\
-o inherit \\
-o uid=$USER_ID \\
-o gid=$GROUP_ID \\
-o allow_other \\
"$@" >> /var/log/mount-ntfs-3g.log 2>&1
exit $?;
EOS
end
end
end

View file

@ -1,32 +0,0 @@
require "formula"
class Ori < Formula
homepage "http://ori.scs.stanford.edu/"
url "https://bitbucket.org/orifs/ori/downloads/ori-0.8.1.tgz"
sha1 "3ad31ab14bdb9305423f66cb919fdc445215f3c9"
revision 1
bottle do
cellar :any
revision 1
sha1 "d2c83bbfdd11528b16ff74b933181ec32d8f37d2" => :mavericks
sha1 "cce9adc1c8c8f59be72ef65b4642fff74cbe8cb3" => :mountain_lion
sha1 "7cbe224571134ff554cb323ebc2ab13a8dd0cf4d" => :lion
end
depends_on "pkg-config" => :build
depends_on "scons" => :build
depends_on "boost"
depends_on :osxfuse
depends_on "libevent"
depends_on "openssl"
def install
scons "BUILDTYPE=RELEASE"
scons "install", "PREFIX=#{prefix}"
end
test do
system "#{bin}/ori"
end
end

View file

@ -1,29 +0,0 @@
class RofsFiltered < Formula
homepage "https://github.com/gburca/rofs-filtered/"
url "https://github.com/gburca/rofs-filtered/archive/rel-1.5.tar.gz"
sha256 "4c97a85e7993945e417c45cc80fcb8ad780f310142b8f94e8b3bed005733a698"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "intltool" => :build
depends_on "gettext" => :build
depends_on :osxfuse
depends_on :macos => :yosemite
def install
ENV.prepend "CPPFLAGS", "-I#{HOMEBREW_PREFIX}/include/osxfuse/fuse"
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-libfuse=#{HOMEBREW_PREFIX}"
system "make", "install"
end
test do
system "rofs-filtered"
end
end

View file

@ -1,22 +0,0 @@
require "formula"
class S3Backer < Formula
homepage "https://code.google.com/p/s3backer/"
url "https://s3backer.googlecode.com/files/s3backer-1.3.7.tar.gz"
sha1 "c75c7e70cb38bcac41d342a2bdb63e9505ab550a"
revision 1
depends_on "pkg-config" => :build
depends_on "openssl"
depends_on :osxfuse
def install
inreplace "configure", "-lfuse", "-losxfuse"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/s3backer", "--version"
end
end

View file

@ -1,38 +0,0 @@
require "formula"
class S3fs < Formula
homepage "https://code.google.com/p/s3fs/"
stable do
url "https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.78.tar.gz"
sha1 "613b448d84451400d3ee14aa9104ba6d9e90bd0b"
end
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gnutls"
depends_on "nettle"
depends_on "libgcrypt"
# S3fs currently relies on fuse4x which uses unsigned kexts, barred by Yosemite.
# Fuse4x and osxfuse are merging so monitor this over time and switch if/when possible.
depends_on "fuse4x"
head "https://github.com/s3fs-fuse/s3fs-fuse.git"
def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking", "--with-gnutls", "--prefix=#{prefix}"
system "make", "install"
end
def caveats; <<-EOS.undent
Be aware that s3fs has some caveats concerning S3 "directories"
that have been created by other tools. See the following issue for
details:
http://code.google.com/p/s3fs/issues/detail?id=73
EOS
end
end

View file

@ -1,34 +0,0 @@
class SimpleMtpfs < Formula
desc "Simple MTP fuse filesystem driver"
homepage "https://github.com/phatina/simple-mtpfs"
url "https://github.com/phatina/simple-mtpfs/archive/simple-mtpfs-0.2.tar.gz"
sha256 "3ce41fb194971041aa6ad15292a6cdad70eb8b5fc3e7a03a638bc3cac0c515ea"
bottle do
cellar :any
sha256 "9dbbd8411c7803abaafe8ad7100074c8e1541f729ac8ef7a0a239ad55dd5e78b" => :mavericks
sha256 "17ec5b77e7227cb6d0d474fc05e3ebcc90da5b6d791053d81710abb07e6f8376" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on :osxfuse
depends_on "libmtp"
needs :cxx11
def install
ENV.cxx11
system "./autogen.sh"
system "./configure",
"--prefix=#{prefix}",
"CPPFLAGS=-I/usr/local/include/osxfuse",
"LDFLAGS=-L/usr/local/include/osxfuse"
system "make"
system "make", "install"
end
test do
system bin/"simple-mtpfs", "-h"
end
end

View file

@ -1,53 +0,0 @@
class Sshfs < Formula
homepage "https://osxfuse.github.io/"
url "https://github.com/osxfuse/sshfs/archive/osxfuse-sshfs-2.5.0.tar.gz"
sha256 "8ea4d3d5bc0f343998009d7eb138e3804490f6a22e890c6de4eadc6fd2414ae0"
bottle do
cellar :any
sha1 "af9fbf03eff59354c0d4071de23ad44f68d986bd" => :mavericks
sha1 "7fa3b69a4f3f4cd06a32c11df13db57f21437c88" => :mountain_lion
sha1 "8828686ca5c28061825fe059d7d6b9afae5972e9" => :lion
end
option "without-sshnodelay", "Don't compile NODELAY workaround for ssh"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on :osxfuse
depends_on "glib"
# Fixes issue https://github.com/osxfuse/sshfs/pull/4
patch :DATA
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--disable-sshnodelay" if build.without? "sshnodelay"
system "autoreconf", "--force", "--install"
system "./configure", *args
system "make", "install"
end
test do
system "#{bin}/sshfs", "--version"
end
end
__END__
--- a/sshfs.c
+++ b/sshfs.c
@@ -313,6 +313,8 @@
"ConnectTimeout",
"ControlMaster",
"ControlPath",
+ "ForwardAgent",
+ "ForwardX11",
"GlobalKnownHostsFile",
"GSSAPIAuthentication",
"GSSAPIDelegateCredentials",

View file

@ -1,21 +0,0 @@
require "formula"
class Stormfs < Formula
homepage "https://github.com/benlemasurier/stormfs"
url "https://github.com/benlemasurier/stormfs/archive/v0.03.tar.gz"
sha1 "bae7aeb409b910dd3844cd930f3ad9427d7e1609"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "glib"
depends_on "fuse4x"
depends_on "curl" if MacOS.version <= :leopard
def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end

View file

@ -1,39 +0,0 @@
require "formula"
class Tup < Formula
homepage "http://gittup.org/tup/"
url "https://github.com/gittup/tup/archive/v0.7.3.tar.gz"
sha1 "e817ab1888b8aab7f784efa7fb90e91c216fae8d"
head "https://github.com/gittup/tup.git"
bottle do
cellar :any
sha1 "5c27fa734b85b0f170bc0ecc6fd5678160f2e5c9" => :mavericks
sha1 "d6b68541413f647c5902e8256b4e7e454a2b176c" => :mountain_lion
sha1 "938305bff64f99d93e093919e0c808f5786de913" => :lion
end
depends_on "pkg-config" => :build
depends_on :osxfuse
# Backport Yosemite compilation fix
stable do
if MacOS.version >= :yosemite
patch do
url "https://github.com/gittup/tup/commit/9812548b4d3833644f0cf8f70f62628a75ffbb56.diff"
sha1 "439fb1e1692c95e09703d6c41055c06855276307"
end
end
end
def install
ENV["TUP_LABEL"] = version
system "./build.sh"
bin.install "build/tup"
man1.install "tup.1"
end
test do
system "#{bin}/tup", "-v"
end
end

View file

@ -1,22 +0,0 @@
require 'formula'
class Wdfs < Formula
homepage 'http://noedler.de/projekte/wdfs/'
url 'http://noedler.de/projekte/wdfs/wdfs-1.4.2.tar.gz'
sha1 '71ae2e355d00bc1fbe7093b0a3b15ddc76a74516'
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'neon'
depends_on :osxfuse
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/wdfs", "-v"
end
end

View file

@ -1,39 +0,0 @@
require "formula"
class Xmount < Formula
homepage "https://www.pinguin.lu/index.php"
url "http://files.pinguin.lu/xmount-0.5.0.tar.gz"
sha1 "3a0b208db38f987ce97458bbae8db20e1f3cdba9"
depends_on "pkg-config" => :build
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on :osxfuse
depends_on "libewf"
patch :DATA
def install
system "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal"
system "autoconf"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end
__END__
diff a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -2,9 +2,9 @@
AC_PREREQ(2.61)
AC_INIT([xmount], [0.5.0], [bugs@pinguin.lu])
-AM_INIT_AUTOMAKE(@PACKAGE_NAME@, @PACKAGE_VERSION@)
AC_CONFIG_SRCDIR([xmount.c])
AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CC