diff --git a/activemq/activemq.spec b/activemq/activemq.spec index 6ca0f2abe3..e4b6914d70 100644 --- a/activemq/activemq.spec +++ b/activemq/activemq.spec @@ -31,8 +31,8 @@ Distribution: OpenPKG Community Class: EVAL Group: Network License: Apache -Version: 5.7.0 -Release: 20121028 +Version: 5.9.0 +Release: 20131023 # list of sources Source0: http://www.apache.org/dist/activemq/apache-activemq/%{version}/apache-activemq-%{version}-bin.tar.gz @@ -64,7 +64,6 @@ PreReq: OpenPKG, openpkg >= 20100101, java %build %install - # create installation hierarchy %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ @@ -78,7 +77,7 @@ PreReq: OpenPKG, openpkg >= 20100101, java # install program components %{l_shtool} install -c -m 644 \ - bin/run.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/activemq/ + bin/activemq* $RPM_BUILD_ROOT%{l_prefix}/libexec/activemq/ cp -rp lib \ $RPM_BUILD_ROOT%{l_prefix}/libexec/activemq/ cp -rp webapps/* \ diff --git a/activemq/activemq.txt b/activemq/activemq.txt index cac905c02d..b7e8d6e1e5 100644 --- a/activemq/activemq.txt +++ b/activemq/activemq.txt @@ -5,41 +5,36 @@ ## --> + xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans.xsd + http://activemq.apache.org/schema/core + http://activemq.apache.org/schema/core/activemq-core.xsd"> - - file:///@l_prefix@/etc/activemq/activemq.properties - + + file:///@l_prefix@/etc/activemq/activemq.properties + + + + - - - - - - - - - - - - - - + + + + + + + @@ -47,87 +42,83 @@ - - - - - - + - + - + - + - - - - - + + + + + - - - org.example - - - - - - - - - - - - - - - + + + + - + + + + + + - - + - - - - + + + + + + + + + + - - + + + + + + - + - + - + + @@ -135,58 +126,70 @@ - - - + + + - - - + + + - - - + + + + - - + + + + + + + + + + + + + - + + + + + + + - - + + @@ -194,6 +197,7 @@ + diff --git a/activemq/rc.activemq b/activemq/rc.activemq index 54593d8ebe..cfc8afb107 100644 --- a/activemq/rc.activemq +++ b/activemq/rc.activemq @@ -5,7 +5,7 @@ %config activemq_enable="$openpkg_rc_def" - activemq_flags="-server -Xms256M -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dcom.sun.management.jmxremote" + activemq_flags="-server -Xms1G -Xmx1G -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dcom.sun.management.jmxremote" activemq_log_prolog="true" activemq_log_epilog="true" activemq_log_numfiles="10" @@ -33,15 +33,24 @@ rcService activemq active yes && exit 0 activemq_home="@l_prefix@/libexec/activemq" activemq_base="@l_prefix@/libexec/activemq" + activemq_conf="@l_prefix@/etc/activemq" + activemq_data="@l_prefix@/var/activemq/data" activemq_classpath="@l_prefix@/etc/activemq" cmd="@l_prefix@/bin/java" cmd="$cmd $activemq_flags" cmd="$cmd -Dactivemq.home=\"${activemq_home}\"" cmd="$cmd -Dactivemq.base=\"${activemq_base}\"" + cmd="$cmd -Dactivemq.conf=\"${activemq_conf}\"" + cmd="$cmd -Dactivemq.data=\"${activemq_data}\"" cmd="$cmd -Dactivemq.classpath=\"${activemq_classpath}\"" cmd="$cmd -Djava.endorsed.dirs=\"@l_prefix@/libexec/activemq/endorsed\"" cmd="$cmd -Djava.io.tmpdir=@l_prefix@/var/activemq/run" - cmd="$cmd -jar @l_prefix@/libexec/activemq/run.jar" + cmd="$cmd -Djava.util.logging.config.file=@l_prefix@/etc/activemq/logging.properties" + cmd="$cmd -Djava.security.auth.login.config=@l_prefix@/etc/activemq/login.config" + cmd="$cmd -Dhawtio.realm=activemq" + cmd="$cmd -Dhawtio.role=admins" + cmd="$cmd -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal" + cmd="$cmd -jar @l_prefix@/libexec/activemq/activemq.jar" cmd="$cmd start" ( eval `JAVA_PLATFORM="sun-jdk" @l_prefix@/bin/java-toolkit -e` JETTY_RUN=@l_prefix@/var/activemq/run