31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
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/gocryptfs_v2.3_src-deps.tar.gz"
|
|
sha256 "945e3287311547f9227f4a5b5d051fd6df8b8b41ce2a65f424de9829cc785129"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "f384f63c39b0ce1fabb815e8efb6a14f06cd75d051b7f62ef041058a13fdd369"
|
|
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
|