2013-05-20 16:01:51 +00:00
|
|
|
# Created by: Phillip Neumann <pneumann@gmail.com>
|
2008-07-14 01:51:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rabbitmq
|
2013-08-24 20:04:01 +00:00
|
|
|
PORTVERSION= 3.1.5
|
2013-12-23 21:11:45 +00:00
|
|
|
PORTREVISION= 1
|
2008-07-14 01:51:37 +00:00
|
|
|
CATEGORIES= net
|
2008-08-20 02:46:19 +00:00
|
|
|
MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/
|
|
|
|
DISTNAME= ${PORTNAME}-server-${PORTVERSION}
|
2008-07-14 01:51:37 +00:00
|
|
|
|
|
|
|
MAINTAINER= pneumann@gmail.com
|
|
|
|
COMMENT= RabbitMQ is an implementation of AMQP
|
|
|
|
|
2012-08-15 13:37:44 +00:00
|
|
|
BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang \
|
2010-07-22 13:33:09 +00:00
|
|
|
${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson \
|
2011-11-10 03:42:09 +00:00
|
|
|
xmlto:${PORTSDIR}/textproc/xmlto \
|
|
|
|
unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
zip:${PORTSDIR}/archivers/zip
|
2012-08-15 13:37:44 +00:00
|
|
|
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
2008-07-14 01:51:37 +00:00
|
|
|
|
2013-08-24 20:04:01 +00:00
|
|
|
USES= gmake shebangfix
|
|
|
|
USE_PYTHON_BUILD=yes
|
2008-07-14 01:51:37 +00:00
|
|
|
USE_RC_SUBR= rabbitmq
|
2013-12-23 21:11:45 +00:00
|
|
|
SHEBANG_FILES= calculate-relative plugins-src/rabbitmq-amqp1.0/codegen.py
|
|
|
|
python_OLD_CMD= .*python
|
2013-12-14 22:03:54 +00:00
|
|
|
python_CMD= ${PYTHON_CMD}
|
2009-07-04 17:59:45 +00:00
|
|
|
|
2012-02-02 17:41:14 +00:00
|
|
|
USERS= rabbitmq
|
|
|
|
GROUPS= rabbitmq
|
2009-07-04 17:59:45 +00:00
|
|
|
|
|
|
|
PLIST_SUB= "VERSION=${PORTVERSION}"
|
|
|
|
|
2011-11-10 03:42:09 +00:00
|
|
|
MAN1= rabbitmq-server.1 rabbitmqctl.1 rabbitmq-plugins.1
|
2011-08-10 19:00:33 +00:00
|
|
|
MAN5= rabbitmq-env.conf.5
|
2009-06-09 06:55:20 +00:00
|
|
|
MANCOMPRESSED= yes
|
2008-12-30 10:57:17 +00:00
|
|
|
|
2009-07-04 17:59:45 +00:00
|
|
|
SCRIPTS_DIR= ${WRKSRC}/scripts/
|
2013-12-14 22:03:54 +00:00
|
|
|
MAKE_ARGS+= PYTHON=${PYTHON_CMD}
|
2009-07-04 17:59:45 +00:00
|
|
|
MAKE_ENV+= TARGET_DIR="${PREFIX}/lib/erlang/lib/rabbitmq_server-${PORTVERSION}" SBIN_DIR="${PREFIX}/sbin/" \
|
|
|
|
MAN_DIR="${PREFIX}/man"
|
|
|
|
|
2013-09-20 22:10:23 +00:00
|
|
|
NO_STAGE= yes
|
2008-07-14 01:51:37 +00:00
|
|
|
post-patch:
|
2009-07-04 12:21:55 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc/rabbitmq|${PREFIX}/etc/rabbitmq|g ; s|/var/lib|/var/db|g ; s|erl|${LOCALBASE}/bin/erl|g' \
|
2012-02-02 17:41:14 +00:00
|
|
|
${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl \
|
2012-05-04 20:21:30 +00:00
|
|
|
${SCRIPTS_DIR}/rabbitmq-env ${SCRIPTS_DIR}/rabbitmq-plugins \
|
|
|
|
${SCRIPTS_DIR}/rabbitmq-defaults
|
2013-08-24 20:04:01 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|VERSION=0.0.0|VERSION=${PORTVERSION}|g' \
|
|
|
|
${WRKSRC}/plugins-src/rabbitmq-erlang-client/Makefile \
|
|
|
|
${WRKSRC}/plugins-src/release.mk
|
|
|
|
@${REINPLACE_CMD} -e 's|VERSION:=0.0.0|VERSION:=${PORTVERSION}|g' \
|
|
|
|
${WRKSRC}/plugins-src/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|VERSION?=0.0.0|VERSION?=${PORTVERSION}|g' \
|
|
|
|
${WRKSRC}/Makefile
|
2012-01-29 11:04:36 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
2008-07-14 01:51:37 +00:00
|
|
|
|
2008-10-29 01:01:34 +00:00
|
|
|
pre-install:
|
2009-06-09 07:11:32 +00:00
|
|
|
@${FIND} ${WRKSRC}/ebin ${WRKSRC}/include -type d | \
|
|
|
|
${XARGS} ${CHMOD} 0755
|
|
|
|
@${FIND} ${WRKSRC}/ebin ${WRKSRC}/include -type f | \
|
|
|
|
${XARGS} ${CHMOD} 0644
|
2012-02-02 17:41:14 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/rabbitmq
|
2008-09-03 15:51:10 +00:00
|
|
|
|
2008-10-29 01:01:34 +00:00
|
|
|
post-install:
|
2012-02-02 17:41:14 +00:00
|
|
|
@${MKDIR} /var/db/rabbitmq/mnesia
|
|
|
|
@${MKDIR} /var/log/rabbitmq
|
|
|
|
@${CHOWN} -R rabbitmq:rabbitmq /var/db/rabbitmq
|
|
|
|
@${CHOWN} -R rabbitmq:rabbitmq /var/log/rabbitmq
|
2009-06-09 06:55:20 +00:00
|
|
|
|
2008-07-14 01:51:37 +00:00
|
|
|
.include <bsd.port.mk>
|