mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Update to 4.5.b.22
PR: ports/153407 Submitted by: Radim Kolar <hsn@sendmail.cz> (maintainer)
This commit is contained in:
parent
9f02afb743
commit
ef4b6b3d6b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267046
@ -6,10 +6,10 @@
|
||||
#
|
||||
|
||||
PORTNAME= openmq
|
||||
PORTVERSION= 4.5.b.21
|
||||
PORTVERSION= 4.5.b.22
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net java
|
||||
MASTER_SITES= http://download.java.net/mq/open-mq/4.5/b21/ \
|
||||
MASTER_SITES= http://download.java.net/mq/open-mq/4.5/b22/ \
|
||||
http://download.java.net/maven/2/javax/javaee-api/6.0/:2 \
|
||||
http://download.java.net/maven/2/com/sun/grizzly/grizzly-nio-framework/1.9.18a/:3 \
|
||||
http://download.java.net/maven/2/com/sun/woodstock/dependlibs/jhall/2.0/:4
|
||||
|
@ -1,5 +1,5 @@
|
||||
SHA256 (openmq4_5-source.zip) = 4a66b9b8a9b240b059a4727e10fca4c5f3088d37c16b013a221ae4f63c334758
|
||||
SIZE (openmq4_5-source.zip) = 6676302
|
||||
SHA256 (openmq4_5-source.zip) = 0b6f31a02b6c52d672df3afb35aad180dabcbc949de5e75dc513b670f6abb67a
|
||||
SIZE (openmq4_5-source.zip) = 6679372
|
||||
SHA256 (javaee-api-6.0.jar) = a045eac0ff80c5c0fd29b680599f27598abff16b1e6c9df46ce962a4e0b1390e
|
||||
SIZE (javaee-api-6.0.jar) = 979616
|
||||
SHA256 (grizzly-nio-framework-1.9.18a.jar) = 7613172e7f3b6012f3cb6f7f25c3e562742e8ac6490062938015e6d60c22e2e9
|
||||
|
@ -25,7 +25,7 @@
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
|
||||
# $Id$
|
||||
# $FreeBSD$
|
||||
|
||||
# PROVIDE: imq
|
||||
# REQUIRE: DAEMON
|
||||
@ -50,7 +50,8 @@ rcvar=`set_rcvar`
|
||||
load_rc_config $name
|
||||
pidfile=/var/run/imq.pid
|
||||
start_cmd="${name}_start"
|
||||
command=/usr/local/imq/bin/imqbrokerd
|
||||
start_precmd="${name}_build_cmdline"
|
||||
command=%%PREFIX%%/imq/bin/imqbrokerd
|
||||
command_args="-bgnd -silent"
|
||||
command_interpreter="/bin/sh"
|
||||
sigstop=INT
|
||||
@ -66,38 +67,6 @@ if ! checkyesno ${rcvar}; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#check if RESTART feature is enabled
|
||||
if [ -f $CONF_FILE -a -r $CONF_FILE ]; then
|
||||
autorestart=`grep "^RESTART=" $CONF_FILE | cut -c9-`
|
||||
autoargs=`grep "^ARGS=" $CONF_FILE | cut -c6-`
|
||||
if checkyesno autorestart; then
|
||||
command_args="$command_args -autorestart"
|
||||
fi
|
||||
fi
|
||||
|
||||
#add vmargs if needed
|
||||
if [ -n "$imq_vmargs" ]; then
|
||||
command_args="$command_args -vmargs \"$imq_vmargs\""
|
||||
fi
|
||||
|
||||
#load aditional command line arguments from broker config file
|
||||
if [ -n $autoargs ]; then
|
||||
echo "$autoargs" | grep -q -- '-varhome'
|
||||
if [ ! $? -eq 0 ]; then
|
||||
command_args="$command_args -varhome $imq_data $autoargs"
|
||||
else
|
||||
command_args="$command_args $autoargs"
|
||||
fi
|
||||
fi
|
||||
|
||||
#add brokerlist if not yet defined
|
||||
if [ -n "$imq_brokerlist" ]; then
|
||||
echo "$command_args" | grep -q -- '-cluster '
|
||||
if [ ! $? -eq 0 ]; then
|
||||
command_args="$command_args -cluster $imq_brokerlist"
|
||||
fi
|
||||
fi
|
||||
|
||||
imq_start()
|
||||
{
|
||||
if [ -z "$rc_pid" ]; then
|
||||
@ -110,4 +79,46 @@ imq_start()
|
||||
fi
|
||||
}
|
||||
|
||||
imq_build_cmdline()
|
||||
{
|
||||
# add imq_flags
|
||||
if [ -n "$imq_flags" ]; then
|
||||
command_args="$command_args $imq_flags"
|
||||
fi
|
||||
|
||||
#check if RESTART feature is enabled
|
||||
if [ -f $CONF_FILE -a -r $CONF_FILE ]; then
|
||||
autorestart=`grep "^RESTART=" $CONF_FILE | cut -c9-`
|
||||
autoargs=`grep "^ARGS=" $CONF_FILE | cut -c6-`
|
||||
if checkyesno autorestart; then
|
||||
command_args="$command_args -autorestart"
|
||||
fi
|
||||
fi
|
||||
|
||||
#add imq_vmargs if needed
|
||||
if [ -n "$imq_vmargs" ]; then
|
||||
command_args="$command_args -vmargs \"$imq_vmargs\""
|
||||
fi
|
||||
|
||||
#load aditional command line arguments from broker config file
|
||||
if [ -n $autoargs ]; then
|
||||
echo "$autoargs" | grep -q -- '-varhome'
|
||||
if [ ! $? -eq 0 ]; then
|
||||
command_args="$command_args -varhome $imq_data $autoargs"
|
||||
else
|
||||
command_args="$command_args $autoargs"
|
||||
fi
|
||||
fi
|
||||
|
||||
#add brokerlist if not yet defined
|
||||
if [ -n "$imq_brokerlist" ]; then
|
||||
echo "$command_args" | grep -q -- '-cluster '
|
||||
if [ ! $? -eq 0 ]; then
|
||||
command_args="$command_args -cluster $imq_brokerlist"
|
||||
fi
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user