homebrew-core/Formula/activemq.rb
Max Howell f347a9ab48 Revert unintentional permissions changes
Not sure what caused this, but needless to say, it wasn't desired.
2011-07-27 10:58:46 +01:00

25 lines
610 B
Ruby

require 'formula'
class Activemq < Formula
url 'http://www.apache.org/dyn/closer.cgi?path=activemq/apache-activemq/5.4.2/apache-activemq-5.4.2-bin.tar.gz'
homepage 'http://activemq.apache.org/'
md5 '804c1a4c01b80321a743648add1fdd06'
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')
end
end