blob: 23352450b7311a0d02ca3d13c3a62a96b3eea292 (
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
108
109
110
111
112
113
114
115
|
# $FreeBSD$
PORTNAME= activemq
PORTVERSION= 5.8.0
CATEGORIES= net java
MASTER_SITES= http://www.sai.msu.su/apache/${MASTER_SITE_SUBDIR}/ \
${MASTER_SITE_APACHE}/${MASTER_SITE_SUBDIR}/
MASTER_SITE_SUBDIR=${PORTNAME}/apache-${PORTNAME}/${PORTVERSION}
DISTNAME= apache-${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= tj@FreeBSD.org
COMMENT= Messaging and Integration Patterns provider
NO_BUILD= yes
USE_JAVA= yes
LICENSE= AL2
JAVA_VERSION= 1.7+
MQDATA= ${PREFIX}/lib/${PORTNAME}
MQDB?= /var/db/activemq
DATADIR= ${MQDATA}
MQUSER?= activemq
MQGROUP?= ${MQUSER}
USERS= ${MQUSER}
GROUPS= ${MQGROUP}
CAMELVERSION= 2.10.3
SPRINGVERSION= 3.1.3
JETTYVERSION= 7.6.7.v20120910
LVDBVERSION= 0.5
LVDBJNIVERSION= 1.5
ALL_TARGET= ${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
PORTDOCS= LICENSE NOTICE README.txt WebConsole-README.txt user-guide.html
ETC_FILES= activemq-command.xml \
activemq-demo.xml \
activemq-dynamic-network-broker1.xml \
activemq-dynamic-network-broker2.xml \
activemq-jdbc.xml \
activemq-scalability.xml \
activemq-security.xml \
activemq-specjms.xml \
activemq-static-network-broker1.xml \
activemq-static-network-broker2.xml \
activemq-stomp.xml \
activemq-throughput.xml \
activemq.xml \
camel.xml \
credentials-enc.properties \
credentials.properties \
jetty-realm.properties \
jetty.xml \
jmx.access \
jmx.password \
log4j.properties \
logging.properties
WRKSRC= ${WRKDIR}/apache-${PORTNAME}-${PORTVERSION}
SUB_FILES= pkg-install pkg-deinstall
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}"
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${DOCSDIR}/
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
@${MKDIR} ${MQDATA} ${MQDB} ${MQDATA}/bin ${ETCDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} example ${EXAMPLESDIR}/
.for f in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${ETCDIR}/${f}.sample
.endfor
.for f in ${PORTNAME} ${PORTNAME}-admin diag
@cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} ${f} ${MQDATA}/bin
.endfor
@cd ${WRKSRC}/bin && ${INSTALL_DATA} activemq.jar ${MQDATA}/bin
@cd ${WRKSRC}/bin && ${INSTALL_DATA} wrapper.jar ${MQDATA}/bin
.for f in webapps webapps-demo lib
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${MQDATA}
.endfor
@${LN} -sf ${MQDB} ${MQDATA}/data
@${LN} -sf ${ETCDIR} ${MQDATA}/conf
@${LN} -sf ${EXAMPLESDIR}/example ${MQDATA}/example
@${CHOWN} -Rh ${MQUSER}:${MQGROUP} ${MQDB} ${ETCDIR} ${EXAMPLES} \
${MQDATA}
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${INSTALL} -d -o ${MQUSER} -g ${MQGROUP} ${MQDB}
.include <bsd.port.mk>
|