37 lines
1.6 KiB
Ruby
37 lines
1.6 KiB
Ruby
class Stuntman < Formula
|
|
desc "Implementation of the STUN protocol"
|
|
homepage "http://www.stunprotocol.org/"
|
|
url "http://www.stunprotocol.org/stunserver-1.2.16.tgz"
|
|
sha256 "4479e1ae070651dfc4836a998267c7ac2fba4f011abcfdca3b8ccd7736d4fd26"
|
|
license "Apache-2.0"
|
|
head "https://github.com/jselbie/stunserver.git", branch: "master"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/href=.*?stunserver[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "743a5f66d4564fbab9bbf2973ab49ee3f8736522a94315c3c7d5cbb818441c60"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "794de99474fb9f2dd0797e2a08f1d27b52f2fdc7540165cad5703212bb24ded0"
|
|
sha256 cellar: :any_skip_relocation, monterey: "be26b274322810de150f7f119cd89e905d136752e603cf3ca81121d2a8a3e014"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "74b6ba4ad33c987b2b3e8a70f4c4e3c383cfa1955a0eb499b02edbf4ed7c8a45"
|
|
sha256 cellar: :any_skip_relocation, catalina: "e337d1ad8978b0bb926bca46992575b686145f9e8eb43dbc990e4efe08539722"
|
|
sha256 cellar: :any_skip_relocation, mojave: "d1b2a91211d57f057081fba43d0ed6ae3b05c40114b1e77f0cd3c0189f7ad07c"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "a7055d814d7645e408d92ffeba5ff5c1215302bdf4411bbf02e8d49ff40115a6"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "901fccf90a4f4fad5f18e3c8f429f22504244db3a12ecbc1ef354ad5baf7b988"
|
|
end
|
|
|
|
depends_on "boost" => :build
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "stunserver", "stunclient", "stuntestcode"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/stuntestcode"
|
|
end
|
|
end
|