2011-07-22 03:17:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Hornetq < Formula
|
|
|
|
homepage 'http://www.jboss.org/hornetq'
|
2012-06-15 17:49:33 +00:00
|
|
|
url 'http://downloads.jboss.org/hornetq/hornetq-2.2.14.Final.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'e02656a93ef9e3cb02cbb8b6e7953b591b59fa71'
|
2011-07-22 03:17:10 +00:00
|
|
|
|
2012-06-15 17:49:33 +00:00
|
|
|
version '2.2.14'
|
2011-07-22 03:17:10 +00:00
|
|
|
|
|
|
|
def wrapper_script target
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
cd #{libexec}/bin/
|
|
|
|
./#{target} "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
|
|
|
bin.mkpath
|
|
|
|
(bin+'hornet-start').write wrapper_script('run.sh')
|
|
|
|
(bin+'hornet-stop').write wrapper_script('stop.sh')
|
|
|
|
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
|