23 lines
817 B
Ruby
23 lines
817 B
Ruby
|
class Onioncat < Formula
|
||
|
desc "VPN-adapter that provides location privacy using Tor or I2P"
|
||
|
homepage "https://www.onioncat.org"
|
||
|
url "https://www.cypherpunk.at/ocat/download/Source/current/onioncat-0.2.2.r569.tar.gz"
|
||
|
version "0.2.2.r569"
|
||
|
sha256 "377777de0d3c731fd2253db02b25562a2ed17e82901d0569308754215223f0bb"
|
||
|
|
||
|
depends_on "tor" => [:recommended, :run]
|
||
|
|
||
|
def install
|
||
|
system "./configure", "--disable-debug",
|
||
|
"--disable-dependency-tracking",
|
||
|
"--disable-silent-rules",
|
||
|
"--prefix=#{prefix}"
|
||
|
system "make", "install"
|
||
|
rm_f "#{bin}/gcat" # just a symlink that does the same as ocat -I
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "#{bin}/ocat", "-i", "fncuwbiisyh6ak3i.onion" # convert keybase's address to IPv6 address format
|
||
|
end
|
||
|
end
|