2010-06-18 03:49:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Encfs < Formula
|
2014-08-23 13:20:02 +00:00
|
|
|
homepage 'https://vgough.github.io/encfs/'
|
2013-11-12 05:22:57 +00:00
|
|
|
|
2014-05-01 10:27:18 +00:00
|
|
|
stable do
|
2015-03-26 02:10:01 +00:00
|
|
|
url 'https://github.com/vgough/encfs/archive/v1.8.1.tar.gz'
|
|
|
|
sha1 '107e1bcc4b8fd60821a7c8dd99f0c7c37cf5619c'
|
2014-05-01 10:27:18 +00:00
|
|
|
end
|
|
|
|
|
2014-08-23 13:20:02 +00:00
|
|
|
head 'https://github.com/vgough/encfs.git'
|
2014-05-01 10:27:18 +00:00
|
|
|
|
2014-08-23 13:36:32 +00:00
|
|
|
bottle do
|
2015-03-29 12:55:55 +00:00
|
|
|
sha256 "4d79b4413c12e591e6de81a4ba3624f31b0937da17974fc63ac81cc82d08d6aa" => :mavericks
|
|
|
|
sha256 "a63c7df51551d64eee771f7f6ab712367e951bad1a5933b423256ff81eddf0b2" => :mountain_lion
|
2014-08-23 13:36:32 +00:00
|
|
|
end
|
|
|
|
|
2014-08-23 13:20:02 +00:00
|
|
|
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'
|
2014-09-10 05:35:52 +00:00
|
|
|
depends_on :osxfuse
|
2014-08-23 13:20:02 +00:00
|
|
|
depends_on 'xz'
|
2015-03-22 21:20:49 +00:00
|
|
|
needs :cxx11
|
2010-06-18 03:49:12 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-22 21:20:49 +00:00
|
|
|
ENV.cxx11
|
2014-08-23 13:20:02 +00:00
|
|
|
system "make", "-f", "Makefile.dist"
|
2011-09-01 20:59:27 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-03-21 23:51:31 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-boost=#{HOMEBREW_PREFIX}"
|
2010-06-18 03:49:12 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2014-09-29 22:41:40 +00:00
|
|
|
|
|
|
|
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
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|
2013-11-12 05:22:57 +00:00
|
|
|
|
|
|
|
|