2008-07-14 01:51:37 +00:00
|
|
|
# New ports collection makefile for: rabbitmq
|
|
|
|
# Date Created: 2008-07-11
|
|
|
|
# Whom: Phillip Neumann <pneumann@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rabbitmq
|
2011-11-10 03:42:09 +00:00
|
|
|
PORTVERSION= 2.7.0
|
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
|
|
|
|
|
2011-06-14 19:34:50 +00:00
|
|
|
BUILD_DEPENDS= erlang-lite>=r14b03,1:${PORTSDIR}/lang/erlang-lite \
|
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
|
2011-06-14 19:34:50 +00:00
|
|
|
RUN_DEPENDS= erlang-lite>=r14b03,1:${PORTSDIR}/lang/erlang-lite \
|
2010-09-09 12:38:53 +00:00
|
|
|
sudo:${PORTSDIR}/security/sudo
|
2008-07-14 01:51:37 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_RC_SUBR= rabbitmq
|
2009-07-04 17:59:45 +00:00
|
|
|
|
|
|
|
RABBITMQ_GID= 135
|
|
|
|
RABBITMQ_GROUP= rabbitmq
|
|
|
|
RABBITMQ_UID= 135
|
2008-10-29 01:01:34 +00:00
|
|
|
RABBITMQ_USER= rabbitmq
|
2009-07-04 17:59:45 +00:00
|
|
|
|
|
|
|
PLIST_SUB= "VERSION=${PORTVERSION}"
|
|
|
|
|
2010-07-22 13:33:09 +00:00
|
|
|
SUB_FILES= pkg-install
|
2009-07-04 17:59:45 +00:00
|
|
|
SUB_LIST= RABBITMQ_GID=${RABBITMQ_GID} \
|
|
|
|
RABBITMQ_GROUP=${RABBITMQ_GROUP} \
|
|
|
|
RABBITMQ_UID=${RABBITMQ_UID} \
|
|
|
|
RABBITMQ_USER=${RABBITMQ_USER}
|
2008-07-14 01:51:37 +00:00
|
|
|
|
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/
|
|
|
|
MAKE_ENV+= TARGET_DIR="${PREFIX}/lib/erlang/lib/rabbitmq_server-${PORTVERSION}" SBIN_DIR="${PREFIX}/sbin/" \
|
|
|
|
MAN_DIR="${PREFIX}/man"
|
|
|
|
|
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' \
|
2011-08-10 19:00:33 +00:00
|
|
|
${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl ${SCRIPTS_DIR}/rabbitmq-env
|
2008-07-14 01:51:37 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" | ${XARGS} ${RM}
|
|
|
|
|
2008-10-29 01:01:34 +00:00
|
|
|
pre-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} 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
|
2008-09-03 15:51:10 +00:00
|
|
|
|
2008-10-29 01:01:34 +00:00
|
|
|
post-install:
|
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2009-06-09 06:55:20 +00:00
|
|
|
|
2008-07-14 01:51:37 +00:00
|
|
|
.include <bsd.port.mk>
|