mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-08 17:13:58 +00:00
gocryptfs-mac 2.5.1
Closes #76. Signed-off-by: Adrian Ho <215702+gromgit@users.noreply.github.com>
This commit is contained in:
parent
be87b72d90
commit
51d9a114af
1 changed files with 7 additions and 11 deletions
|
|
@ -3,8 +3,8 @@ require_relative "../require/macfuse"
|
||||||
class GocryptfsMac < Formula
|
class GocryptfsMac < Formula
|
||||||
desc "Encrypted overlay filesystem written in Go"
|
desc "Encrypted overlay filesystem written in Go"
|
||||||
homepage "https://nuetzlich.net/gocryptfs/"
|
homepage "https://nuetzlich.net/gocryptfs/"
|
||||||
url "https://github.com/rfjakob/gocryptfs/releases/download/v2.3.2/gocryptfs_v2.3.2_src-deps.tar.gz"
|
url "https://github.com/rfjakob/gocryptfs/releases/download/v2.5.1/gocryptfs_v2.5.1_src-deps.tar.gz"
|
||||||
sha256 "2641145d5adfd259959b1fd7b182b61d0ce2ce3e24361b8f3e69fd3f6caa73cc"
|
sha256 "80c3771c9f7e65af9326b107ddb7a30e9c3c7bf8823412b9615b7f77352cdde7"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
|
@ -18,22 +18,18 @@ class GocryptfsMac < Formula
|
||||||
depends_on "pkg-config" => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on MacfuseRequirement
|
depends_on MacfuseRequirement
|
||||||
depends_on :macos
|
depends_on :macos
|
||||||
depends_on "openssl@1.1"
|
depends_on "openssl@3"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
setup_fuse
|
setup_fuse
|
||||||
ENV["GOPATH"] = buildpath
|
system "./build.bash"
|
||||||
(buildpath/"src/github.com/rfjakob/gocryptfs").install buildpath.children
|
bin.install "gocryptfs", "gocryptfs-xray/gocryptfs-xray"
|
||||||
cd "src/github.com/rfjakob/gocryptfs" do
|
man1.install "Documentation/gocryptfs.1", "Documentation/gocryptfs-xray.1"
|
||||||
system "./build.bash"
|
|
||||||
bin.install "gocryptfs"
|
|
||||||
prefix.install_metafiles
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
(testpath/"encdir").mkpath
|
(testpath/"encdir").mkpath
|
||||||
pipe_output("#{bin}/gocryptfs -init #{testpath}/encdir", "password", 0)
|
pipe_output("#{bin}/gocryptfs -init #{testpath}/encdir", "password", 0)
|
||||||
assert_predicate testpath/"encdir/gocryptfs.conf", :exist?
|
assert_path_exists testpath/"encdir/gocryptfs.conf"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue