2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 08:40:47 +00:00
|
|
|
|
|
|
|
class Activemq <Formula
|
2010-05-03 18:11:25 +00:00
|
|
|
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.1/apache-activemq-5.3.1-bin.tar.gz'
|
2009-11-26 06:44:52 +00:00
|
|
|
homepage 'http://activemq.apache.org/'
|
2010-05-03 18:11:25 +00:00
|
|
|
md5 '6c75db75987bfab40724d41f6a6373c7'
|
2009-09-30 08:40:47 +00:00
|
|
|
|
2010-05-03 18:11:25 +00:00
|
|
|
aka 'apache-activemq'
|
|
|
|
|
|
|
|
def skip_clean? path
|
|
|
|
path == libexec + 'webapps/admin/WEB-INF/jsp'
|
|
|
|
end
|
|
|
|
|
|
|
|
def startup_script
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
# This is a startup script for Apache ActiveMQ that calls the
|
|
|
|
# real startup script installed to Homebrew's cellar.
|
|
|
|
|
|
|
|
cd #{libexec}
|
|
|
|
bin/activemq
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-09-30 08:40:47 +00:00
|
|
|
def install
|
2010-05-03 18:11:25 +00:00
|
|
|
rm_rf 'bin/linux-x86-32'
|
|
|
|
rm_rf 'bin/linux-x86-64'
|
|
|
|
|
|
|
|
prefix.install %w{ LICENSE NOTICE README.txt }
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
|
|
|
(bin+'activemq').write startup_script
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
ActiveMQ was installed to:
|
|
|
|
#{libexec}
|
2009-09-30 08:40:47 +00:00
|
|
|
|
2010-05-03 18:11:25 +00:00
|
|
|
`activemq` is a startup script that will run the server
|
|
|
|
from its installed location.
|
|
|
|
EOS
|
2009-09-30 08:40:47 +00:00
|
|
|
end
|
|
|
|
end
|