1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/net/rabbitmq/Makefile
Dave Cottlehuber ddf5b19f67 net/rabbitmq: update to v3.12.13 and new tarball
Summary:
RabbitMQ has long provided a generic unix tarball which is better
suited for a FreeBSD port. There should be no functional changes
for this approach, and it simplifies build and release by aligning
better with upstream deployment, removing dependency on lang/elixir
releases.

Once the 2024Q2 branch is created, the next RabbitMQ release will
be updated, as users need to migrate from 3.11 -> 3.12 -> 3.13
without skipping in between versions.

https://rabbitmq.com/install-generic-unix.html

Differential Revision: https://reviews.freebsd.org/D43954
PR:		275838
2024-03-16 11:09:17 +00:00

78 lines
3.1 KiB
Makefile

PORTNAME= rabbitmq
DISTVERSION= 3.12.13
CATEGORIES= net
MASTER_SITES= https://github.com/rabbitmq/rabbitmq-server/releases/download/v${PORTVERSION}/
# https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.12.12/rabbitmq-server-generic-unix-3.12.12.tar.xz
# https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.12.13/rabbitmq-server_3.12.13.orig.tar.xz
DISTNAME= ${PORTNAME}-server-generic-unix-${PORTVERSION}
MAINTAINER= erlang@FreeBSD.org
COMMENT= Erlang implementation of AMQP
WWW= https://www.rabbitmq.com/
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE-MPL-RabbitMQ
RUN_DEPENDS= erlang-runtime${_ERLANG_VER}>=${_ERLANG_VER}:lang/erlang-runtime${_ERLANG_VER}
# ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:devel/py-simplejson@${PY_FLAVOR}
USES= cpe shebangfix tar:xz
CPE_VENDOR= pivotal_software
USE_LOCALE= en_US.UTF-8
USE_RC_SUBR= rabbitmq
# SHEBANG_FILES= plugins/rabbitmq_management-*/priv/www/cli/rabbitmqadmin
NO_ARCH= yes
NO_BUILD= yes
SUB_LIST+= _ERLANG_LIB=${_ERLANG_LIB}
USERS= rabbitmq
GROUPS= rabbitmq
PLIST_SUB= VERSION=${PORTVERSION}
_ERLANG_VER= 26
_ERLANG_LIB= erlang${_ERLANG_VER}
.include <bsd.port.options.mk>
do-extract:
${MKDIR} ${WRKSRC}
${TAR} -C ${WRKSRC} -xf ${DISTDIR}/${DISTFILES} --strip-components 1
post-patch:
# ensure our OTP is always preferred over other installed versions
@${REINPLACE_CMD} -i '' -e 's|/usr/bin/env escript|${LOCALBASE}/lib/${_ERLANG_LIB}/bin/escript|' \
${WRKSRC}/escript/*
@${REINPLACE_CMD} -i '' -e 's|LOCALBASE|${LOCALBASE}|' \
-e 's|_ERLANG_LIB|${_ERLANG_LIB}|' \
${WRKSRC}/sbin/rabbitmq-defaults
# # ensure docs match heir(7) paths
# @${REINPLACE_CMD} -i '' \
# -e 's|/etc/rabbitmq|${PREFIX}/etc/rabbitmq|g' \
# -e 's|/var/lib|/var/db|g' \
# ${WRKSRC}/deps/rabbit/docs/*
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/rabbitmq_server-${PORTVERSION}
(cd ${WRKSRC} && ${COPYTREE_BIN} escript ${STAGEDIR}${PREFIX}/lib/rabbitmq_server-${PORTVERSION}/)
(cd ${WRKSRC} && ${COPYTREE_BIN} sbin ${STAGEDIR}${PREFIX}/lib/rabbitmq_server-${PORTVERSION}/)
(cd ${WRKSRC} && ${COPYTREE_SHARE} plugins ${STAGEDIR}${PREFIX}/lib/rabbitmq_server-${PORTVERSION}/)
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rabbitmq
@${MKDIR} ${STAGEDIR}/var/db/rabbitmq/mnesia
@${MKDIR} ${STAGEDIR}/var/log/rabbitmq
# ${INSTALL_DATA} ${WRKSRC}/deps/rabbit/docs/advanced.config.example \
# ${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-queues rabbitmq-server rabbitmq-streams rabbitmq-tanzu rabbitmq-upgrade rabbitmqctl vmware-rabbitmq
${LN} -s ../lib/rabbitmq_server-${PORTVERSION}/sbin/${_file} ${STAGEDIR}${PREFIX}/sbin
.endfor
${INSTALL_MAN} ${WRKSRC}/share/man/man5/*.5.gz ${STAGEDIR}${PREFIX}/share/man/man5
${INSTALL_MAN} ${WRKSRC}/share/man/man8/*.8.gz ${STAGEDIR}${PREFIX}/share/man/man8
# ${INSTALL} ${WRKSRC}/plugins/rabbitmq_management-*/priv/www/cli/rabbitmqadmin ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>