summaryrefslogtreecommitdiff
path: root/net/apollo
diff options
context:
space:
mode:
authorimil <imil@pkgsrc.org>2012-08-15 10:11:28 +0000
committerimil <imil@pkgsrc.org>2012-08-15 10:11:28 +0000
commit19147164b1012d36cefa03d8f59341b78e72024c (patch)
tree1b076d29ce25fe2e84fa18f23555cb1c24bacb74 /net/apollo
parentbf618cc4880d492b2a894fb192bf1eb3144ba6a3 (diff)
downloadpkgsrc-19147164b1012d36cefa03d8f59341b78e72024c.tar.gz
Initial import of apollo, version 1.4, into the NetBSD Packages Collection.
ActiveMQ Apollo is a faster, more reliable, easier to maintain messaging broker built from the foundations of the original ActiveMQ. It accomplishes this using a radically different threading and message dispatching architecture. In it's current incarnation, Apollo only supports the STOMP protocol but just like the original ActiveMQ, it's been designed to be a multi protocol broker. In future versions it will be adding OpenWire support so it can be compatible with ActiveMQ 5.x JMS clients.
Diffstat (limited to 'net/apollo')
-rw-r--r--net/apollo/DESCR7
-rw-r--r--net/apollo/MESSAGE9
-rw-r--r--net/apollo/Makefile50
-rw-r--r--net/apollo/PLIST103
-rw-r--r--net/apollo/distinfo6
-rw-r--r--net/apollo/patches/patch-bin_apollo45
6 files changed, 220 insertions, 0 deletions
diff --git a/net/apollo/DESCR b/net/apollo/DESCR
new file mode 100644
index 00000000000..e5722015753
--- /dev/null
+++ b/net/apollo/DESCR
@@ -0,0 +1,7 @@
+ActiveMQ Apollo is a faster, more reliable, easier to maintain messaging broker
+built from the foundations of the original ActiveMQ. It accomplishes this using
+a radically different threading and message dispatching architecture.
+In it's current incarnation, Apollo only supports the STOMP protocol but just
+like the original ActiveMQ, it's been designed to be a multi protocol broker.
+In future versions it will be adding OpenWire support so it can be compatible
+with ActiveMQ 5.x JMS clients.
diff --git a/net/apollo/MESSAGE b/net/apollo/MESSAGE
new file mode 100644
index 00000000000..3643e58aa9a
--- /dev/null
+++ b/net/apollo/MESSAGE
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2012/08/15 10:11:28 imil Exp $
+
+If you experience java.net.SocketException errors, disable IPv6 in the
+broker script by adding the following:
+
+export JMX_OPTS="-Djava.net.preferIPv4Stack=true"
+
+===========================================================================
diff --git a/net/apollo/Makefile b/net/apollo/Makefile
new file mode 100644
index 00000000000..2ec2b2eafa3
--- /dev/null
+++ b/net/apollo/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1 2012/08/15 10:11:28 imil Exp $
+#
+
+APOLLOVERS= 1.4
+DISTNAME= apache-apollo-${APOLLOVERS}-unix-distro
+PKGNAME= apollo-${APOLLOVERS}
+CATEGORIES= net java
+MASTER_SITES= ${MASTER_SITE_APACHE:=activemq/activemq-apollo/1.4/}
+
+MAINTAINER= imil@NetBSD.org
+HOMEPAGE= http://activemq.apache.org/apollo/
+COMMENT= Messaging broker built from the foundations of ActiveMQ
+LICENSE= apache-2.0
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/apache-apollo-1.4
+
+USE_JAVA= run
+NO_BUILD= yes
+USE_TOOLS+= pax
+
+EGDIR= share/examples/apollo
+
+INSTALLATION_DIRS= bin lib/apollo ${EGDIR} ${PKG_SYSCONFDIR}/apollo
+
+CONF_FILES= ${PREFIX}/${EGDIR}/jul.properties \
+ ${PKG_SYSCONFDIR}/apollo/jul.properties
+
+SUBST_CLASSES+= home
+SUBST_FILES.home= ${WRKSRC}/bin/apollo
+SUBST_SED.home= -e 's,@APOLLO_HOME@,${PREFIX},'
+SUBST_SED.home+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},'
+SUBST_STAGE.home= post-patch
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/apollo ${DESTDIR}${PREFIX}/bin
+
+ ${INSTALL_DATA} ${WRKSRC}/etc/jul.properties \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+
+ cd ${WRKSRC}/lib && ${PAX} -wr * ${DESTDIR}${PREFIX}/lib/apollo
+ ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/lib/apollo/*.jar
+
+ cd ${WRKSRC}/examples && ${PAX} -wr * ${DESTDIR}${PREFIX}/${EGDIR}
+ ${FIND} ${DESTDIR}${PREFIX}/${EGDIR} -type f -print | \
+ ${XARGS} ${CHMOD} ${SHAREMODE}
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/apollo/PLIST b/net/apollo/PLIST
new file mode 100644
index 00000000000..ae81f6a0384
--- /dev/null
+++ b/net/apollo/PLIST
@@ -0,0 +1,103 @@
+@comment $NetBSD: PLIST,v 1.1 2012/08/15 10:11:28 imil Exp $
+bin/apollo
+lib/apollo/activemq-jaas-5.4.1.jar
+lib/apollo/apollo-bdb-${PKGVERSION}.jar
+lib/apollo/apollo-boot.jar
+lib/apollo/apollo-broker-${PKGVERSION}.jar
+lib/apollo/apollo-cli-${PKGVERSION}.jar
+lib/apollo/apollo-dto-${PKGVERSION}.jar
+lib/apollo/apollo-leveldb-${PKGVERSION}.jar
+lib/apollo/apollo-openwire-${PKGVERSION}.jar
+lib/apollo/apollo-selector-${PKGVERSION}.jar
+lib/apollo/apollo-stomp-${PKGVERSION}.jar
+lib/apollo/apollo-util-${PKGVERSION}.jar
+lib/apollo/apollo-web-${PKGVERSION}.jar
+lib/apollo/asm-3.1.jar
+lib/apollo/commons-codec-1.1.jar
+lib/apollo/commons-lang-2.1.jar
+lib/apollo/commons-logging-1.1.jar
+lib/apollo/gentlyweb-utils-1.5.jar
+lib/apollo/guava-10.0.1.jar
+lib/apollo/hawtbuf-1.9.jar
+lib/apollo/hawtbuf-proto-1.9.jar
+lib/apollo/hawtdispatch-1.11.jar
+lib/apollo/hawtdispatch-scala-1.11.jar
+lib/apollo/hawtdispatch-transport-1.11.jar
+lib/apollo/hawtjni-runtime-1.5.jar
+lib/apollo/jackson-core-asl-1.9.2.jar
+lib/apollo/jackson-jaxrs-1.9.2.jar
+lib/apollo/jackson-mapper-asl-1.9.2.jar
+lib/apollo/jasypt-1.6.jar
+lib/apollo/jersey-core-1.7.jar
+lib/apollo/jersey-server-1.7.jar
+lib/apollo/jetty-all-server-7.6.1.v20120215.jar
+lib/apollo/josql-1.5.jar
+lib/apollo/leveldb-0.2.jar
+lib/apollo/leveldb-api-0.2.jar
+lib/apollo/leveldbjni-1.2.jar
+lib/apollo/leveldbjni-linux32-1.2.jar
+lib/apollo/leveldbjni-linux64-1.2.jar
+lib/apollo/leveldbjni-osx-1.2.jar
+lib/apollo/log4j-1.2.14.jar
+lib/apollo/org.apache.karaf.shell.console-2.2.2.jar
+lib/apollo/scala-library-2.9.1-1.jar
+lib/apollo/scalate-core-1.5.3.jar
+lib/apollo/scalate-util-1.5.3.jar
+lib/apollo/servlet-api-2.5.jar
+lib/apollo/slf4j-api-1.6.1.jar
+lib/apollo/slf4j-log4j12-1.6.1.jar
+lib/apollo/snakeyaml-1.7.jar
+lib/apollo/snappy-0.2.jar
+lib/apollo/snappy-java-1.0.3.jar
+lib/apollo/swagger-core_2.9.1-1.0.1.jar
+lib/apollo/swagger-jaxrs_2.9.1-1.0.1.jar
+lib/apollo/xalan-2.6.0.jar
+share/examples/apollo/java-embedded-broker/pom.xml
+share/examples/apollo/java-embedded-broker/readme.md
+share/examples/apollo/java-embedded-broker/src/main/java/example/EmbeddedBroker.java
+share/examples/apollo/java-embedded-broker/src/main/resources/log4j.properties
+share/examples/apollo/jul.properties
+share/examples/apollo/mqtt/java/pom.xml
+share/examples/apollo/mqtt/java/readme.md
+share/examples/apollo/mqtt/java/src/main/java/example/Listener.java
+share/examples/apollo/mqtt/java/src/main/java/example/Publisher.java
+share/examples/apollo/stomp/cpp/Listener.cpp
+share/examples/apollo/stomp/cpp/Publisher.cpp
+share/examples/apollo/stomp/cpp/readme.md
+share/examples/apollo/stomp/csharp/ApolloExamples/ApolloExamples.sln
+share/examples/apollo/stomp/csharp/ApolloExamples/ApolloExamples.userprefs
+share/examples/apollo/stomp/csharp/ApolloExamples/Listener/AssemblyInfo.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Listener/Listener.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Listener/Listener.csproj
+share/examples/apollo/stomp/csharp/ApolloExamples/Listener/NMSTracer.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Publisher/AssemblyInfo.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Publisher/NMSTracer.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Publisher/Publisher.cs
+share/examples/apollo/stomp/csharp/ApolloExamples/Publisher/Publisher.csproj
+share/examples/apollo/stomp/csharp/readme.md
+share/examples/apollo/stomp/java/pom.xml
+share/examples/apollo/stomp/java/readme.md
+share/examples/apollo/stomp/java/src/main/java/example/Listener.java
+share/examples/apollo/stomp/java/src/main/java/example/Publisher.java
+share/examples/apollo/stomp/perl/listener
+share/examples/apollo/stomp/perl/publisher
+share/examples/apollo/stomp/perl/readme.md
+share/examples/apollo/stomp/php/listener.php
+share/examples/apollo/stomp/php/publisher.php
+share/examples/apollo/stomp/php/readme.md
+share/examples/apollo/stomp/python/listener.py
+share/examples/apollo/stomp/python/publisher.py
+share/examples/apollo/stomp/python/readme.md
+share/examples/apollo/stomp/ruby/catstomp.rb
+share/examples/apollo/stomp/ruby/listener.rb
+share/examples/apollo/stomp/ruby/publisher.rb
+share/examples/apollo/stomp/ruby/readme.md
+share/examples/apollo/stomp/ruby/stompcat.rb
+share/examples/apollo/websocket/css/bootstrap.min.css
+share/examples/apollo/websocket/css/bootstrap.min.responsive.css
+share/examples/apollo/websocket/img/glyphicons-halflings-white.png
+share/examples/apollo/websocket/img/glyphicons-halflings.png
+share/examples/apollo/websocket/index.html
+share/examples/apollo/websocket/js/stomp.js
+share/examples/apollo/websocket/readme.md
+@pkgdir etc/apollo
diff --git a/net/apollo/distinfo b/net/apollo/distinfo
new file mode 100644
index 00000000000..e844e430607
--- /dev/null
+++ b/net/apollo/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2012/08/15 10:11:28 imil Exp $
+
+SHA1 (apache-apollo-1.4-unix-distro.tar.gz) = 777b9de3209f05af30d013d52c12f68f8391ab54
+RMD160 (apache-apollo-1.4-unix-distro.tar.gz) = ba9e5703e62aa7c243ad5a616a3950ab79ac08eb
+Size (apache-apollo-1.4-unix-distro.tar.gz) = 27147106 bytes
+SHA1 (patch-bin_apollo) = aaf00080ec67780102ae535050f1d15b54041994
diff --git a/net/apollo/patches/patch-bin_apollo b/net/apollo/patches/patch-bin_apollo
new file mode 100644
index 00000000000..455a9acaebe
--- /dev/null
+++ b/net/apollo/patches/patch-bin_apollo
@@ -0,0 +1,45 @@
+$NetBSD: patch-bin_apollo,v 1.1 2012/08/15 10:11:28 imil Exp $
+
+Various fixes regarding expected PATHs
+
+--- bin/apollo.orig 2012-07-31 17:36:24.000000000 +0000
++++ bin/apollo
+@@ -29,6 +29,9 @@ else
+ fi
+ fi
+
++JAVA_HOME="@JAVA_HOME@"
++PATH=$PATH:$JAVA_HOME/bin
++
+ # OS specific support.
+ cygwin=false;
+ darwin=false;
+@@ -62,11 +65,11 @@ if [ -z "$APOLLO_HOME" ] ; then
+ fi
+ done
+
+- APOLLO_HOME=`dirname "$PRG"`
++ APOLLO_HOME="@APOLLO_HOME@"
+ cd "$saveddir"
+
+ # make it fully qualified
+- APOLLO_HOME=`cd "$APOLLO_HOME/.." && pwd`
++ # APOLLO_HOME=`cd "$APOLLO_HOME/.." && pwd`
+ fi
+
+ # For Cygwin, ensure paths are in UNIX format before anything is touched
+@@ -101,11 +104,11 @@ if [ ! -x "$JAVACMD" ] ; then
+ exit 1
+ fi
+
+-CLASSPATH="${APOLLO_HOME}/lib/apollo-boot.jar"
++CLASSPATH="${APOLLO_HOME}/lib/apollo/apollo-boot.jar"
+
+-BOOTDIRS="${APOLLO_HOME}/lib"
++BOOTDIRS="${APOLLO_HOME}/lib/apollo"
+ if [ ! -z "$APOLLO_BASE" ] ; then
+- BOOTDIRS="${APOLLO_BASE}/lib:${BOOTDIRS}"
++ BOOTDIRS="${APOLLO_BASE}/lib/apollo:${BOOTDIRS}"
+ fi
+
+ # For Cygwin, switch paths to Windows format before running java