homebrew-core/Formula/activemq.rb

45 lines
999 B
Ruby

require 'formula'
class Activemq <Formula
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.1/apache-activemq-5.3.1-bin.tar.gz'
homepage 'http://activemq.apache.org/'
md5 '6c75db75987bfab40724d41f6a6373c7'
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
def install
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}
`activemq` is a startup script that will run the server
from its installed location.
EOS
end
end