diff -Naur '--exclude=.svn' macports/rabbitmq-server/files/rabbitmq-script-wrapper rabbitmq/rabbitmq-server/files/rabbitmq-script-wrapper
old
|
new
|
|
29 | 29 | |
30 | 30 | SCRIPT=`basename $0` |
31 | 31 | |
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 |
| 32 | if [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then |
35 | 33 | /usr/lib/rabbitmq/bin/${SCRIPT} "$@" |
| 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}" |
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.6.1 |
| 6 | version 2.7.0 |
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 628ec7453c0ee8ec3bad0780504e335b48f9b533 \ |
28 | | rmd160 818cd8bfbf5593b0cdb4bd4a71d4b7124472f35c \ |
| 27 | sha1 f80d58f6b8635e09c1fbd81650a25182eb6cb4b3 \ |
| 28 | rmd160 1cebc445e15f5667566e0fa7012c35f07922321f \ |
29 | 29 | ${name}-generic-unix-${version}${extract.suffix} \ |
30 | | sha1 2dad2383073d9a1e78236382baf1cbb30f4142f2 \ |
31 | | rmd160 9c75e17f9c4315670965a844c4585c56ef05f020 |
| 30 | sha1 735f706ae8490c1d50df42c8a9a4e887a10ccde0 \ |
| 31 | rmd160 95471452414eb862c0f456aa427bfa113764c01f |
32 | 32 | |
33 | 33 | depends_lib port:erlang |
34 | 34 | depends_build port:libxslt |
… |
… |
|
83 | 83 | |
84 | 84 | reinplace -E "s:(/etc/rabbitmq/rabbitmq):${prefix}\\1:g" \ |
85 | 85 | ${realsbin}/rabbitmq-env |
86 | | foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE} { |
| 86 | foreach var {CONFIG_FILE LOG_BASE MNESIA_BASE ENABLED_PLUGINS_FILE} { |
87 | 87 | reinplace -E "s:^($var)=/:\\1=${prefix}/:" \ |
88 | 88 | ${realsbin}/rabbitmq-server \ |
89 | | ${realsbin}/rabbitmqctl |
| 89 | ${realsbin}/rabbitmqctl \ |
| 90 | ${realsbin}/rabbitmq-plugins |
90 | 91 | } |
91 | 92 | |
92 | 93 | xinstall -m 555 ${filespath}/rabbitmq-script-wrapper \ |
93 | 94 | ${wrappersbin}/rabbitmq-server |
94 | | |
95 | | reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:" \ |
| 95 | reinplace -E "s:MACPORTS_PREFIX/bin:${prefix}/bin:g" \ |
96 | 96 | ${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" \ |
98 | 98 | ${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" \ |
100 | 100 | ${wrappersbin}/rabbitmq-server |
| 101 | |
101 | 102 | file copy ${wrappersbin}/rabbitmq-server ${wrappersbin}/rabbitmqctl |
| 103 | file copy ${wrappersbin}/rabbitmq-server ${wrappersbin}/rabbitmq-plugins |
102 | 104 | |
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 \ |
104 | 106 | ${mandest}/man1/ |
105 | 107 | xinstall -m 644 -W ${mansrc}/man5 rabbitmq-env.conf.5.gz ${mandest}/man5/ |
106 | 108 | } |