blob: a03ada0fb207a7f0f44a7aa0ed08d490d1413023 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# $NetBSD: Makefile,v 1.21 2015/11/20 12:26:21 fhajny Exp $
PKGNAME= rabbitmq-${RMQ_VERSION}
DISTNAME= rabbitmq-server-${RMQ_VERSION}
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${RMQ_VERSION}/
MAINTAINER= filip@joyent.com
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 coreutils gmake unzip zip
MAKE_JOBS_SAFE= no
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
DEPENDS+= ${PYPKGPREFIX}-simplejson>=2:../../converters/py-simplejson
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 3.2.2
.include "version.mk"
.include "../../lang/python/pyversion.mk"
BUILD_DEFS+= VARBASE
.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+= ${RMQ_DIR} ${RMQ_LOG}
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= ${PREFIX}/lib/erlang/lib/rabbitmq_server-${RMQ_VERSION}
INSTALLATION_DIRS+= share/examples/rabbitmq
SCRIPTS_DIR= ${WRKSRC}/scripts
PLIST_SUBST+= RMQ_VERSION=${RMQ_VERSION}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting standard paths
SUBST_STAGE.paths= post-patch
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_VARS.paths= RABBITMQ_HOME
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
MAKE_ENV+= TARGET_DIR="${DESTDIR}${RABBITMQ_HOME}"
MAKE_ENV+= SBIN_DIR="${DESTDIR}${PREFIX}/sbin/"
MAKE_ENV+= MAN_DIR="${DESTDIR}${PREFIX}/man"
MAKE_ENV+= DOC_INSTALL_DIR="${DESTDIR}${PREFIX}/share/examples/rabbitmq"
MAKE_ENV+= RMQ_VERSION=${RMQ_VERSION}
MAKE_ENV+= MAKE_SHELL="${RMQ_SHELL}"
MAKE_ENV+= GIT_SSL_NO_VERIFY=true
REPLACE_PYTHON+= calculate-relative
REPLACE_PYTHON+= plugins-src/rabbitmq-amqp1.0/codegen.py
post-install:
${INSTALL_DATA} ${FILESDIR}/rabbitmq-env.conf \
${DESTDIR}${PREFIX}/share/examples/rabbitmq/rabbitmq-env.conf
.include "../../lang/erlang/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|