aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/s3fs.rb
blob: 46bb041a72281360f26923cba66fec0747f37fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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