Ticket #32015: rabbitmq270.patch

File rabbitmq270.patch, 3.6 KB (added by steve@…, 13 years ago)

Patch to 2.6.1 portfiles for 2.7.0 release

  • 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  
    2929
    3030SCRIPT=`basename $0`
    3131
    32 if [ `id -u` = 0 ] ; then
    33     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}"
    34 elif [ `id -u` = `id -u rabbitmq` ] ; then
     32if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
    3533    /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
     34elif [ `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}"
    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.6.1
     6version         2.7.0
    77categories      net
    88maintainers     paperplanes.de:meyer openmaintainer
    99platforms       darwin
     
    2424
    2525checksums \
    2626    ${name}-${version}${extract.suffix} \
    27         sha1 628ec7453c0ee8ec3bad0780504e335b48f9b533 \
    28         rmd160 818cd8bfbf5593b0cdb4bd4a71d4b7124472f35c \
     27        sha1 f80d58f6b8635e09c1fbd81650a25182eb6cb4b3 \
     28        rmd160 1cebc445e15f5667566e0fa7012c35f07922321f \
    2929    ${name}-generic-unix-${version}${extract.suffix} \
    30         sha1 2dad2383073d9a1e78236382baf1cbb30f4142f2 \
    31         rmd160 9c75e17f9c4315670965a844c4585c56ef05f020
     30        sha1 735f706ae8490c1d50df42c8a9a4e887a10ccde0 \
     31        rmd160 95471452414eb862c0f456aa427bfa113764c01f
    3232
    3333depends_lib     port:erlang
    3434depends_build   port:libxslt
     
    8383
    8484    reinplace -E "s:(/etc/rabbitmq/rabbitmq):${prefix}\\1:g" \
    8585        ${realsbin}/rabbitmq-env
    86     foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE} {
     86    foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE ENABLED_PLUGINS_FILE} {
    8787        reinplace -E "s:^($var)=/:\\1=${prefix}/:" \
    8888            ${realsbin}/rabbitmq-server \
    89             ${realsbin}/rabbitmqctl
     89            ${realsbin}/rabbitmqctl \
     90            ${realsbin}/rabbitmq-plugins
    9091    }
    9192
    9293    xinstall -m 555 ${filespath}/rabbitmq-script-wrapper \
    9394                ${wrappersbin}/rabbitmq-server
    94 
    95     reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:" \
     95    reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:g" \
    9696                ${wrappersbin}/rabbitmq-server
    97     reinplace -E "s:/usr/lib/rabbitmq/bin/:${prefix}/lib/rabbitmq/bin/:" \
     97    reinplace -E "s:/usr/lib/rabbitmq/bin/:${prefix}/lib/rabbitmq/bin/:g" \
    9898                ${wrappersbin}/rabbitmq-server
    99     reinplace -E "s:/var/lib/rabbitmq:${prefix}/var/lib/rabbitmq:" \
     99    reinplace -E "s:/var/lib/rabbitmq:${prefix}/var/lib/rabbitmq:g" \
    100100                ${wrappersbin}/rabbitmq-server
     101
    101102    file copy ${wrappersbin}/rabbitmq-server ${wrappersbin}/rabbitmqctl
     103    file copy ${wrappersbin}/rabbitmq-server ${wrappersbin}/rabbitmq-plugins
    102104
    103     xinstall -m 644 -W ${mansrc}/man1 rabbitmq-server.1.gz rabbitmqctl.1.gz \
     105    xinstall -m 644 -W ${mansrc}/man1 rabbitmq-server.1.gz rabbitmqctl.1.gz rabbitmq-plugins.1.gz \
    104106        ${mandest}/man1/
    105107    xinstall -m 644 -W ${mansrc}/man5 rabbitmq-env.conf.5.gz ${mandest}/man5/
    106108}