7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
34 lines
766 B
Ruby
Executable file
34 lines
766 B
Ruby
Executable file
require 'formula'
|
|
|
|
class Activemq <Formula
|
|
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.2/apache-activemq-5.3.2-bin.tar.gz'
|
|
homepage 'http://activemq.apache.org/'
|
|
md5 '17574ad1ee6cc3727bf7447c2421097b'
|
|
|
|
skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
|
|
|
|
def startup_script
|
|
<<-EOS.undent
|
|
#!/bin/bash
|
|
exec #{libexec}/bin/activemq
|
|
EOS
|
|
end
|
|
|
|
def install
|
|
rm_rf Dir['bin/linux-x86-*']
|
|
|
|
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
|