27 lines
705 B
Ruby
27 lines
705 B
Ruby
require "formula"
|
|
|
|
class Stuntman < Formula
|
|
desc "Implementation of the STUN protocol"
|
|
homepage "http://www.stunprotocol.org/"
|
|
url "http://www.stunprotocol.org/stunserver-1.2.7.tgz"
|
|
sha1 "bc315c5f81e5bf9301872d096db8a8ac74089de4"
|
|
head "https://github.com/jselbie/stunserver.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "cba61cc3db211fd4f2b7c8e07284fdfbb4151553" => :mavericks
|
|
sha1 "bf4bc85266aaabc0247860cee0695a7fe93a0d5b" => :mountain_lion
|
|
sha1 "e3e3efbf5fa4160d17e1786c0d30ec65e51cb262" => :lion
|
|
end
|
|
|
|
depends_on "boost" => :build
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "stunserver", "stunclient", "stuntestcode"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/stuntestcode"
|
|
end
|
|
end
|