2014-09-10 21:46:27 +00:00
|
|
|
class Stuntman < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Implementation of the STUN protocol"
|
2014-09-10 21:46:27 +00:00
|
|
|
homepage "http://www.stunprotocol.org/"
|
|
|
|
url "http://www.stunprotocol.org/stunserver-1.2.7.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "51415bf83339f059c6a65bbece9b758e3f198cb86063a0f1b4f12d825c87640e"
|
2014-09-10 21:46:27 +00:00
|
|
|
head "https://github.com/jselbie/stunserver.git"
|
2015-09-16 07:34:16 +00:00
|
|
|
revision 1
|
2014-09-10 21:46:27 +00:00
|
|
|
|
2014-09-11 04:16:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-21 04:27:17 +00:00
|
|
|
sha256 "70c9db5d6503508bb29ea52a1bc006909abb4d03da9ad34a4d39fb42a2f5ea81" => :el_capitan
|
|
|
|
sha256 "1704bb907134f990497cec59b9e279c88104e3bd723b999ac8b64d3f9e4c6ac7" => :yosemite
|
|
|
|
sha256 "316bcef26dd5e39a141f4761c19919a249859d04992ab99d4417c23e383c5ffb" => :mavericks
|
2014-09-11 04:16:59 +00:00
|
|
|
end
|
|
|
|
|
2014-09-10 21:46:27 +00:00
|
|
|
depends_on "boost" => :build
|
2015-09-16 07:34:16 +00:00
|
|
|
depends_on "openssl"
|
2014-09-10 21:46:27 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "stunserver", "stunclient", "stuntestcode"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/stuntestcode"
|
|
|
|
end
|
|
|
|
end
|