1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

net/rabbitmq: add new /sbin/ tools for migrations

- add upgrade helper scripts
- cuttlefish is needed for handling some config settings
- pet port order while here

Reviewed by:	olgeni
Sponsored by:	SkunkWerks, GmbH
Differential Revision:	https://reviews.freebsd.org/D22310
This commit is contained in:
Dave Cottlehuber 2019-11-14 07:27:08 +00:00
parent 8b1b71da22
commit f0380f797c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517556
2 changed files with 11 additions and 5 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= rabbitmq
DISTVERSION= 3.8.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://github.com/rabbitmq/rabbitmq-server/releases/download/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-server-${PORTVERSION}
@ -21,6 +22,11 @@ BUILD_DEPENDS= erlang-runtime21>=21.3:lang/erlang-runtime21 \
rsync:net/rsync
RUN_DEPENDS= erlang-runtime21>=21.3:lang/erlang-runtime21
USES= cpe gmake shebangfix tar:xz
USE_LOCALE= en_US.UTF-8
USE_RC_SUBR= rabbitmq
NO_ARCH= yes
OPTIONS_DEFINE= ADMIN
OPTIONS_SUB= yes
@ -29,10 +35,6 @@ ADMIN_USES= python
ADMIN_USES_OFF= python:build
ALL_TARGET= install
USES= cpe gmake shebangfix tar:xz
USE_LOCALE= en_US.UTF-8
USE_RC_SUBR= rabbitmq
NO_ARCH= yes
USERS= rabbitmq
GROUPS= rabbitmq
@ -73,7 +75,7 @@ post-install:
${STAGEDIR}${PREFIX}/etc/rabbitmq/advanced.config.sample
${INSTALL_DATA} ${WRKSRC}/deps/rabbit/docs/rabbitmq.conf.example \
${STAGEDIR}${PREFIX}/etc/rabbitmq/rabbitmq.conf.sample
.for _file in rabbitmq-defaults rabbitmq-diagnostics rabbitmq-env rabbitmq-plugins rabbitmq-server rabbitmqctl
.for _file in cuttlefish rabbitmq-defaults rabbitmq-diagnostics rabbitmq-env rabbitmq-plugins rabbitmq-server rabbitmq-upgrade rabbitmqctl
${LN} -s ../lib/rabbitmq_server-${PORTVERSION}/sbin/${_file} ${STAGEDIR}${PREFIX}/sbin
.endfor
${INSTALL_MAN} ${WRKSRC}/deps/rabbit/docs/*.8 ${STAGEDIR}${MAN1PREFIX}/man/man8

View File

@ -180,6 +180,7 @@ lib/rabbitmq_server-%%VERSION%%/ebin/vhost_v1.beam
lib/rabbitmq_server-%%VERSION%%/escript/rabbitmq-diagnostics
lib/rabbitmq_server-%%VERSION%%/escript/rabbitmq-plugins
lib/rabbitmq_server-%%VERSION%%/escript/rabbitmq-queues
lib/rabbitmq_server-%%VERSION%%/escript/rabbitmq-upgrade
lib/rabbitmq_server-%%VERSION%%/escript/rabbitmqctl
lib/rabbitmq_server-%%VERSION%%/include/amqqueue.hrl
lib/rabbitmq_server-%%VERSION%%/include/amqqueue_v1.hrl
@ -263,6 +264,7 @@ lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmq-env
lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmq-plugins
lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmq-queues
lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmq-server
lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmq-upgrade
lib/rabbitmq_server-%%VERSION%%/sbin/rabbitmqctl
man/man5/rabbitmq-env.conf.5.gz
man/man8/rabbitmq-diagnostics.8.gz
@ -273,11 +275,13 @@ man/man8/rabbitmq-server.8.gz
man/man8/rabbitmq-service.8.gz
man/man8/rabbitmq-upgrade.8.gz
man/man8/rabbitmqctl.8.gz
sbin/cuttlefish
sbin/rabbitmq-defaults
sbin/rabbitmq-diagnostics
sbin/rabbitmq-env
sbin/rabbitmq-plugins
sbin/rabbitmq-server
sbin/rabbitmq-upgrade
sbin/rabbitmqctl
@dir(rabbitmq,rabbitmq,750) /var/log/rabbitmq
@dir(rabbitmq,rabbitmq,750) /var/db/rabbitmq/mnesia