Removed duplicate ActiveMQ formula

This commit is contained in:
Adam Vandenberg 2010-05-03 11:11:25 -07:00
parent d3ec0ecab7
commit f16d08bca8
2 changed files with 36 additions and 50 deletions

View file

@ -1,18 +1,44 @@
require 'formula'
class Activemq <Formula
url 'http://www.apache.org/dist/activemq/apache-activemq/5.3.0/apache-activemq-5.3.0-bin.tar.gz'
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.1/apache-activemq-5.3.1-bin.tar.gz'
homepage 'http://activemq.apache.org/'
md5 'f4b88a2b4ffd21cb804cdbd4f2e0152f'
md5 '6c75db75987bfab40724d41f6a6373c7'
def install
prefix.install Dir['*']
aka 'apache-activemq'
def skip_clean? path
path == libexec + 'webapps/admin/WEB-INF/jsp'
end
def startup_script
<<-EOS.undent
#!/usr/bin/env bash
# This is a startup script for Apache ActiveMQ that calls the
# real startup script installed to Homebrew's cellar.
cd #{libexec}
bin/activemq
EOS
end
# this tar comes with linux binaries as well, so lets make macosx the default
macosx = bin+'macosx'
bin.install macosx.children
(bin+'linux-x86-64').rmtree
(bin+'linux-x86-32').rmtree
macosx.rmdir
def install
rm_rf 'bin/linux-x86-32'
rm_rf 'bin/linux-x86-64'
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

View file

@ -1,40 +0,0 @@
require 'formula'
class ApacheActivemq <Formula
url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.1/apache-activemq-5.3.1-bin.tar.gz'
homepage 'http://activemq.apache.org/'
md5 '6c75db75987bfab40724d41f6a6373c7'
def skip_clean? path
path == libexec + 'webapps/admin/WEB-INF/jsp'
end
def startup_script
<<-EOS.undent
#!/usr/bin/env bash
# This is a startup script for Apache ActiveMQ that calls the
# real startup script installed to Homebrew's cellar.
pushd #{libexec}
bin/activemq
popd
EOS
end
def install
rm_rf 'bin/linux-x86-32'
rm_rf 'bin/linux-x86-64'
prefix.install %w{ LICENSE NOTICE README.txt }
libexec.install Dir['*']
(bin+'activemq').write startup_script
end
def caveats
<<-EOS.undent
Software was installed to:
#{libexec}
EOS
end
end