Ticket #26312: rabbitmq-2.0.0.diff

File rabbitmq-2.0.0.diff, 3.0 KB (added by mikeb@…, 14 years ago)

Patch to update port to rabbitmq-server 2.0.0

  • 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         1.8.1
     6version         2.0.0
    77categories      net
    88maintainers     paperplanes.de:meyer rabbitmq.com:tonyg openmaintainer
    99platforms       darwin
     
    1818master_sites    http://www.rabbitmq.com/releases/rabbitmq-server/v${version}/
    1919
    2020checksums \
    21     md5 2471bdf0ba77b73aed1cc8eddc10aa19 \
    22     sha1 f8a803eb7a5fa78074d47196ed920bf1edcfb240 \
    23     rmd160 433cd232c14c1e8dc66e2359da55dd665a9b1ea2
     21    md5 04b99018085d4156b404d56377fc1c62 \
     22    sha1 3c72e4bd540caa81180701414c9bb5ec298d0365 \
     23    rmd160 cb7ad2c8b0282b9d11e4eae47646e6b59e81a8e2
    2424
    2525depends_lib     port:erlang
    2626depends_build   port:xmlto port:libxslt
     
    7575
    7676    reinplace -E "s:(/etc/rabbitmq/rabbitmq.conf):${prefix}\\1:g" \
    7777        ${realsbin}/rabbitmq-env
    78     reinplace -E "s:(CLUSTER_CONFIG_FILE)=/:\\1=${prefix}/:" \
    79         ${realsbin}/rabbitmq-multi \
    80         ${realsbin}/rabbitmq-server \
    81         ${realsbin}/rabbitmqctl
    82     reinplace -E "s:(LOG_BASE)=/:\\1=${prefix}/:" \
    83         ${realsbin}/rabbitmq-multi \
    84         ${realsbin}/rabbitmq-server \
    85         ${realsbin}/rabbitmqctl
    86     reinplace -E "s:(MNESIA_BASE)=/:\\1=${prefix}/:" \
    87         ${realsbin}/rabbitmq-multi \
    88         ${realsbin}/rabbitmq-server \
    89         ${realsbin}/rabbitmqctl
    90     reinplace -E "s:(PIDS_FILE)=/:\\1=${prefix}/:" \
    91         ${realsbin}/rabbitmq-multi \
    92         ${realsbin}/rabbitmq-server \
    93         ${realsbin}/rabbitmqctl
     78    foreach var {CONFIG_FILE CLUSTER_CONFIG_FILE LOG_BASE MNESIA_BASE PIDS_FILE} {
     79        reinplace -E "s:^($var)=/:\\1=${prefix}/:" \
     80            ${realsbin}/rabbitmq-multi \
     81            ${realsbin}/rabbitmq-server \
     82            ${realsbin}/rabbitmqctl
     83    }
    9484
    9585    xinstall -m 555 ${filespath}/rabbitmq-script-wrapper \
    9686                ${wrappersbin}/rabbitmq-multi
    97     xinstall -m 555 ${filespath}/rabbitmq-asroot-script-wrapper \
    98                 ${wrappersbin}/rabbitmq-activate-plugins
    9987
    10088    reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:" \
    10189                ${wrappersbin}/rabbitmq-multi
     
    10391                ${wrappersbin}/rabbitmq-multi
    10492    reinplace -E "s:/var/lib/rabbitmq:${prefix}/var/lib/rabbitmq:" \
    10593                ${wrappersbin}/rabbitmq-multi
    106     reinplace -E "s:/usr/lib/rabbitmq/bin/:${prefix}/lib/rabbitmq/bin/:" \
    107                 ${wrappersbin}/rabbitmq-activate-plugins
    108     reinplace -E "s:/var/lib/rabbitmq:${prefix}/var/lib/rabbitmq:" \
    109                 ${wrappersbin}/rabbitmq-activate-plugins
    11094    file copy ${wrappersbin}/rabbitmq-multi ${wrappersbin}/rabbitmq-server
    11195    file copy ${wrappersbin}/rabbitmq-multi ${wrappersbin}/rabbitmqctl
    112     file copy ${wrappersbin}/rabbitmq-activate-plugins ${wrappersbin}/rabbitmq-deactivate-plugins
    11396}
    11497
    11598pre-install {