Update java/intellij to version 2016.3.2
[dports.git] / java / wildfly90 / Makefile
1 # Created by: Alexander Yerenkow <yerenkow@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       wildfly90
5 PORTVERSION=    9.0.2
6 CATEGORIES=     java www
7 MASTER_SITES=   http://download.jboss.org/wildfly/${WILDFLY_VERSION}/
8 DISTNAME=       wildfly-${WILDFLY_VERSION}
9
10 MAINTAINER=     yerenkow@gmail.com
11 COMMENT=        Replacement for JBoss Application Server
12
13 LICENSE=        GPLv2
14
15 USE_RC_SUBR=    wildfly90
16 USE_JAVA=       yes
17 JAVA_VERSION=   1.7+
18 USER=           www
19 GROUP=          www
20 VAR_DIR?=       /var
21 LOG_DIR?=       ${VAR_DIR}/log/${PORTNAME}
22 PID_FILE=       ${VAR_DIR}/run/${PORTNAME}.pid
23 WILDFLY_VERSION=${PORTVERSION}.Final
24 SUB_FILES=      pkg-message
25
26 SUB_LIST=       APP_SHORTNAME=${PORTNAME} \
27                 LOG_DIR=${LOG_DIR} \
28                 USER=${USER} \
29                 GROUP=${GROUP} \
30                 PID_FILE=${PID_FILE} \
31                 APP_HOME=${PREFIX}/wildfly-${PORTVERSION}
32 PLIST_SUB=      APP_HOME=wildfly-${PORTVERSION}
33
34 CONFIG_FILES=   appclient/configuration/appclient.xml \
35                 appclient/configuration/logging.properties \
36                 domain/configuration/application-roles.properties \
37                 domain/configuration/application-users.properties \
38                 domain/configuration/default-server-logging.properties \
39                 domain/configuration/domain.xml \
40                 domain/configuration/host-master.xml \
41                 domain/configuration/host-slave.xml \
42                 domain/configuration/host.xml \
43                 domain/configuration/logging.properties \
44                 domain/configuration/mgmt-groups.properties \
45                 domain/configuration/mgmt-users.properties \
46                 standalone/configuration/application-roles.properties \
47                 standalone/configuration/application-users.properties \
48                 standalone/configuration/logging.properties \
49                 standalone/configuration/mgmt-groups.properties \
50                 standalone/configuration/mgmt-users.properties \
51                 standalone/configuration/standalone-full-ha.xml \
52                 standalone/configuration/standalone-full.xml \
53                 standalone/configuration/standalone-ha.xml \
54                 standalone/configuration/standalone.xml
55
56 post-patch:
57         ${RM} ${WRKSRC}/bin/add-user.sh.orig
58
59 do-build:
60         ${RM} ${WRKSRC}/bin/*.bat
61         ${RM} ${WRKSRC}/bin/*.ps1
62         ${RM} -r ${WRKSRC}/bin/service
63         ${RM} -r ${WRKSRC}/bin/init.d
64
65 do-install:
66         ${MKDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}
67         (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION})
68         ${RMDIR} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/.installation
69 .for FILE in ${CONFIG_FILES}
70         ${MV} ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/${FILE} \
71                 ${STAGEDIR}${PREFIX}/wildfly-${PORTVERSION}/${FILE}.sample
72 .endfor
73
74 .include <bsd.port.mk>