2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 08:40:47 +00:00
|
|
|
|
|
|
|
class Activemq <Formula
|
2010-09-20 14:13:07 +00:00
|
|
|
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.4.0/apache-activemq-5.4.0-bin.tar.gz'
|
2009-11-26 06:44:52 +00:00
|
|
|
homepage 'http://activemq.apache.org/'
|
2010-09-20 14:13:07 +00:00
|
|
|
md5 'ac68cb3fee593b6e0267679c6f8e1eff'
|
2010-07-09 22:34:49 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean 'libexec/webapps/admin/WEB-INF/jsp'
|
2010-07-09 22:34:49 +00:00
|
|
|
|
2010-08-15 18:20:39 +00:00
|
|
|
def startup_script name
|
2010-05-03 18:11:25 +00:00
|
|
|
<<-EOS.undent
|
2010-04-07 05:58:35 +00:00
|
|
|
#!/bin/bash
|
2010-08-15 18:20:39 +00:00
|
|
|
exec #{libexec}/bin/#{name} $@
|
2010-05-03 18:11:25 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-09-30 08:40:47 +00:00
|
|
|
def install
|
2010-07-09 22:34:49 +00:00
|
|
|
rm_rf Dir['bin/linux-x86-*']
|
|
|
|
|
2010-05-03 18:11:25 +00:00
|
|
|
prefix.install %w{ LICENSE NOTICE README.txt }
|
|
|
|
libexec.install Dir['*']
|
2009-09-30 08:40:47 +00:00
|
|
|
|
2010-08-15 18:20:39 +00:00
|
|
|
(bin+'activemq-admin').write startup_script('activemq-admin')
|
2009-09-30 08:40:47 +00:00
|
|
|
end
|
|
|
|
end
|