1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/net/rabbitmq/Makefile
Martin Wilke e0d95c7757 - Update to 1.5.0
PR:		129751
Submitted by:	"Phillip N." <pneumann@gmail.com> (maintainer)
2008-12-30 10:57:17 +00:00

48 lines
1.4 KiB
Makefile

# New ports collection makefile for: rabbitmq
# Date Created: 2008-07-11
# Whom: Phillip Neumann <pneumann@gmail.com>
#
# $FreeBSD$
#
PORTNAME= rabbitmq
PORTVERSION= 1.5.0
CATEGORIES= net
MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/
DISTNAME= ${PORTNAME}-server-${PORTVERSION}
MAINTAINER= pneumann@gmail.com
COMMENT= RabbitMQ is an implementation of AMQP
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang-lite \
${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson
RUN_DEPENDS= erlc:${PORTSDIR}/lang/erlang-lite
USE_GMAKE= yes
USE_PYTHON= yes
MAKE_ENV+= TARGET_DIR="${PREFIX}/lib/erlang/lib/rabbitmq_server-${PORTVERSION}" SBIN_DIR="${PREFIX}/sbin/" \
MAN_DIR="${PREFIX}/man"
SCRIPTS_DIR= ${WRKSRC}/scripts/
USE_RC_SUBR= rabbitmq
PLIST_SUB= "VERSION=${PORTVERSION}"
SUB_FILES= pkg-install
RABBITMQ_USER= rabbitmq
RABBITMQ_GROUP= ${RABBITMQ_USER}
MAN1= rabbitmq-multi.1 rabbitmq-server.1 rabbitmqctl.1
MAN5= rabbitmq.5
post-patch:
@${REINPLACE_CMD} -e 's|/etc/default|${PREFIX}/etc/rabbitmq|g ; s|/var/lib|/var/db|g ; s|erl|${PREFIX}/bin/erl|g' \
${SCRIPTS_DIR}/rabbitmq-multi ${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl
@${FIND} ${WRKSRC} -name "*.bak" | ${XARGS} ${RM}
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>