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