Changeset 92567 for trunk


Ignore:
Timestamp:
May 1, 2012, 3:38:32 PM (7 years ago)
Author:
ryandesign@…
Message:

rabbitmq-server: update to 2.8.2; see #34285

Location:
trunk/dports/net/rabbitmq-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/rabbitmq-server/Portfile

    r88245 r92567  
    44PortSystem 1.0
    55name            rabbitmq-server
    6 version         2.7.1
     6version         2.8.2
    77categories      net
    88maintainers     paperplanes.de:meyer openmaintainer
     
    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
     
    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
     
    6364build.env-append HOME=${workpath}
    6465
     66build.env-append VERSION=${version}
     67
     68destroot.env-append VERSION=${version}
     69
    6570destroot.target install_bin
    6671
     
    7176
    7277destroot.keepdirs \
     78    ${destroot}${confdir} \
    7379    ${destroot}${logdir} \
    7480    ${destroot}${mnesiadbdir}
     
    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" \
  • trunk/dports/net/rabbitmq-server/files/rabbitmq-script-wrapper

    r87609 r92567  
    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
     
    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}
Note: See TracChangeset for help on using the changeset viewer.