geph4 4.2.1 (new formula)
Closes #72208. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>master
parent
4a9d95cea3
commit
e8482e66db
|
@ -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
|
Loading…
Reference in New Issue