blob: 8cf61979b9f509054f5a8f6cd41f4270b90f1bf5 (
plain) (
blame)
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
102
103
104
105
106
107
|
# $FreeBSD$
PORTNAME= activemq
PORTVERSION= 5.14.4
CATEGORIES= net java
MASTER_SITES= APACHE/${PORTNAME}/${PORTVERSION}
DISTNAME= apache-${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= tj@FreeBSD.org
COMMENT= Messaging and Integration Patterns provider
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES+= cpe
CPE_VENDOR= apache
NO_BUILD= yes
USE_JAVA= yes
JAVA_VERSION= 1.7+
MQDATA= ${PREFIX}/lib/${PORTNAME}
MQDB?= /var/db/activemq
DATADIR= ${MQDATA}
MQUSER?= activemq
MQGROUP?= ${MQUSER}
USERS= ${MQUSER}
GROUPS= ${MQGROUP}
CAMELVERSION= 2.16.3
SPRINGVERSION= 4.1.9
JETTYVERSION= 9.2.13.v20150730
LVDBVERSION= 0.6
LVDBJNIVERSION= 1.8
ALL_TARGET= ${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
DOC_FILES= LICENSE NOTICE README.txt
ETC_FILES= activemq.xml \
broker-localhost.cert \
broker.ks \
broker.ts \
client.ks \
client.ts \
credentials-enc.properties \
credentials.properties \
groups.properties \
jetty-realm.properties \
jetty.xml \
jmx.access \
jmx.password \
log4j.properties \
logging.properties \
login.config \
users.properties
WRKSRC= ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}
SUB_LIST= ETC_FILES="${ETC_FILES}" \
MQUSER="${MQUSER}" \
MQGROUP="${MQGROUP}" \
MQDB="${MQDB}"
PLIST_SUB= MQUSER="${MQUSER}" \
MQGROUP="${MQGROUP}" \
MQDB="${MQDB}" \
PORTVERSION="${PORTVERSION}" \
CAMELVERSION="${CAMELVERSION}" \
SPRINGVERSION="${SPRINGVERSION}" \
JETTYVERSION="${JETTYVERSION}" \
LVDBVERSION="${LVDBVERSION}" \
LVDBJNIVERSION="${LVDBJNIVERSION}"
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|activemq.base}/data|activemq.logs}|g' ${WRKSRC}/conf/log4j.properties
do-install:
@${MKDIR} ${STAGEDIR}${MQDATA} ${STAGEDIR}${MQDATA}/bin ${STAGEDIR}${ETCDIR}
.for f in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
.endfor
.for f in ${PORTNAME} ${PORTNAME}-diag
${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${MQDATA}/bin
.endfor
${INSTALL_DATA} ${WRKSRC}/bin/activemq.jar ${STAGEDIR}${MQDATA}/bin
${INSTALL_DATA} ${WRKSRC}/bin/wrapper.jar ${STAGEDIR}${MQDATA}/bin
.for f in webapps webapps-demo lib
(cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${MQDATA})
.endfor
@${LN} -sf ${MQDB} ${STAGEDIR}${MQDATA}/data
@${LN} -sf ${ETCDIR} ${STAGEDIR}${MQDATA}/conf
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/)
.for f in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
@${LN} -sf ${DOCSDIR} ${STAGEDIR}${MQDATA}/docs
do-install-EXAMPLES-on:
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
@${LN} -sf ${EXAMPLESDIR} ${STAGEDIR}${MQDATA}/examples
.include <bsd.port.mk>
|