1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/www/payara/Makefile
Rodrigo Osorio a90b7c6d43 Update www/payara from 4.1.1.163 to 4.1.2.173
Add a user and group to run the server

Full release note :
https://docs.payara.fish/release-notes/release-notes-173.html

PR:		224405
Submitted by:	Dmytro Bilokha <dmytro@posteo.net> (maintainer)
2018-05-24 20:49:47 +00:00

61 lines
2.0 KiB
Makefile

# $FreeBSD$
PORTNAME= payara
PORTVERSION= 4.1.2.173
CATEGORIES= www java
MASTER_SITES= https://github.com/payara/Payara/releases/download/${PORTNAME}-server-${PORTVERSION}/
MAINTAINER= dmytro@posteo.net
COMMENT= Java EE application server derived from GlassFish Server Open Source Edition
LICENSE= GPLv2 CDDL
LICENSE_COMB= dual
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.8+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/payara41
DATADIR= ${PREFIX}/${PORTNAME}-${PORTVERSION}
VARMAIN= /var/${PORTNAME}
VARDIR= /var/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGMESSAGE?= ${WRKDIR}/pkg-message
PLIST_SUB+= VARDIR=${VARDIR}
PLIST_SUB+= VARMAIN=${VARMAIN}
# Since we USE_JAVA, we propagate the received JAVA_HOME variable to the
# template files, since it is used by the rc script.
SUB_LIST= PAYARAVERSION=${PORTVERSION} \
JAVA_HOME=${JAVA_HOME}
DOWNLOAD_URL= https://github.com/payara/Payara/releases/download/${PORTNAME}-server-${PORTVERSION}/
USE_RC_SUBR= payara
USERS= payara
GROUPS= payara
GLASSFISH_BIN_FILES= appclient asadmin capture-schema jspc package-appclient schemagen startserv stopserv wscompile wsdeploy wsgen wsimport xjc
.include <bsd.port.pre.mk>
do-install:
@${SED} "s|%%VARDIR%%|${VARDIR}|g" ${PKGDIR}/pkg-message > ${WRKDIR}/pkg-message
@${MKDIR} ${STAGEDIR}${VARDIR}/prefs
@${FIND} ${WRKSRC} -name '*.bat' -delete
@${FIND} ${WRKSRC} -name '*.exe' -delete
@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
@${MV} ${STAGEDIR}${DATADIR}/glassfish/domains ${STAGEDIR}${VARDIR}/domains
@${RLN} ${STAGEDIR}${VARDIR}/domains ${STAGEDIR}${DATADIR}/glassfish/domains
@${MV} ${STAGEDIR}${DATADIR}/glassfish/lib/registration ${STAGEDIR}${VARDIR}/registration
@${RLN} ${STAGEDIR}${VARDIR}/registration ${STAGEDIR}${DATADIR}/glassfish/lib/registration
@${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/bin/*
@${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/mq/bin/*
.for x in ${GLASSFISH_BIN_FILES}
@${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/glassfish/bin/${x}
.endfor
.include <bsd.port.post.mk>