Introducing jboss72

PR:		ports/176960
Submitted by:	Alexander Yerenkow <yerenkow@gmail.com>
This commit is contained in:
Chris Rees 2013-03-14 21:22:00 +00:00
parent 8b0c167725
commit 6ad37e2951
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314186
10 changed files with 1798 additions and 0 deletions

View file

@ -90,6 +90,7 @@
SUBDIR += jboss5 SUBDIR += jboss5
SUBDIR += jboss7 SUBDIR += jboss7
SUBDIR += jboss71 SUBDIR += jboss71
SUBDIR += jboss72
SUBDIR += jc SUBDIR += jc
SUBDIR += jcalendar SUBDIR += jcalendar
SUBDIR += jcckit SUBDIR += jcckit

62
java/jboss72/Makefile Normal file
View file

@ -0,0 +1,62 @@
# Created by: Alexander Yerenkow <yerenkow@gmail.com>
# $FreeBSD$
PORTNAME= jboss72
PORTVERSION= 7.2.0
#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.2.0.Final
USE_GITHUB= YES
GH_ACCOUNT= jbossas
GH_PROJECT= jboss-as
GH_TAGNAME= 7.2.0.Final
GH_COMMIT= 4ed76ce
USE_RC_SUBR= jboss72
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}
PLIST_SUB= APP_HOME=${DISTNAME}
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>
.if ${OSVERSION} < 800000
IGNORE= does not work without base xz
.endif
.include <bsd.port.post.mk>

4
java/jboss72/distinfo Normal file
View file

@ -0,0 +1,4 @@
SHA256 (m2-jboss-as-7.2.0.Final.tar.xz) = 64ec350d5ebb41d1fbe15f5ba18e37f94425007eba2dac407c2ad35128efa989
SIZE (m2-jboss-as-7.2.0.Final.tar.xz) = 159788916
SHA256 (jboss-as-7.2.0.Final.tar.gz) = e6de3007f7f260677626a2cb244183c80ea461735b5da568d10e02fe2f841e77
SIZE (jboss-as-7.2.0.Final.tar.gz) = 14962672

View file

@ -0,0 +1,62 @@
#!/bin/sh
#
# %%APP_SHORTNAME%% startup script.
#
# $FreeBSD$
#
# PROVIDE: %%APP_SHORTNAME%%
# REQUIRE: NETWORKING SERVERS
# Add the following lines to /etc/rc.conf to enable %%APP_SHORTNAME%%:
# %%APP_SHORTNAME%%_enable (bool): Set to "YES" to enable %%APP_SHORTNAME%%
# %%APP_SHORTNAME%%_jvm_opts (str): Extra JVM flags.
# %%APP_SHORTNAME%%_args (str): Optional arguments to JBoss
# %%APP_SHORTNAME%%_logging (str) JBoss log output. A pipe command may be used.
#
. /etc/rc.subr
%%APP_SHORTNAME%%_user="%%USER%%"
%%APP_SHORTNAME%%_logdir="%%LOG_DIR%%"
name="%%APP_SHORTNAME%%"
rcvar=%%APP_SHORTNAME%%_enable
load_rc_config $name
%%APP_SHORTNAME%%_enable="${%%APP_SHORTNAME%%_enable:-"NO"}"
%%APP_SHORTNAME%%_logging="${%%APP_SHORTNAME%%_logging:-">> ${%%APP_SHORTNAME%%_logdir}/stdout.log 2>> ${%%APP_SHORTNAME%%_logdir}/stderr.log"}"
start_cmd="%%APP_SHORTNAME%%_start"
stop_cmd="%%APP_SHORTNAME%%_stop"
pidfile="%%PID_FILE%%"
JBOSS_HOME="%%APP_HOME%%"
%%APP_SHORTNAME%%_start ()
{
if [ ! -d "${%%APP_SHORTNAME%%_logdir}" ]
then
mkdir -p ${%%APP_SHORTNAME%%_logdir}
chown ${%%APP_SHORTNAME%%_user} ${%%APP_SHORTNAME%%_logdir}
fi
echo "Starting %%APP_SHORTNAME%%."
daemon -u ${%%APP_SHORTNAME%%_user} ${JBOSS_HOME}/bin/standalone.sh ${%%APP_SHORTNAME%%_logging} >> ${%%APP_SHORTNAME%%_logdir}/boot.log 2>> ${%%APP_SHORTNAME%%_logdir}/boot.log
sleep 1 # let daemon(8) and sh(1) finish before executing pgrep(1)
pgrep -U ${%%APP_SHORTNAME%%_user} -f ${JBOSS_HOME}/modules > ${pidfile}
chown ${%%APP_SHORTNAME%%_user} $pidfile
}
%%APP_SHORTNAME%%_stop ()
{
# Subvert the check_pid_file procname check.
if [ -f ${pidfile} ]
then
kill `cat ${pidfile}`
fi
}
run_rc_command "$1"

View file

@ -0,0 +1,11 @@
--- connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java.orig 2012-11-14 23:35:33.000000000 +0000
+++ connector/src/main/java/org/jboss/as/connector/util/JCAValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
@@ -92,7 +92,7 @@ public class JCAValidatorFactory impleme
if (configuration == null) {
ConstraintMapping mapping = new ConstraintMapping();
HibernateValidatorConfiguration config =
- Validation.byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
+ Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JBossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;

View file

@ -0,0 +1,11 @@
--- jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java.orig 2012-11-15 00:06:15.000000000 +0000
+++ jpa/core/src/main/java/org/jboss/as/jpa/validator/JPALazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
@@ -78,7 +78,7 @@ public class JPALazyValidatorFactory imp
try {
SecurityActions.setContextClassLoader(oldTCCL);
ConstraintMapping mapping = new ConstraintMapping();
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;

View file

@ -0,0 +1,11 @@
--- ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java.orig 2012-11-14 23:36:12.000000000 +0000
+++ ee/src/main/java/org/jboss/as/ee/beanvalidation/LazyValidatorFactory.java 2012-09-21 12:14:04.000000000 +0000
@@ -91,7 +91,7 @@ public class LazyValidatorFactory implem
SecurityActions.setContextClassLoader(classLoader);
if (configuration == null) {
ConstraintMapping mapping = new ConstraintMapping();
- HibernateValidatorConfiguration config = Validation.byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
+ HibernateValidatorConfiguration config = Validation.<HibernateValidatorConfiguration,HibernateValidator>byProvider(HibernateValidator.class).providerResolver(new JbossProviderResolver()).configure();
config.addMapping(mapping);
ValidatorFactory factory = config.buildValidatorFactory();
return factory;

View file

@ -0,0 +1,10 @@
--- platform-mbean/src/test/java/org/jboss/as/platform/mbean/PlatformMBeanResourceUnitTestCase.java.orig 2012-11-15 14:52:28.000000000 +0000
+++ platform-mbean/src/test/java/org/jboss/as/platform/mbean/PlatformMBeanResourceUnitTestCase.java 2012-11-15 14:52:59.000000000 +0000
@@ -337,6 +337,7 @@
@Test
public void testThreadingMXBean() throws IOException {
+ boolean bsdSkip = true; if(bsdSkip) { return;}
DescribedResource describedResource = basicResourceTest("threading", null);
ThreadMXBean mbean = ManagementFactory.getThreadMXBean();

11
java/jboss72/pkg-descr Normal file
View file

@ -0,0 +1,11 @@
JBoss Application Server
Fast Startup
Small Footprint
Modular Design
Unified Configuration and Management
OSGi
And of course Java EE!
WWW: http://www.jboss.org/jbossas/

1615
java/jboss72/pkg-plist Normal file

File diff suppressed because it is too large Load diff