diff -Naur '--exclude=.svn' macports/rabbitmq-server/files/rabbitmq-script-wrapper rabbitmq/rabbitmq-server/files/rabbitmq-script-wrapper
old
|
new
|
|
12 | 12 | ## The Original Code is RabbitMQ. |
13 | 13 | ## |
14 | 14 | ## 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. |
16 | 16 | ## |
17 | 17 | |
18 | 18 | # Escape spaces and quotes, because shell is revolting. |
… |
… |
|
32 | 32 | if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then |
33 | 33 | /usr/lib/rabbitmq/bin/${SCRIPT} "$@" |
34 | 34 | elif [ `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}" |
36 | 36 | else |
37 | 37 | /usr/lib/rabbitmq/bin/${SCRIPT} |
38 | 38 | echo |
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.7.1 |
| 6 | version 2.8.2 |
7 | 7 | categories net |
8 | 8 | maintainers paperplanes.de:meyer openmaintainer |
9 | 9 | platforms darwin |
… |
… |
|
24 | 24 | |
25 | 25 | checksums \ |
26 | 26 | ${name}-${version}${extract.suffix} \ |
27 | | sha1 769515be389f413857a932a944611c957c83da2e \ |
28 | | rmd160 903ba8cc47455174ffd7e2df8937c93bf9807706 \ |
| 27 | sha1 3d0da2996a30747c5875cfbf887c61d80d765ef4 \ |
| 28 | rmd160 89509488902089d3c457dfcf3cc44a6b615b33cf \ |
29 | 29 | ${name}-generic-unix-${version}${extract.suffix} \ |
30 | | sha1 4ae8be34dabdf0f5582bf1968c3235bd4742e2ec \ |
31 | | rmd160 082b25ca817a5e1584a930cee6850cb3101ab458 |
| 30 | sha1 b564d3277af5531f120bff822560b157432b2fa7 \ |
| 31 | rmd160 b2e38f9163e05bc73fa793f6120c99940239a7f1 |
32 | 32 | |
33 | 33 | depends_lib port:erlang |
34 | 34 | depends_build port:libxslt |
… |
… |
|
48 | 48 | set servergroup rabbitmq |
49 | 49 | set serverhome ${prefix}/var/lib/rabbitmq |
50 | 50 | set logdir ${prefix}/var/log/rabbitmq |
| 51 | set confdir ${prefix}/etc/rabbitmq |
51 | 52 | set mnesiadbdir ${prefix}/var/lib/rabbitmq/mnesia |
52 | 53 | set plistloc ${prefix}/etc/LaunchDaemons/org.macports.rabbitmq-server |
53 | 54 | set sbindir ${destroot}${prefix}/lib/rabbitmq/bin |
… |
… |
|
62 | 63 | |
63 | 64 | build.env-append HOME=${workpath} |
64 | 65 | |
| 66 | build.env-append VERSION=${version} |
| 67 | |
| 68 | destroot.env-append VERSION=${version} |
| 69 | |
65 | 70 | destroot.target install_bin |
66 | 71 | |
67 | 72 | destroot.destdir \ |
… |
… |
|
70 | 75 | MAN_DIR=${destroot}${prefix}/share/man |
71 | 76 | |
72 | 77 | destroot.keepdirs \ |
| 78 | ${destroot}${confdir} \ |
73 | 79 | ${destroot}${logdir} \ |
74 | 80 | ${destroot}${mnesiadbdir} |
75 | 81 | |
… |
… |
|
79 | 85 | } |
80 | 86 | |
81 | 87 | post-destroot { |
| 88 | xinstall -d -m 775 ${destroot}${confdir} |
82 | 89 | xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${logdir} |
83 | 90 | xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${serverhome} |
84 | 91 | xinstall -d -g [existsgroup ${servergroup}] -m 775 ${destroot}${mnesiadbdir} |
85 | 92 | |
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 |
94 | 97 | |
95 | 98 | xinstall -m 555 ${filespath}/rabbitmq-script-wrapper \ |
96 | 99 | ${wrappersbin}/rabbitmq-server |
97 | | reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:g" \ |
| 100 | reinplace -E "s:@MACPORTS_PREFIX@:${prefix}:g" \ |
98 | 101 | ${wrappersbin}/rabbitmq-server |
99 | 102 | reinplace -E "s:/usr/lib/rabbitmq/bin/:${prefix}/lib/rabbitmq/bin/:g" \ |
100 | 103 | ${wrappersbin}/rabbitmq-server |