From 95dbc435ad8a703cee5601a31965737a3430400d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 21 Jul 2011 20:17:10 -0700 Subject: hornetq 2.2.5 --- Library/Formula/hornetq.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Library/Formula/hornetq.rb (limited to 'Library/Formula') diff --git a/Library/Formula/hornetq.rb b/Library/Formula/hornetq.rb new file mode 100644 index 000000000..5c23aa494 --- /dev/null +++ b/Library/Formula/hornetq.rb @@ -0,0 +1,33 @@ +require 'formula' + +class Hornetq < Formula + url 'http://downloads.jboss.org/hornetq/hornetq-2.2.5.Final.tar.gz' + homepage 'http://www.jboss.org/hornetq' + md5 'e83f9c87320d1d0fc5d836384110ca7d' + + version '2.2.5' + + 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 -- cgit v1.2.3