aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/apache-activemq.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-19 11:33:59 -0700
committerAdam Vandenberg2010-03-19 11:33:59 -0700
commita1460a8f6926d7b17fb2eff3d6d428c514bcf99e (patch)
tree5a943d39e17b04977057715ba033fa2d864c3d7e /Library/Formula/apache-activemq.rb
parentbfa655980ab903aa526af103d61cf2bbdc0c025b (diff)
downloadhomebrew-a1460a8f6926d7b17fb2eff3d6d428c514bcf99e.tar.bz2
Apache ActiveMQ 5.3.0
This formula installs all of the software to "libexec", and writes a simple startup script to bin.
Diffstat (limited to 'Library/Formula/apache-activemq.rb')
-rw-r--r--Library/Formula/apache-activemq.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/apache-activemq.rb b/Library/Formula/apache-activemq.rb
new file mode 100644
index 000000000..0a927e39d
--- /dev/null
+++ b/Library/Formula/apache-activemq.rb
@@ -0,0 +1,40 @@
+require 'formula'
+
+class ApacheActivemq <Formula
+ url 'http://www.gossipcheck.com/mirrors/apache/activemq/apache-activemq/5.3.0/apache-activemq-5.3.0-bin.tar.gz'
+ homepage 'http://activemq.apache.org/'
+ md5 'f4b88a2b4ffd21cb804cdbd4f2e0152f'
+
+ 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