Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update to the Apollo 1.3 release. Also install the MQTT plugin by default. #12408

Closed
wants to merge 1 commit into from

3 participants

@chirino

No description provided.

@andypiper

Tested this Formula today. It's great for a fresh install, but for an upgrade there are a couple of issues:

  • the previous version suggested the use of sudo to run the broker - so the files under /usr/local/var/apollo have the wrong permissions for the regular user to run the broker.
  • you need to create a new broker in order to get the 1.3 function - even after the permissions were fixed, the broker started as a 1.2 broker. Perhaps this is something that an Apollo / ActiveMQ admin or developer natively understands.

In both cases, after deleting the old broker and re-creating it with the 1.3 binary, I had no issues.

It could be that the migration steps should be explained in the output at the end of the brew install / upgrade. It is definitely nice not to run as root with the new release.

@adamv
Owner

@andypiper will accept another patch that udpates the caveats; I don't use this software myself to know what to suggest.

@adamv
Owner

Pulled, thanks.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 30 additions and 7 deletions.
  1. +30 −7 Library/Formula/apollo.rb
View
37 Library/Formula/apollo.rb
@@ -7,18 +7,41 @@ class BerkeleyDbJe < Formula
md5 '09fa2cb8431bb4ca5a0a0f83d3d57ed0'
end
+class FuseMQApolloMQTT < Formula
+ homepage 'https://github.com/fusesource/fuse-extra/tree/master/fusemq-apollo/fusemq-apollo-mqtt'
+ url "http://repo.fusesource.com/nexus/content/repositories/public/org/fusesource/fuse-extra/fusemq-apollo-mqtt/1.2/fusemq-apollo-mqtt-1.2-uber.jar"
+ version '1.2'
+ md5 '73ec840bdff182f4bbd8f9e8a60e4af4'
+end
+
class Apollo < Formula
homepage 'http://activemq.apache.org/apollo'
- url "http://archive.apache.org/dist/activemq/activemq-apollo/1.2/apache-apollo-1.2-unix-distro.tar.gz"
- version "1.2"
- md5 '3c74a4070975a6da73653502d647658c'
+ url "http://archive.apache.org/dist/activemq/activemq-apollo/1.3/apache-apollo-1.3-unix-distro.tar.gz"
+ version "1.3"
+ md5 '13759c529b238731ebea269254a840b9'
+
+
+ def options
+ [
+ ["--no-bdb", "Install without bdb store support."],
+ ["--no-mqtt", "Install without MQTT protocol support."]
+ ]
+ end
def install
prefix.install %w{ LICENSE NOTICE readme.html docs examples }
libexec.install Dir['*']
- BerkeleyDbJe.new.brew do
- (libexec+"lib").install Dir['*.jar']
+ unless ARGV.include? "--no-bdb"
+ BerkeleyDbJe.new.brew do
+ (libexec+"lib").install Dir['*.jar']
+ end
+ end
+
+ unless ARGV.include? "--no-mqtt"
+ FuseMQApolloMQTT.new.brew do
+ (libexec+"lib").install Dir['*.jar']
+ end
end
(bin+'apollo').write <<-EOS.undent
@@ -32,7 +55,7 @@ def install
def caveats; <<-EOS.undent
To create the broker:
- #{bin}/apollo create #{var}/apollo
+ #{bin}/apollo create #{var}/apollo
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
@@ -45,7 +68,7 @@ def caveats; <<-EOS.undent
launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename}
Or to start the broker in the foreground run:
- sudo #{var}/apollo/bin/apollo-broker run
+ #{var}/apollo/bin/apollo-broker run
EOS
end
Something went wrong with that request. Please try again.