homebrew-core/Formula/activemq.rb
Caius Durling 33259e5fcf ActiveMQ: Also wrap the activemq binary
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-12 09:32:16 -08:00

26 lines
664 B
Ruby

require 'formula'
class Activemq < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=activemq/apache-activemq/5.5.1/apache-activemq-5.5.1-bin.tar.gz'
homepage 'http://activemq.apache.org/'
md5 '3e10c163c5e3869a9720d47849a5ae29'
skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
def startup_script name
<<-EOS.undent
#!/bin/bash
exec #{libexec}/bin/#{name} $@
EOS
end
def install
rm_rf Dir['bin/linux-x86-*']
prefix.install %w{ LICENSE NOTICE README.txt }
libexec.install Dir['*']
(bin+'activemq-admin').write startup_script('activemq-admin')
(bin+'activemq').write startup_script('activemq')
end
end