geph4 4.2.1 (new formula)

Closes #72208.

Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
master
CaptainYukinoshitaHachiman 2021-02-10 12:20:33 +08:00 committed by Carlo Cabrera
parent 4a9d95cea3
commit e8482e66db
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
1 changed files with 22 additions and 0 deletions

22
Formula/geph4.rb Normal file
View File

@ -0,0 +1,22 @@
class Geph4 < Formula
desc "Modular Internet censorship circumvention system to deal with national filtering"
homepage "https://geph.io/"
url "https://github.com/geph-official/geph4/archive/v4.2.1.tar.gz"
sha256 "bb5aaadb4fc55a22ec0be59761f9f5e71299e2c944c8b74432b45f278fb755c9"
license "GPL-3.0-only"
depends_on "rust" => :build
def install
File.delete("Cross.toml")
remove_dir(".cargo")
Dir.chdir "geph4-client"
system "cargo", "install", "--bin", "geph4-client", *std_cargo_args
end
test do
assert_equal "{\"error\":\"wrong password\"}",
shell_output("#{bin}/geph4-client sync --username 'test' --password 'test' --credential-cache ~/test.db")
.lines.last.strip
end
end