2011-03-10 05:11:03 +00:00
|
|
|
class Activemq < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Apache ActiveMQ: powerful open source messaging server"
|
2015-03-24 23:37:09 +00:00
|
|
|
homepage "https://activemq.apache.org/"
|
2016-12-27 14:54:08 +00:00
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=/activemq/5.14.3/apache-activemq-5.14.3-bin.tar.gz"
|
|
|
|
sha256 "27fe9c00512a29a047f51c3ac4bae3d2c1374e72973aa900083ea05f1c655db8"
|
2015-02-23 10:47:08 +00:00
|
|
|
|
2015-10-22 12:44:05 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :java => "1.6+"
|
2010-07-09 22:34:49 +00:00
|
|
|
|
2009-09-30 08:40:47 +00:00
|
|
|
def install
|
2014-07-20 21:33:12 +00:00
|
|
|
rm_rf Dir["bin/linux-x86-*"]
|
|
|
|
libexec.install Dir["*"]
|
2015-02-26 14:36:04 +00:00
|
|
|
(bin/"activemq").write_env_script libexec/"bin/activemq", Language::Java.java_home_env("1.6+")
|
2009-09-30 08:40:47 +00:00
|
|
|
end
|
2015-02-23 10:47:08 +00:00
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
plist_options :manual => "activemq start"
|
2016-07-08 02:55:53 +00:00
|
|
|
|
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
|
|
|
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>AbandonProcessGroup</key>
|
|
|
|
<true/>
|
|
|
|
<key>WorkingDirectory</key>
|
2016-07-09 16:11:29 +00:00
|
|
|
<string>#{opt_libexec}</string>
|
2016-07-08 02:55:53 +00:00
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
|
|
|
<string>#{opt_bin}/activemq</string>
|
|
|
|
<string>start</string>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-02-23 10:47:08 +00:00
|
|
|
test do
|
2016-01-27 01:29:55 +00:00
|
|
|
system "#{bin}/activemq", "browse", "-h"
|
2015-02-23 10:47:08 +00:00
|
|
|
end
|
2009-09-30 08:40:47 +00:00
|
|
|
end
|