25 lines
910 B
Ruby
25 lines
910 B
Ruby
class WireguardGo < Formula
|
|
desc "Userspace Go implementation of WireGuard"
|
|
homepage "https://www.wireguard.com/"
|
|
url "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20181001.tar.xz"
|
|
sha256 "46242e6ddc5f8e2cffbb5cf9634399e1d0f7b9d9634d09c35b65ac8f4bbe222a"
|
|
head "https://git.zx2c4.com/wireguard-go", :using => :git
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "1701eaf394c72b0e92f117d07eb5a05fe3c6c2e690cff97cf2e198178e164823" => :mojave
|
|
sha256 "54dea98cbbd7942e8bce1ed3135b1e5190f91a428e9fb6f699211e8995a82e8e" => :high_sierra
|
|
sha256 "791644f37fbaa1ec7bc4b115f4cc1d19420f110a4c96075bddb4f01048fb2221" => :sierra
|
|
end
|
|
|
|
depends_on "dep" => :build
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "be utun", pipe_output("WG_PROCESS_FOREGROUND=1 #{bin}/wireguard-go notrealutun")
|
|
end
|
|
end
|