2011-07-22 03:17:10 +00:00
|
|
|
class Hornetq < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Multi-protocol, embeddable, clustered, asynchronous messaging system"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.jboss.org/hornetq"
|
|
|
|
url "http://downloads.jboss.org/hornetq/hornetq-2.4.0.Final-bin.tar.gz"
|
|
|
|
version "2.4.0"
|
|
|
|
sha256 "a774083f6b56b368624eafd85002f7b9d15472690daf6dc6ca04c7561e66b013"
|
2011-07-22 03:17:10 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
def wrapper_script(target)
|
2011-07-22 03:17:10 +00:00
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
cd #{libexec}/bin/
|
|
|
|
./#{target} "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
(bin+"hornet-start").write wrapper_script("run.sh")
|
|
|
|
(bin+"hornet-stop").write wrapper_script("stop.sh")
|
2011-07-22 03:17:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOF.undent
|
|
|
|
HornetQ has been installed to:
|
|
|
|
#{libexec}
|
|
|
|
|
|
|
|
`run.sh` and `stop.sh` have been wrapped as`hornet-start` and `hornet-stop`
|
|
|
|
to avoid naming conflicts.
|
|
|
|
EOF
|
|
|
|
end
|
|
|
|
end
|