mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
88 lines
3.1 KiB
Makefile
88 lines
3.1 KiB
Makefile
PORTNAME= wildfly
|
|
DISTVERSION= 34.0.1
|
|
CATEGORIES= java www
|
|
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${WILDFLY_VERSION}/
|
|
DISTNAME= wildfly-${WILDFLY_VERSION}
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Replacement for JBoss Application Server
|
|
WWW= https://wildfly.org/
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= java
|
|
JAVA_VERSION= 17+
|
|
USE_RC_SUBR= wildfly
|
|
|
|
NO_BUILD= yes
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= APP_SHORTNAME=${PORTNAME} \
|
|
LOG_DIR=${LOG_DIR} \
|
|
USERS=${USERS} \
|
|
GROUPS=${GROUPS} \
|
|
PID_FILE=${PID_FILE} \
|
|
APP_HOME=${PREFIX}/${PORTNAME}
|
|
|
|
USERS= www
|
|
GROUPS= www
|
|
|
|
PLIST_SUB= APP_HOME=${PORTNAME}
|
|
|
|
VAR_DIR?= /var
|
|
LOG_DIR?= ${VAR_DIR}/log/${PORTNAME}
|
|
PID_FILE= ${VAR_DIR}/run/${PORTNAME}.pid
|
|
WILDFLY_VERSION=${PORTVERSION}.Final
|
|
|
|
CONFIG_FILES= appclient/configuration/appclient.xml \
|
|
appclient/configuration/logging.properties \
|
|
domain/configuration/application-roles.properties \
|
|
domain/configuration/application-users.properties \
|
|
domain/configuration/default-server-logging.properties \
|
|
domain/configuration/domain.xml \
|
|
domain/configuration/host-primary.xml \
|
|
domain/configuration/host-secondary.xml \
|
|
domain/configuration/host.xml \
|
|
domain/configuration/logging.properties \
|
|
domain/configuration/mgmt-groups.properties \
|
|
domain/configuration/mgmt-users.properties \
|
|
standalone/configuration/application-roles.properties \
|
|
standalone/configuration/application-users.properties \
|
|
standalone/configuration/logging.properties \
|
|
standalone/configuration/mgmt-groups.properties \
|
|
standalone/configuration/mgmt-users.properties \
|
|
standalone/configuration/standalone-full-ha.xml \
|
|
standalone/configuration/standalone-full.xml \
|
|
standalone/configuration/standalone-ha.xml \
|
|
standalone/configuration/standalone.xml
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/bin/add-user.sh.orig
|
|
${RM} ${WRKSRC}/bin/*.bat
|
|
${RM} ${WRKSRC}/bin/*.ps1
|
|
${RM} -r ${WRKSRC}/bin/service
|
|
${RM} -r ${WRKSRC}/bin/init.d
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
|
|
${RMDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/.installation
|
|
.for FILE in ${CONFIG_FILES}
|
|
${MV} ${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE} \
|
|
${STAGEDIR}${PREFIX}/${PORTNAME}/${FILE}.sample
|
|
.endfor
|
|
${FIND} -s ${STAGEDIR}${PREFIX}/${PORTNAME} -not -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' | \
|
|
${SED} -E -e '/sample$$/ s#^#@sample #' >> ${TMPPLIST}
|
|
${FIND} -s ${STAGEDIR}${WWWDIR} -type d | ${SORT} | \
|
|
${SED} -e 's#^${STAGEDIR}${PREFIX}/#@dir #' >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.galleon/hashes/.installation" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.galleon/hashes/.well-known/acme-challenge" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.galleon/hashes/domain/tmp/auth" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.galleon/hashes/standalone/lib/ext" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.galleon/hashes/standalone/tmp/auth" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/.well-known/acme-challenge" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/domain/tmp/auth" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/standalone/lib/ext" >> ${TMPPLIST}
|
|
${ECHO_CMD} "@dir wildfly/standalone/tmp/auth" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|