freebsd-ports/java/jboss71/Makefile
Dmitry Marakasov f83aa33119 Deprecate and set expiration date to T + 2 months
From jboss.org:

    The JBoss AS community project has been renamed to the WildFly
    community project, which has a new home at wildfly.org.

    The JBoss name now only applies to the commercially supported
    product, called JBoss EAP, which is derived from the WildFly
    community project and is available here.

    For more information on the differences between the project and
    product offerings, see the JBoss.ORG technology page.

    You can find old JBoss AS community releases on our archived
    downloads page, however, these releases are not maintained and
    therefore are likely to contain bugs and security vulnerabilities.
    It is highly recommended that you upgrade to WildFly or JBoss
    EAP using the above links at your earliest convenience. If you
    require assistance in making this move, please ask on the forums
    or contact your local Red Hat account representitive.

PR:		214223, 214224, 214225
Submitted by:	yerenkow@gmail.com (maintainer)
2016-12-07 11:54:36 +00:00

57 lines
1.7 KiB
Makefile

# Created by: Alexander Yerenkow <yerenkow@gmail.com>
# $FreeBSD$
PORTNAME= jboss71
PORTVERSION= 7.1.3
#PORTREVISION= 0
#PORTEPOCH= 0
CATEGORIES= java www
MASTER_SITES= https://javaz.org/distfiles/
DISTNAME2= ${GH_PROJECT}-${GH_TAGNAME}
DISTFILES= m2-${DISTNAME2}.tar.xz ${DISTNAME}.tar.gz
MAINTAINER= yerenkow@gmail.com
COMMENT= JBoss 7.1.3.Final
DEPRECATED= Unsupported, replaced by wildfly
EXPIRATION_DATE=2017-02-07
USE_GITHUB= YES
GH_ACCOUNT= jbossas
GH_PROJECT= jboss-as
GH_TAGNAME= 7.1.3.Final
USE_RC_SUBR= jboss71
USE_JAVA= yes
JAVA_VERSION= 1.6+
USER= www
GROUP= www
VAR_DIR?= /var
LOG_DIR?= ${VAR_DIR}/log/${PORTNAME}
DEPLOY_DIR?= ${VAR_DIR}/${PORTNAME}
PID_FILE= /var/run/${PORTNAME}.pid
JBOSSOUTPUT= ${WRKSRC}/build/target/${DISTNAME2}
SUB_LIST= APP_SHORTNAME=${PORTNAME} \
LOG_DIR=${LOG_DIR} \
USER=${USER}\
PID_FILE=${PID_FILE} \
APP_HOME=${PREFIX}/${DISTNAME2}
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "To build you should have at least 2Gb of Ram (Or build will fail with java OOM Exception)"
@${ECHO_MSG} "There's no dependensy on maven3, since JBoss can handle itself."
post-patch:
${MV} ${WRKSRC}/tools/maven/conf/settings.xml ${WRKSRC}/tools/maven/conf/settings.xml.orig
@${SED} -e 's,<!-- localRepository,<localRepository>${WRKDIR}/.m2/repository</localRepository><!-- localRepository,g' \
${WRKSRC}/tools/maven/conf/settings.xml.orig > ${WRKSRC}/tools/maven/conf/settings.xml
do-build:
cd ${WRKSRC} && ./build.sh -Dmaven.test.skip=true -DskipTests
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${DISTNAME2} && cd ${JBOSSOUTPUT} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${STAGEDIR}${PREFIX}/${DISTNAME2}
.include <bsd.port.mk>