-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgocryptfs.rb
29 lines (25 loc) · 1014 Bytes
/
gocryptfs.rb
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
class Gocryptfs < Formula
desc "Encrypted overlay filesystem written in Go"
homepage "https://nuetzlich.net/gocryptfs/"
url "https://github.com/rfjakob/gocryptfs/releases/download/v2.3.1/gocryptfs_v2.3.1_src-deps.tar.gz"
sha256 "62a856a9771307b34a75a1e9ab9489abe4a4e7e7f9230c2b1046ca037ea2ba50"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "8ba609268953709b02ba038118ea8f5193ef8e5c30318673bd5967e408fad84b"
end
depends_on "go" => :build
depends_on "pkg-config" => :build
depends_on "libfuse"
depends_on :linux # on macOS, requires closed-source macFUSE
depends_on "openssl@3"
def install
system "./build.bash"
bin.install "gocryptfs", "gocryptfs-xray/gocryptfs-xray"
man1.install "Documentation/gocryptfs.1", "Documentation/gocryptfs-xray.1"
end
test do
(testpath/"encdir").mkpath
pipe_output("#{bin}/gocryptfs -init #{testpath}/encdir", "password", 0)
assert_predicate testpath/"encdir/gocryptfs.conf", :exist?
end
end