aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJuraj Bednar2015-03-22 22:20:49 +0100
committerMike McQuaid2015-03-23 18:01:11 +0000
commit94467f3d68b58f69c6ee391bbe1a1ed1a236123b (patch)
tree4c067a7c98d338803f714e24d08e850cb8437481 /Library/Formula
parent01463d236fe25a8cccc49603c9a2d69524961649 (diff)
downloadhomebrew-94467f3d68b58f69c6ee391bbe1a1ed1a236123b.tar.bz2
encfs 1.8
Update to latest encfs. It already contains many fixes that were patched here manually. Also removed patch to path to osxfuse, new configure contains the right path already. Closes #37974. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/encfs.rb79
1 files changed, 4 insertions, 75 deletions
diff --git a/Library/Formula/encfs.rb b/Library/Formula/encfs.rb
index 53d5bfbef..61ff30ba8 100644
--- a/Library/Formula/encfs.rb
+++ b/Library/Formula/encfs.rb
@@ -2,27 +2,10 @@ require 'formula'
class Encfs < Formula
homepage 'https://vgough.github.io/encfs/'
- revision 1
stable do
- url 'https://github.com/vgough/encfs/archive/v1.7.5.tar.gz'
- sha1 'f8bb2332b7a88f510cd9a18adb0f4fb903283edd'
-
- # Fix link times and xattr on links for OSX
- # Proper fix is already in upstream/dev
- patch :DATA
-
- # Fix pod2man errors
- # https://github.com/vgough/encfs/issues/28
- patch do
- url "https://github.com/vgough/encfs/commit/61dc26fd8b3630e31e7ae8202ef9f31f1a4f9644.diff"
- sha1 "beaa7214b9cbd2e5c1680bca1bd72d5a6398420e"
- end
-
- patch do
- url "https://github.com/vgough/encfs/commit/5fa5f02109855446c9d96b11ae8a2ee56f921595.diff"
- sha1 "4b229f3172a2d68f2f61cef57569d918b7b95bc5"
- end
+ url 'https://github.com/vgough/encfs/archive/v1.8.tar.gz'
+ sha1 'f3723aa7ba64ad3fc6087dba6c26bf6d54762085'
end
head 'https://github.com/vgough/encfs.git'
@@ -44,38 +27,11 @@ class Encfs < Formula
depends_on 'openssl'
depends_on :osxfuse
depends_on 'xz'
+ needs :cxx11
def install
- # Fix linkage with gettext libs
- # Proper fix is already in upstream/master
- # Adapt to changes in recent Xcode by making local copy of endian-ness definitions
- mkdir "encfs/sys"
- cp "#{MacOS.sdk_path}/usr/include/sys/_endian.h", "encfs/sys/endian.h"
-
- if build.stable?
- inreplace "configure.ac", "LIBINTL=-lgettextlib", "LIBINTL=-lgettextlib -lintl"
-
- # Fix runtime "dyld: Symbol not found" errors
- # Following 3 ugly inreplaces are temporary solution
- # Proper fix is already in upstream
- inreplace ["encfs/Cipher.cpp", "encfs/CipherFileIO.cpp", "encfs/NullCipher.cpp",
- "encfs/NullNameIO.cpp", "encfs/SSL_Cipher.cpp"], "using boost::shared_ptr;", ""
-
- inreplace ["encfs/BlockNameIO.cpp", "encfs/Cipher.cpp", "encfs/CipherFileIO.cpp",
- "encfs/Context.cpp", "encfs/DirNode.cpp", "encfs/encfs.cpp",
- "encfs/encfsctl.cpp", "encfs/FileNode.cpp", "encfs/FileUtils.cpp",
- "encfs/MACFileIO.cpp", "encfs/main.cpp", "encfs/makeKey.cpp",
- "encfs/NameIO.cpp", "encfs/NullCipher.cpp", "encfs/NullNameIO.cpp",
- "encfs/SSL_Cipher.cpp", "encfs/StreamNameIO.cpp", "encfs/test.cpp"], "shared_ptr<", "boost::shared_ptr<"
-
- inreplace ["encfs/Context.cpp", "encfs/encfsctl.cpp", "encfs/FileUtils.cpp"], "boost::boost::shared_ptr<", "boost::shared_ptr<"
- end
-
+ ENV.cxx11
system "make", "-f", "Makefile.dist"
- # This provides a workaround for https://github.com/vgough/encfs/issues/18
- # osxfuse's installation directory cannot be given as a parameter to configure script
- inreplace "configure", "/usr/include/osxfuse /usr/local/include/osxfuse",
- "/usr/include/osxfuse /usr/local/include/osxfuse #{HOMEBREW_PREFIX}/include/osxfuse"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{HOMEBREW_PREFIX}"
@@ -93,31 +49,4 @@ class Encfs < Formula
end
end
-__END__
---- a/encfs/encfs.cpp
-+++ b/encfs/encfs.cpp
-@@ -489,7 +489,11 @@
-
- int _do_chmod(EncFS_Context *, const string &cipherPath, mode_t mode)
- {
-+#ifdef __APPLE__
-+ return lchmod( cipherPath.c_str(), mode );
-+#else
- return chmod( cipherPath.c_str(), mode );
-+#endif
- }
-
- int encfs_chmod(const char *path, mode_t mode)
-@@ -706,7 +710,11 @@
- int _do_setxattr(EncFS_Context *, const string &cyName,
- tuple<const char *, const char *, size_t, uint32_t> data)
- {
-+#ifdef __APPLE__
-+ int options = XATTR_NOFOLLOW;
-+#else
- int options = 0;
-+#endif
- return ::setxattr( cyName.c_str(), data.get<0>(), data.get<1>(),
- data.get<2>(), data.get<3>(), options );
- }