a99866f747
Changes since 3.7.7 are too long to list in full, but are primarily bug fixes and usability improvements, along with the main reason for this upgrade - it now builds against the current versions of erlang and elixir delivered in pkgsrc. Full changes are available from the following links: https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.16 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.15 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.14 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.13 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.12 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.11 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.10 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.9 https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.7.8
105 lines
3.7 KiB
Makefile
105 lines
3.7 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2019/07/23 16:12:39 jperkin Exp $
|
|
|
|
DISTNAME= rabbitmq-server-3.7.16
|
|
PKGNAME= ${DISTNAME:S/-server//}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=rabbitmq/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
GITHUB_PROJECT= rabbitmq-server
|
|
GITHUB_RELEASE= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.rabbitmq.com/server.html
|
|
COMMENT= Implementation of AMQP that provides robust messaging for applications
|
|
LICENSE= mpl-1.1
|
|
|
|
USE_TOOLS+= bash:run gmake unzip zip
|
|
|
|
BUILD_DEPENDS+= elixir-[0-9]*:../../lang/elixir
|
|
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
BUILD_DEPENDS+= rsync-[0-9]*:../../net/rsync
|
|
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
|
|
DEPENDS+= ${PYPKGPREFIX}-simplejson>=2:../../converters/py-simplejson
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
# Create a mix tool to avoid nested interpreter issues.
|
|
TOOLS_CREATE+= mix
|
|
TOOLS_SCRIPT.mix= ${PREFIX}/bin/elixir -r ${PREFIX}/bin/mix -- "$$@"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
RMQ_USER?= rabbitmq
|
|
RMQ_GROUP?= ${RMQ_USER}
|
|
RMQ_SHELL?= ${TOOLS_PATH.bash}
|
|
RMQ_DIR?= ${VARBASE}/db/rabbitmq
|
|
RMQ_LOG?= ${VARBASE}/log/rabbitmq
|
|
|
|
OWN_DIRS_PERMS+= ${RMQ_DIR} ${RMQ_USER} ${RMQ_GROUP} 0770
|
|
OWN_DIRS_PERMS+= ${RMQ_LOG} ${RMQ_USER} ${RMQ_GROUP} 0770
|
|
|
|
PKG_GROUPS+= ${RMQ_GROUP}
|
|
PKG_USERS+= ${RMQ_USER}:${RMQ_GROUP}
|
|
PKG_GECOS.${RMQ_USER}= RabbitMQ Server User
|
|
PKG_HOME.${RMQ_USER}= ${RMQ_DIR}
|
|
PKG_SHELL.${RMQ_USER}= ${RMQ_SHELL}
|
|
|
|
PKG_SYSCONFSUBDIR= ${PKGBASE}
|
|
CONF_FILES+= share/examples/rabbitmq/rabbitmq-env.conf \
|
|
${PKG_SYSCONFDIR}/rabbitmq-env.conf
|
|
CONF_FILES+= share/examples/rabbitmq/rabbitmq.config.example \
|
|
${PKG_SYSCONFDIR}/rabbitmq.config
|
|
|
|
FILES_SUBST+= RMQ_USER=${RMQ_USER}
|
|
FILES_SUBST+= RMQ_GROUP=${RMQ_GROUP}
|
|
FILES_SUBST+= RMQ_DIR=${RMQ_DIR}
|
|
|
|
RABBITMQ_HOME= lib/erlang/lib/rabbitmq_server-${PKGVERSION_NOREV}
|
|
|
|
INSTALLATION_DIRS+= share/examples/rabbitmq
|
|
|
|
SCRIPTS_DIR= ${WRKSRC}/deps/rabbit/scripts
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_MESSAGE.paths= Setting standard paths
|
|
SUBST_STAGE.paths= pre-build
|
|
SUBST_FILES.paths= ${SCRIPTS_DIR}/rabbitmqctl ${SCRIPTS_DIR}/rabbitmq-env
|
|
SUBST_FILES.paths+= ${SCRIPTS_DIR}/rabbitmq-plugins ${SCRIPTS_DIR}/rabbitmq-server
|
|
SUBST_FILES.paths+= ${SCRIPTS_DIR}/rabbitmq-defaults
|
|
SUBST_SED.paths= -e 's|/etc/rabbitmq|${PKG_SYSCONFDIR}|g'
|
|
SUBST_SED.paths+= -e 's|/var/lib|${VARBASE}/db|g'
|
|
SUBST_SED.paths+= -e 's|/var/log|${VARBASE}/log|g'
|
|
SUBST_SED.paths+= -e 's|erl|${PREFIX}/bin/erl|g'
|
|
SUBST_SED.paths+= -e 's|@RABBITMQ_HOME@|${PREFIX}/${RABBITMQ_HOME}|g'
|
|
|
|
REPLACE_BASH+= ${SCRIPTS_DIR}/rabbitmqctl
|
|
REPLACE_BASH+= ${SCRIPTS_DIR}/rabbitmq-defaults
|
|
REPLACE_BASH+= ${SCRIPTS_DIR}/rabbitmq-env
|
|
REPLACE_BASH+= ${SCRIPTS_DIR}/rabbitmq-plugins
|
|
REPLACE_BASH+= ${SCRIPTS_DIR}/rabbitmq-server
|
|
|
|
# Too much effort to replace the shebang on generated files
|
|
CHECK_INTERPRETER_SKIP+= ${RABBITMQ_HOME}/escript/rabbitmq-diagnostics
|
|
CHECK_INTERPRETER_SKIP+= ${RABBITMQ_HOME}/escript/rabbitmq-plugins
|
|
CHECK_INTERPRETER_SKIP+= ${RABBITMQ_HOME}/escript/rabbitmqctl
|
|
CHECK_INTERPRETER_SKIP+= ${RABBITMQ_HOME}/sbin/cuttlefish
|
|
|
|
MAKE_ENV+= MANDIR="${PREFIX}/${PKGMANDIR}"
|
|
MAKE_ENV+= RMQ_BINDIR="${PREFIX}/sbin"
|
|
MAKE_ENV+= RMQ_LIBDIR="${PREFIX}/lib/erlang/lib"
|
|
MAKE_ENV+= RSYNC="${PREFIX}/bin/rsync"
|
|
MAKE_ENV+= VERSION="${PKGVERSION_NOREV}"
|
|
|
|
INSTALL_TARGET= install-erlapp install-scripts install-bin install-man
|
|
TEST_TARGET= check
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/deps/rabbit/docs/rabbitmq.config.example \
|
|
${DESTDIR}${PREFIX}/share/examples/rabbitmq
|
|
${INSTALL_DATA} ${FILESDIR}/rabbitmq-env.conf \
|
|
${DESTDIR}${PREFIX}/share/examples/rabbitmq
|
|
|
|
.include "../../lang/erlang/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|