FreeBSD Bugzilla – Attachment 241791 Details for
Bug 271100
net/activemq: Version update, explict jdk specification and rc script bug fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Update of the existing net/activemq port
activemq.shar (text/plain), 9.32 KB, created by
James Elstone
on 2023-04-27 15:24:58 UTC
(
hide
)
Description:
Update of the existing net/activemq port
Filename:
MIME Type:
Creator:
James Elstone
Created:
2023-04-27 15:24:58 UTC
Size:
9.32 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># activemq ># activemq/Makefile ># activemq/distinfo ># activemq/files ># activemq/files/activemq.in ># activemq/pkg-descr ># activemq/pkg-plist ># >echo c - activemq >mkdir -p activemq > /dev/null 2>&1 >echo x - activemq/Makefile >sed 's/^X//' >activemq/Makefile << 'b445d64fd681654beba0e5c65e689512' >XPORTNAME= activemq >XPORTVERSION= 5.18.1 >XCATEGORIES= net java >XMASTER_SITES= APACHE/${PORTNAME}/${PORTVERSION} >XDISTNAME= apache-${PORTNAME}-${PORTVERSION} >XEXTRACT_SUFX= -bin.tar.gz >X >XMAINTAINER= james@elstone.net >XCOMMENT= Messaging and Integration Patterns provider >XWWW= https://activemq.apache.org >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XUSES= cpe >XCPE_VENDOR= apache >XUSE_JAVA= yes >XJAVA_VERSION= 18 >XUSE_RC_SUBR= activemq >X >XNO_ARCH= yes >XNO_BUILD= yes >X >XUSERS= activemq >XGROUPS= activemq >X >XPORTDATA= * >XPORTDOCS= * >XPORTEXAMPLES= * >X >XOPTIONS_DEFINE= DOCS EXAMPLES >X >Xdo-install: >X @${REINPLACE_CMD} -i '' -e 's|$\{sys:activemq.data\}\/audit.log|\$\{sys:activemq.logs\}\/audit.log|g' ${WRKSRC}/conf/log4j2.properties >X @${REINPLACE_CMD} -i '' -e 's|$\{sys:activemq.data\}\/activemq.log|\$\{sys:activemq.logs\}\/activemq.log|g' ${WRKSRC}/conf/log4j2.properties >X @${MKDIR} ${STAGEDIR}${ETCDIR} >X cd ${WRKSRC}/conf && for f in *; do \ >X ${INSTALL_DATA} ${WRKSRC}/conf/$$f ${STAGEDIR}${ETCDIR}/$$f.sample; \ >X done >X @${MKDIR} ${STAGEDIR}${DATADIR}/bin >X ${INSTALL_SCRIPT} ${WRKSRC}/bin/activemq* ${STAGEDIR}${DATADIR}/bin >X ${RLN} ${STAGEDIR}${DATADIR}/bin/activemq ${STAGEDIR}${PREFIX}/bin >X ${RLN} ${STAGEDIR}${DATADIR}/bin/activemq-diag ${STAGEDIR}${PREFIX}/bin >X ${INSTALL_DATA} ${WRKSRC}/bin/activemq.jar ${WRKSRC}/bin/wrapper.jar \ >X ${STAGEDIR}${DATADIR}/bin >X @${MKDIR} ${STAGEDIR}/var/db/activemq >X ${RLN} ${STAGEDIR}/var/db/activemq ${STAGEDIR}${DATADIR}/data >X ${RLN} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${DATADIR}/conf >X cd ${WRKSRC} && ${COPYTREE_SHARE} "lib webapps webapps-demo" \ >X ${STAGEDIR}${DATADIR} >X >Xdo-install-DOCS-on: >X cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} >X ${INSTALL_DATA} ${WRKSRC}/NOTICE ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} >X ${RLN} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DATADIR}/docs >X >Xdo-install-EXAMPLES-on: >X cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} >X ${RLN} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples >X >X.include <bsd.port.mk> >b445d64fd681654beba0e5c65e689512 >echo x - activemq/distinfo >sed 's/^X//' >activemq/distinfo << '156596d1324bb69537faddd8de1a9da5' >XTIMESTAMP = 1682592741 >XSHA256 (apache-activemq-5.18.1-bin.tar.gz) = fedd7bde9af5babaeb072bf7aeb2065d9021c26163ded639c87a32d673795472 >XSIZE (apache-activemq-5.18.1-bin.tar.gz) = 49261889 >156596d1324bb69537faddd8de1a9da5 >echo c - activemq/files >mkdir -p activemq/files > /dev/null 2>&1 >echo x - activemq/files/activemq.in >sed 's/^X//' >activemq/files/activemq.in << 'c1cf36771ea6ce4057b54d3ce3c7efd9' >X#!/bin/sh >X >X# PROVIDE: activemq >X# REQUIRE: NETWORKING SERVERS >X# BEFORE: DAEMON >X# KEYWORD: shutdown >X# >X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# activemq_enable (bool): Set to NO by default. >X# Set it to YES to enable activemq. >X# >X# activemq_user (username): Set to activemq by default. >X# Set it to required username. >X# >X# activemq_group (group): Set to activemq by default. >X# Set it to required group. >X# >X# activemq_classpath (path): Set to %%DATADIR%% by default. >X# Set it to java classes directory. >X# >X# activemq_home (path): Set to %%DATADIR%% by default. >X# Set it to java home directory. >X# >X# activemq_javargs (args): Set to -Xmx256M by default. >X# See java -h for available arguments. >X# >X# activemq_stop_timeout (num): Set to "10" by default. >X# Set the timeout in seconds to shutdown. >X# >X# activemq_java_home (path): Set the path to the jvm to use. >X# Set to openJDK18 by default. >X# >X# activemq_debug_precmd (bool): Give java command line that >X# will be run, when started for debugging outside >X# of being demonised. Helpful for people new to >X# activemq. >X# >X# activemq_audit_log (bool): Enable audit logging by default. >X# In production, you will have to evaluate enabling >X# this option (set to NO to disable), as it has >X# disk I/O and storage implications which may >X# impact expected performance. By disabling the >X# audit log, security logging maybe reduced >X# depending on your configuration. >X >X. /etc/rc.subr >X >Xname="activemq" >Xrcvar=activemq_enable >Xload_rc_config $name >X >X# Set defaults >X: ${activemq_enable:=NO} >X: ${activemq_user:=activemq} >X: ${activemq_group:=activemq} >X: ${activemq_classpath:=%%ETCDIR%%} >X: ${activemq_conf:=%%ETCDIR%%} >X: ${activemq_data:=/var/db/activemq} >X: ${activemq_logs:=/var/log/activemq} >X: ${activemq_home:=%%DATADIR%%} >X: ${activemq_javargs:='-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote'} >X: ${activemq_stop_timeout:="10"} >X: ${activemq_hostname:=`/bin/hostname`} >X: ${activemq_java_home:='%%LOCALBASE%%/openjdk18/bin/java'} >X: ${activemq_debug_precmd:=NO} >X: ${activemq_audit_log:=YES} >X >Xpidfile=/var/run/${name}.pid >X >Xrequired_files="%%ETCDIR%%/activemq.xml" >Xjar_file="%%DATADIR%%/bin/activemq.jar" >X >Xactivemq_audit_args="" >Xif checkyesno activemq_audit_log; then >X activemq_audit_args="-Dorg.apache.activemq.audit=true" >Xfi >X >Xjolokia_conf="file:${activemq_conf}/jolokia-access.xml" >X >Xjava_options="-server -jar ${activemq_javargs} \ >X-Dactivemq.classpath=${activemq_classpath} \ >X-Dactivemq.conf=${activemq_conf} \ >X-Dactivemq.data=${activemq_data} \ >X-Dactivemq.logs=${activemq_logs} \ >X-Dactivemq.home=${activemq_home} \ >X-Dactivemq.base=${activemq_home} \ >X-Djolokia.conf=${jolokia_conf} \ >X${activemq_audit_args} \ >X-Dactivemq.hostname=${activemq_hostname}" >X >Xjava_command="${activemq_java_home} ${java_options} ${jar_file}" >X >Xcommand="/usr/sbin/daemon" >Xcommand_args="-p ${pidfile} -o ${activemq_logs}/daemon.log ${java_command} start" >Xstart_precmd="activemq_precmd" >Xstatus_cmd="activemq_status" >Xstop_cmd="activemq_stop" >X >Xactivemq_precmd() { >X touch ${pidfile} >X chown ${activemq_user}:${activemq_group} ${pidfile} >X /usr/bin/install -d -m 0750 -o ${activemq_user} -g ${activemq_group} ${activemq_logs} >X /usr/bin/install -d -m 0750 -o ${activemq_user} -g ${activemq_group} ${activemq_data} >X if checkyesno activemq_debug_precmd; then >X echo "Starting with Java command: ${java_command}" >X fi >X} >X >Xactivemq_stop() { >X rc_pid=$(activemq_check_pidfile $pidfile) >X >X if [ -z "$rc_pid" ]; then >X [ -n "$rc_fast" ] && return 0 >X echo "${name} not running? (check $pidfile)." >X return 1 >X fi >X >X echo "Stopping ${name}." >X /usr/bin/su -m $activemq_user -c "${java_command} stop" >/dev/null >X activemq_wait_max_for_pid ${activemq_stop_timeout} ${rc_pid} >X kill -KILL ${rc_pid} 2> /dev/null && echo "Killed." >X rm -f ${pidfile} >X} >X >Xactivemq_status() { >X rc_pid=$(activemq_check_pidfile $pidfile) >X >X if [ -z "$rc_pid" ]; then >X [ -n "$rc_fast" ] && return 0 >X echo "${name} not running? (check $pidfile)." >X return 1 >X fi >X echo "${name} is running as pid ${rc_pid}." >X} >X >Xactivemq_check_pidfile() { >X _pidfile=$1 >X if [ -z "$_pidfile" ]; then >X err 3 'USAGE: activemq_check_pidfile pidfile' >X fi >X if [ ! -f $_pidfile ]; then >X debug "pid file ($_pidfile): not readable." >X return >X fi >X read _pid _junk < $_pidfile >X if [ -z "$_pid" ]; then >X debug "pid file ($_pidfile): no pid in file." >X return >X fi >X if [ -n "`/usr/bin/su -m $activemq_user -c '%%LOCALBASE%%/bin/jps -l' | grep -e "^$_pid $jar_file\$"`" ]; then >X echo -n $_pid >X fi >X} >X >Xactivemq_wait_max_for_pid() { >X _timeout=$1 >X shift >X _pid=$1 >X _prefix= >X while [ $_timeout -gt 0 ] ; do >X echo -n ${_prefix:-"Waiting (max $_timeout secs) for PIDS: "}$_pid >X _prefix=", " >X sleep 2 >X kill -0 $_pid 2> /dev/null || break >X _timeout=$(($_timeout-2)) >X done >X if [ -n "$_prefix" ]; then >X echo "." >X fi >X} >X >Xrun_rc_command "$1" >c1cf36771ea6ce4057b54d3ce3c7efd9 >echo x - activemq/pkg-descr >sed 's/^X//' >activemq/pkg-descr << '5c7dfa166240afb2f663b75aa4fc702d' >XApache ActiveMQ is the most popular and powerful open source messaging >Xand Integration Patterns provider. >5c7dfa166240afb2f663b75aa4fc702d >echo x - activemq/pkg-plist >sed 's/^X//' >activemq/pkg-plist << 'f43cd17325e6b90f86d6e1c5a3982196' >Xbin/activemq >Xbin/activemq-diag >X@owner activemq >X@group activemq >X@sample %%ETCDIR%%/activemq.xml.sample >X@sample %%ETCDIR%%/broker.ks.sample >X@sample %%ETCDIR%%/broker.ts.sample >X@sample %%ETCDIR%%/credentials-enc.properties.sample >X@sample %%ETCDIR%%/credentials.properties.sample >X@sample %%ETCDIR%%/groups.properties.sample >X@sample %%ETCDIR%%/java.security.sample >X@sample %%ETCDIR%%/jetty-realm.properties.sample >X@sample %%ETCDIR%%/jetty.xml.sample >X@sample %%ETCDIR%%/jmx.access.sample >X@sample %%ETCDIR%%/jmx.password.sample >X@sample %%ETCDIR%%/jolokia-access.xml.sample >X@sample %%ETCDIR%%/log4j2.properties.sample >X@sample %%ETCDIR%%/logging.properties.sample >X@sample %%ETCDIR%%/login.config.sample >X@sample %%ETCDIR%%/users.properties.sample >X@dir(,,0750) /var/db/activemq >X@group >X@owner >f43cd17325e6b90f86d6e1c5a3982196 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
james
:
maintainer-approval+
Actions:
View
Attachments on
bug 271100
: 241791 |
241792