Ticket #34285: rabbitmq-2.8.2.patch

File rabbitmq-2.8.2.patch, 4.3 KB (added by steve@…, 13 years ago)

rabbitmq-server update to release 2.8.2

  • rabbitmq-server/files/rabbitmq-script-wrapper

    diff -Naur '--exclude=.svn' macports/rabbitmq-server/files/rabbitmq-script-wrapper rabbitmq/rabbitmq-server/files/rabbitmq-script-wrapper
    old new  
    1212##  The Original Code is RabbitMQ.
    1313##
    1414##  The Initial Developer of the Original Code is VMware, Inc.
    15 ##  Copyright (c) 2007-2011 VMware, Inc.  All rights reserved.
     15##  Copyright (c) 2007-2012 VMware, Inc.  All rights reserved.
    1616##
    1717
    1818# Escape spaces and quotes, because shell is revolting.
     
    3232if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
    3333    /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
    3434elif [ `id -u` = 0 ] ; then
    35     SHELL=/bin/sh HOME=/var/lib/rabbitmq USER=rabbitmq LOGNAME=rabbitmq PATH="$(eval `PATH=MACPORTS_PREFIX/bin /usr/libexec/path_helper -s`; echo $PATH)" su -m rabbitmq -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
     35    SHELL=/bin/sh HOME=/var/lib/rabbitmq USER=rabbitmq LOGNAME=rabbitmq PATH="$(eval `PATH=@MACPORTS_PREFIX@/bin /usr/libexec/path_helper -s`; echo $PATH)" su -m rabbitmq -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
    3636else
    3737    /usr/lib/rabbitmq/bin/${SCRIPT}
    3838    echo
  • rabbitmq-server/Portfile

    diff -Naur '--exclude=.svn' macports/rabbitmq-server/Portfile rabbitmq/rabbitmq-server/Portfile
    old new  
    33
    44PortSystem 1.0
    55name            rabbitmq-server
    6 version         2.7.1
     6version         2.8.2
    77categories      net
    88maintainers     paperplanes.de:meyer openmaintainer
    99platforms       darwin
     
    2424
    2525checksums \
    2626    ${name}-${version}${extract.suffix} \
    27         sha1 769515be389f413857a932a944611c957c83da2e \
    28         rmd160 903ba8cc47455174ffd7e2df8937c93bf9807706 \
     27        sha1 3d0da2996a30747c5875cfbf887c61d80d765ef4 \
     28        rmd160 89509488902089d3c457dfcf3cc44a6b615b33cf \
    2929    ${name}-generic-unix-${version}${extract.suffix} \
    30         sha1 4ae8be34dabdf0f5582bf1968c3235bd4742e2ec \
    31         rmd160 082b25ca817a5e1584a930cee6850cb3101ab458
     30        sha1 b564d3277af5531f120bff822560b157432b2fa7 \
     31        rmd160 b2e38f9163e05bc73fa793f6120c99940239a7f1
    3232
    3333depends_lib     port:erlang
    3434depends_build   port:libxslt
     
    4848set servergroup rabbitmq
    4949set serverhome ${prefix}/var/lib/rabbitmq
    5050set logdir ${prefix}/var/log/rabbitmq
     51set confdir ${prefix}/etc/rabbitmq
    5152set mnesiadbdir ${prefix}/var/lib/rabbitmq/mnesia
    5253set plistloc ${prefix}/etc/LaunchDaemons/org.macports.rabbitmq-server
    5354set sbindir ${destroot}${prefix}/lib/rabbitmq/bin
     
    6263
    6364build.env-append HOME=${workpath}
    6465
     66build.env-append VERSION=${version}
     67
     68destroot.env-append VERSION=${version}
     69
    6570destroot.target install_bin
    6671
    6772destroot.destdir \
     
    7075    MAN_DIR=${destroot}${prefix}/share/man
    7176
    7277destroot.keepdirs \
     78    ${destroot}${confdir} \
    7379    ${destroot}${logdir} \
    7480    ${destroot}${mnesiadbdir}
    7581
     
    7985}
    8086
    8187post-destroot {
     88    xinstall -d -m 775 ${destroot}${confdir}
    8289    xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${logdir}
    8390    xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${serverhome}
    8491    xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${mnesiadbdir}
    8592
    86     reinplace -E "s:(/etc/rabbitmq/rabbitmq):${prefix}\\1:g" \
    87         ${realsbin}/rabbitmq-env
    88     foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE ENABLED_PLUGINS_FILE} {
    89         reinplace -E "s:^($var)=/:\\1=${prefix}/:" \
    90             ${realsbin}/rabbitmq-server \
    91             ${realsbin}/rabbitmqctl \
    92             ${realsbin}/rabbitmq-plugins
    93     }
     93    reinplace -E "s:^SYS_PREFIX=\${RABBITMQ_HOME}$:SYS_PREFIX=${prefix}:" \
     94        ${realsbin}/rabbitmq-defaults
     95    reinplace -E "s:^SYS_PREFIX=$:SYS_PREFIX=${prefix}:" \
     96        ${realsbin}/rabbitmq-defaults
    9497
    9598    xinstall -m 555 ${filespath}/rabbitmq-script-wrapper \
    9699                ${wrappersbin}/rabbitmq-server
    97     reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:g" \
     100    reinplace -E "s:@MACPORTS_PREFIX@:${prefix}:g" \
    98101                ${wrappersbin}/rabbitmq-server
    99102    reinplace -E "s:/usr/lib/rabbitmq/bin/:${prefix}/lib/rabbitmq/bin/:g" \
    100103                ${wrappersbin}/rabbitmq-server