Ticket #27519: rabbitmq_v2_2_2-1.patch
File rabbitmq_v2_2_2-1.patch, 4.8 KB (added by rob@…, 14 years ago) |
---|
-
rabbitmq-server/Portfile
diff -Naur --exclude=.svn macports/rabbitmq-server/Portfile rabbitmq/rabbitmq-server/Portfile
old new 3 3 4 4 PortSystem 1.0 5 5 name rabbitmq-server 6 version 2. 1.16 version 2.2.0 7 7 categories net 8 8 maintainers paperplanes.de:meyer rabbitmq.com:tonyg openmaintainer 9 9 platforms darwin … … 19 19 homepage http://www.rabbitmq.com/ 20 20 master_sites http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/ 21 21 22 checksums sha1 d60bc55f819a56bef00b0bfafd12f707fc985301 \ 23 rmd160 41d312dd934d017d492f2d1ccecdc9bd428e8a8a 22 distfiles ${name}-${version}${extract.suffix} \ 23 ${name}-generic-unix-${version}${extract.suffix} 24 25 checksums \ 26 ${name}-${version}${extract.suffix} md5 65d0644aa4bf24398d13553b6aa6465f \ 27 ${name}-${version}${extract.suffix} sha1 1f426dbc7961a0eac3864e57e623474bf8c46d74 \ 28 ${name}-${version}${extract.suffix} rmd160 7912a9374726cb3d71b09e3ac47f35a2db2c3b1c \ 29 ${name}-generic-unix-${version}${extract.suffix} md5 18b94e2bc4ef649bb9682e14283ecd5f \ 30 ${name}-generic-unix-${version}${extract.suffix} sha1 40d35c4f1c0efd4fb83a8426fce7d8498efd12dc \ 31 ${name}-generic-unix-${version}${extract.suffix} rmd160 c44d631c34e0fc92758396ce514077ab231c0ed2 24 32 25 33 depends_lib port:erlang 26 depends_build port: xmlto port:libxslt34 depends_build port:libxslt 27 35 28 36 platform darwin 8 { 29 37 depends_build-append port:py26-simplejson … … 45 53 set sbindir ${destroot}${prefix}/lib/rabbitmq/bin 46 54 set wrappersbin ${destroot}${prefix}/sbin 47 55 set realsbin ${destroot}${prefix}/lib/rabbitmq/lib/rabbitmq_server-${version}/sbin 56 set mansrc ${workpath}/rabbitmq_server-${version}/share/man 57 set mandest ${destroot}${prefix}/share/man 48 58 49 59 use_configure no 50 60 51 61 use_parallel_build yes 52 62 63 destroot.target install_bin 64 53 65 destroot.destdir \ 54 66 TARGET_DIR=${destroot}${prefix}/lib/rabbitmq/lib/rabbitmq_server-${version} \ 55 67 SBIN_DIR=${sbindir} \ … … 71 83 72 84 reinplace -E "s:(/etc/rabbitmq/rabbitmq.conf):${prefix}\\1:g" \ 73 85 ${realsbin}/rabbitmq-env 74 foreach var {CONFIG_FILE CLUSTER_CONFIG_FILELOG_BASE MNESIA_BASE PIDS_FILE} {86 foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE PIDS_FILE} { 75 87 reinplace -E "s:^($var)=/:\\1=${prefix}/:" \ 76 88 ${realsbin}/rabbitmq-multi \ 77 89 ${realsbin}/rabbitmq-server \ … … 89 101 ${wrappersbin}/rabbitmq-multi 90 102 file copy ${wrappersbin}/rabbitmq-multi ${wrappersbin}/rabbitmq-server 91 103 file copy ${wrappersbin}/rabbitmq-multi ${wrappersbin}/rabbitmqctl 104 105 file copy ${mansrc}/man1/rabbitmq-multi.1.gz ${mandest}/man1/ 106 file copy ${mansrc}/man1/rabbitmq-server.1.gz ${mandest}/man1/ 107 file copy ${mansrc}/man1/rabbitmqctl.1.gz ${mandest}/man1/ 108 file copy ${mansrc}/man5/rabbitmq.conf.5.gz ${mandest}/man5/ 92 109 } 93 110 94 111 pre-install { -
rabbitmq-server/files/rabbitmq-asroot-script-wrapper
diff -Naur --exclude=.svn macports/rabbitmq-server/files/rabbitmq-asroot-script-wrapper rabbitmq/rabbitmq-server/files/rabbitmq-asroot-script-wrapper
old new 1 #!/bin/sh2 ## The contents of this file are subject to the Mozilla Public License3 ## Version 1.1 (the "License"); you may not use this file except in4 ## compliance with the License. You may obtain a copy of the License at5 ## http://www.mozilla.org/MPL/6 ##7 ## Software distributed under the License is distributed on an "AS IS"8 ## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the9 ## License for the specific language governing rights and limitations10 ## under the License.11 ##12 ## The Original Code is RabbitMQ.13 ##14 ## The Initial Developers of the Original Code are LShift Ltd,15 ## Cohesive Financial Technologies LLC, and Rabbit Technologies Ltd.16 ##17 ## Portions created before 22-Nov-2008 00:00:00 GMT by LShift Ltd,18 ## Cohesive Financial Technologies LLC, or Rabbit Technologies Ltd19 ## are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial20 ## Technologies LLC, and Rabbit Technologies Ltd.21 ##22 ## Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift23 ## Ltd. Portions created by Cohesive Financial Technologies LLC are24 ## Copyright (C) 2007-2010 Cohesive Financial Technologies25 ## LLC. Portions created by Rabbit Technologies Ltd are Copyright26 ## (C) 2007-2010 Rabbit Technologies Ltd.27 ##28 ## All Rights Reserved.29 ##30 ## Contributor(s): ______________________________________.31 ##32 33 cd /var/lib/rabbitmq34 35 SCRIPT=`basename $0`36 37 if [ `id -u` = 0 ] ; then38 /usr/lib/rabbitmq/bin/${SCRIPT} "$@"39 else40 echo41 echo "Only root should run ${SCRIPT}"42 echo43 exit 144 fi45