diff options
author | fluffy <fluffy@FreeBSD.org> | 2011-03-21 23:02:21 +0800 |
---|---|---|
committer | fluffy <fluffy@FreeBSD.org> | 2011-03-21 23:02:21 +0800 |
commit | 9b4a38f35761ecda28ce79ef741df28106ad358b (patch) | |
tree | c8630c8744c004426599df85ef053a7fed158d23 /java/jboss5 | |
parent | e9125228f6aff4ac34be8f2358fb4611390e5d91 (diff) | |
download | freebsd-ports-graphics-9b4a38f35761ecda28ce79ef741df28106ad358b.tar.gz freebsd-ports-graphics-9b4a38f35761ecda28ce79ef741df28106ad358b.tar.zst freebsd-ports-graphics-9b4a38f35761ecda28ce79ef741df28106ad358b.zip |
- Try to unbroke java/jboss5 with native jdks
- Use bundled Ant instead of system to resolve build breakage
PR: 153697
Reported by: Makoto Kishimoto <ksmakoto AT dd DOT iij4u DOT or DOT jp>
Patch by: Jimmy Kelley <ljboiler AT gmail DOT com>
Approved by: maintainer timeout (>2 months)
Diffstat (limited to 'java/jboss5')
-rw-r--r-- | java/jboss5/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/java/jboss5/Makefile b/java/jboss5/Makefile index 254b0b3afb2..af0c63ebe73 100644 --- a/java/jboss5/Makefile +++ b/java/jboss5/Makefile @@ -19,7 +19,9 @@ COMMENT= Open-source J2EE application server (5.x family) LATEST_LINK= jboss5 USE_JAVA= yes JAVA_VERSION= 1.5+ -USE_ANT= yes +JAVA_OS= native +ANT_HOME= ${WRKSRC}/tools +ANT= ${WRKSRC}/tools/bin/ant DATADIR= ${PREFIX}/share/${UNIQUENAME} DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} @@ -40,7 +42,7 @@ LOG_DIR?= ${VAR_DIR}/log/${UNIQUENAME} DEPLOY_DIR?= ${VAR_DIR}/${UNIQUENAME} USER= www GROUP= www -STOP_TIMEOUT?= 10 +STOP_TIMEOUT?= 30 PID_FILE= /var/run/${UNIQUENAME}.pid JBOSSOUTPUT= ${WRKSRC}/build/output/${PORTNAME}-${PORTVERSION} @@ -63,6 +65,10 @@ SUB_LIST= APP_HOME=${DATADIR} \ .include <bsd.port.pre.mk> +do-build: + @(cd ${BUILD_WRKSRC}; \ + ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) + do-install: ${MKDIR} ${DATADIR}/bin && ${CHOWN} -R ${USER}:${GROUP} ${DATADIR} ${MKDIR} ${DEPLOY_DIR} && ${CHOWN} ${USER}:${GROUP} ${DEPLOY_DIR} @@ -70,6 +76,10 @@ do-install: ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}) (cd ${JBOSSOUTPUT}/server && ${FIND} . |\ ${CPIO} -pdmu -R ${USER}:${GROUP} ${DEPLOY_DIR}) + (cd ${WRKSRC}/jbossas/remoting/output/lib && ${FIND} . |\ + ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/lib) + (cd ${JBOSSOUTPUT}/client && ${FIND} jboss-remoting.jar jboss-serialization.jar |\ + ${CPIO} -pdmu -R ${USER}:${GROUP} ${DATADIR}/common/lib) ${INSTALL} -o ${USER} -g ${GROUP} -m 0640 /dev/null ${PID_FILE} .if !defined(NOPORTDOCS) cd ${JBOSSOUTPUT}/docs \ |