Update www/domoticz to version 2020.2
[dports.git] / java / wildfly16 / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       wildfly16
4 PORTVERSION=    16.0.0
5 CATEGORIES=     java www
6 MASTER_SITES=   http://download.jboss.org/wildfly/${WILDFLY_VERSION}/
7 DISTNAME=       wildfly-${WILDFLY_VERSION}
8
9 MAINTAINER=     reig.simeo@gmail.com
10 COMMENT=        Replacement for JBoss Application Server
11
12 LICENSE=        GPLv2
13
14 USE_RC_SUBR=    wildfly16
15 USE_JAVA=       yes
16
17 JAVA_VERSION=   1.8+
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}/${PORTNAME}
32 PLIST_SUB=      APP_HOME=${PORTNAME}
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-load-balancer.xml \
55                 standalone/configuration/standalone.xml
56
57 do-build:
58         ${RM} ${WRKSRC}/bin/*.bat
59         ${RM} ${WRKSRC}/bin/*.ps1
60
61 do-install:
62         ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
63         (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
64         ${RMDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/.installation
65 .for FILE in ${CONFIG_FILES}
66         ${MV} ${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE} \
67                 ${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE}.sample
68 .endfor
69
70 .include <bsd.port.mk>