diff options
| author | Adam Vandenberg | 2011-07-21 20:17:10 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-21 21:05:44 -0700 |
| commit | 95dbc435ad8a703cee5601a31965737a3430400d (patch) | |
| tree | 9546b08d45077ab66e2dcb24da364ead6f07de2b /Library/Formula | |
| parent | 48d9d8dbfd923c3f2e43b8c12aafc1f44c4b27d2 (diff) | |
| download | homebrew-95dbc435ad8a703cee5601a31965737a3430400d.tar.bz2 | |
hornetq 2.2.5
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hornetq.rb | 33 |
1 files changed, 33 insertions, 0 deletions
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 |
