[64067] trunk/dports/net/rabbitmq-server
ryandesign at macports.org
ryandesign at macports.org
Sun Feb 21 06:45:05 PST 2010
Revision: 64067
http://trac.macports.org/changeset/64067
Author: ryandesign at macports.org
Date: 2010-02-21 06:45:01 -0800 (Sun, 21 Feb 2010)
Log Message:
-----------
rabbitmq-server: update to 1.7.2 and simplify erlang dependency; see #23742
Modified Paths:
--------------
trunk/dports/net/rabbitmq-server/Portfile
trunk/dports/net/rabbitmq-server/files/rabbitmq-asroot-script-wrapper
trunk/dports/net/rabbitmq-server/files/rabbitmq-script-wrapper
Modified: trunk/dports/net/rabbitmq-server/Portfile
===================================================================
--- trunk/dports/net/rabbitmq-server/Portfile 2010-02-21 08:53:59 UTC (rev 64066)
+++ trunk/dports/net/rabbitmq-server/Portfile 2010-02-21 14:45:01 UTC (rev 64067)
@@ -3,8 +3,7 @@
PortSystem 1.0
name rabbitmq-server
-version 1.7.0
-revision 1
+version 1.7.2
categories net
maintainers paperplanes.de:meyer rabbitmq.com:tonyg openmaintainer
platforms darwin
@@ -19,12 +18,11 @@
master_sites http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/
checksums \
- md5 4505ca0fd8718439bd6f5e2af2379e56 \
- sha1 84fb86d403057bb808c1b51deee0c1fca3bf7bef \
- rmd160 092f90946825cc3eb277019805e24db637a559f4
+ md5 fb83be3b1577cdd54459012b85b7631d \
+ sha1 ecc35617cc14cca7752f67b845bcc97e421254b4 \
+ rmd160 ba2db97f88a3b51c6246307244e3f5b40112bb36
-depends_build port:erlang
-depends_run port:erlang
+depends_lib port:erlang
platform darwin 7 {
depends_build-append port:py25-simplejson
Modified: trunk/dports/net/rabbitmq-server/files/rabbitmq-asroot-script-wrapper
===================================================================
--- trunk/dports/net/rabbitmq-server/files/rabbitmq-asroot-script-wrapper 2010-02-21 08:53:59 UTC (rev 64066)
+++ trunk/dports/net/rabbitmq-server/files/rabbitmq-asroot-script-wrapper 2010-02-21 14:45:01 UTC (rev 64067)
@@ -1,4 +1,35 @@
-#!/bin/bash
+#!/bin/sh
+## The contents of this file are subject to the Mozilla Public License
+## Version 1.1 (the "License"); you may not use this file except in
+## compliance with the License. You may obtain a copy of the License at
+## http://www.mozilla.org/MPL/
+##
+## Software distributed under the License is distributed on an "AS IS"
+## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+## License for the specific language governing rights and limitations
+## under the License.
+##
+## The Original Code is RabbitMQ.
+##
+## The Initial Developers of the Original Code are LShift Ltd,
+## Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
+##
+## Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
+## Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
+## are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
+## Technologies LLC, and Rabbit Technologies Ltd.
+##
+## Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift
+## Ltd. Portions created by Cohesive Financial Technologies LLC are
+## Copyright (C) 2007-2010 Cohesive Financial Technologies
+## LLC. Portions created by Rabbit Technologies Ltd are Copyright
+## (C) 2007-2010 Rabbit Technologies Ltd.
+##
+## All Rights Reserved.
+##
+## Contributor(s): ______________________________________.
+##
+
cd /var/lib/rabbitmq
SCRIPT=`basename $0`
@@ -6,7 +37,9 @@
if [ `id -u` = 0 ] ; then
/usr/lib/rabbitmq/bin/${SCRIPT} "$@"
else
- echo -e "\nOnly root should run ${SCRIPT}\n"
+ echo
+ echo "Only root should run ${SCRIPT}"
+ echo
exit 1
fi
Modified: trunk/dports/net/rabbitmq-server/files/rabbitmq-script-wrapper
===================================================================
--- trunk/dports/net/rabbitmq-server/files/rabbitmq-script-wrapper 2010-02-21 08:53:59 UTC (rev 64066)
+++ trunk/dports/net/rabbitmq-server/files/rabbitmq-script-wrapper 2010-02-21 14:45:01 UTC (rev 64067)
@@ -1,15 +1,58 @@
-#!/bin/bash
+#!/bin/sh
+## The contents of this file are subject to the Mozilla Public License
+## Version 1.1 (the "License"); you may not use this file except in
+## compliance with the License. You may obtain a copy of the License at
+## http://www.mozilla.org/MPL/
+##
+## Software distributed under the License is distributed on an "AS IS"
+## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+## License for the specific language governing rights and limitations
+## under the License.
+##
+## The Original Code is RabbitMQ.
+##
+## The Initial Developers of the Original Code are LShift Ltd,
+## Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.
+##
+## Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,
+## Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd
+## are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
+## Technologies LLC, and Rabbit Technologies Ltd.
+##
+## Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift
+## Ltd. Portions created by Cohesive Financial Technologies LLC are
+## Copyright (C) 2007-2010 Cohesive Financial Technologies
+## LLC. Portions created by Rabbit Technologies Ltd are Copyright
+## (C) 2007-2010 Rabbit Technologies Ltd.
+##
+## All Rights Reserved.
+##
+## Contributor(s): ______________________________________.
+##
+
+# Escape spaces and quotes, because shell is revolting.
+for arg in "$@" ; do
+ # Escape quotes in parameters, so that they're passed through cleanly.
+ arg=$(sed -e 's/"/\\"/g' <<-END
+ $arg
+ END
+ )
+ CMDLINE="${CMDLINE} \"${arg}\""
+done
+
cd /var/lib/rabbitmq
SCRIPT=`basename $0`
if [ `id -u` = 0 ] ; then
- sudo -u rabbitmq -H /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
+ sudo -E -u rabbitmq -H /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
elif [ `id -u` = `id -u rabbitmq` ] ; then
/usr/lib/rabbitmq/bin/${SCRIPT} "$@"
else
/usr/lib/rabbitmq/bin/${SCRIPT}
- echo -e "\nOnly root or rabbitmq should run ${SCRIPT}\n"
+ echo
+ echo "Only root or rabbitmq should run ${SCRIPT}"
+ echo
exit 1
fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100221/d17c929a/attachment.html>
More information about the macports-changes
mailing list