homebrew-core/Formula/activemq.rb

27 lines
677 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Activemq < Formula
2009-11-26 06:44:52 +00:00
homepage 'http://activemq.apache.org/'
2012-06-08 14:02:08 +00:00
url 'http://www.apache.org/dyn/closer.cgi?path=activemq/apache-activemq/5.6.0/apache-activemq-5.6.0-bin.tar.gz'
sha1 '3205f5fcd61cf8bc7122b2f65ce22f68b2ab487a'
2010-07-09 22:34:49 +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
#!/bin/bash
2012-02-11 19:57:36 +00:00
exec "#{libexec}/bin/#{name}" "$@"
2010-05-03 18:11:25 +00:00
EOS
end
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['*']
2010-08-15 18:20:39 +00:00
(bin+'activemq-admin').write startup_script('activemq-admin')
(bin+'activemq').write startup_script('activemq')
end
end