blob: 207777beb2c2de93b0bab8a8d92ce277d440a499 (
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
|
PORTNAME= tomee
PORTVERSION= 1.7.4
CATEGORIES= www java
MASTER_SITES= https://archive.apache.org/dist/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
DISTNAME= apache-${PORTNAME}-${PORTVERSION}-webprofile
MAINTAINER= neu@mycontrol.de
COMMENT= Open-source Java EE Container by Apache
LICENSE= APACHE20
RUN_DEPENDS= jsvc:devel/apache-commons-daemon
USES= cpe
CPE_VENDOR= apache
USE_JAVA= yes
NO_ARCH= yes
NO_BUILD= yes
USE_RC_SUBR= ${PKGBASE}
TOMEE_SUBDIR?= ${DISTNAME:R}
TOMEE_HOME= ${PREFIX}/${TOMEE_SUBDIR}
TOMEE_CONF_FILES= \
catalina.policy catalina.properties context.xml logging.properties \
server.xml tomcat-users.xml web.xml tomee.xml system.properties
PLIST_SUB= T=${TOMEE_SUBDIR} \
WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
SUB_LIST= TOMEE_HOME=${TOMEE_HOME} \
TOMEE_USER=${WWWOWN} \
JAVA_HOME=${JAVA_HOME}
WRKSRC= ${WRKDIR}/apache-${PORTNAME}-webprofile-${PORTVERSION}
.include <bsd.port.pre.mk>
post-patch:
@${FIND} ${WRKSRC} -name '*.bat' -delete
@${FIND} ${WRKSRC} -name '*.exe' -delete
@${FIND} ${WRKSRC} -name '*.bat.original' -delete
.for f in ${TOMEE_CONF_FILES}
@${MV} ${WRKSRC}/conf/${f} ${WRKSRC}/conf/${f}.sample
.endfor
do-install:
${MKDIR} ${STAGEDIR}${TOMEE_HOME}/logs
${CP} -R ${WRKSRC}/* ${STAGEDIR}${TOMEE_HOME}
${FIND} ${STAGEDIR}${TOMEE_HOME} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
.include <bsd.port.post.mk>
|