summaryrefslogtreecommitdiffstats
path: root/java/jboss71/Makefile
blob: 02c3964edbcb491182c7111d41739c775d3d40e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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/
DISTNAME=	${GH_PROJECT}-${GH_TAGNAME}
DISTFILES=	m2-${DISTNAME}.tar.xz ${DISTNAME}.tar.gz

MAINTAINER=	yerenkow@gmail.com
COMMENT=	JBoss 7.1.3.Final

USE_GITHUB=	YES
GH_ACCOUNT=	jbossas
GH_PROJECT=	jboss-as
GH_TAGNAME=	7.1.3.Final
GH_COMMIT=	f1f5122

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/${DISTNAME}

SUB_LIST=	APP_SHORTNAME=${PORTNAME} \
		LOG_DIR=${LOG_DIR} \
		USER=${USER}\
		PID_FILE=${PID_FILE} \
		APP_HOME=${PREFIX}/${DISTNAME}

NO_STAGE=	yes
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} ${PREFIX}/${DISTNAME} && cd ${JBOSSOUTPUT} && ${FIND} . | ${CPIO} -pdmu -R ${USER}:${GROUP} ${PREFIX}/${DISTNAME}

.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud