diff options
Diffstat (limited to 'java/jboss5')
-rw-r--r-- | java/jboss5/Makefile | 98 | ||||
-rw-r--r-- | java/jboss5/distinfo | 2 | ||||
-rw-r--r-- | java/jboss5/files/jboss5.in | 113 | ||||
-rw-r--r-- | java/jboss5/files/patch-pom-xml | 38 | ||||
-rw-r--r-- | java/jboss5/files/pkg-deinstall.in | 35 | ||||
-rw-r--r-- | java/jboss5/files/pkg-install.in | 46 | ||||
-rw-r--r-- | java/jboss5/files/pkg-message.in | 5 | ||||
-rw-r--r-- | java/jboss5/pkg-descr | 20 |
8 files changed, 0 insertions, 357 deletions
diff --git a/java/jboss5/Makefile b/java/jboss5/Makefile deleted file mode 100644 index f204915db3f9..000000000000 --- a/java/jboss5/Makefile +++ /dev/null @@ -1,98 +0,0 @@ -# Created by: nemoliu@FreeBSD.org <nemoliu@gmail.com> -# $FreeBSD$ - -PORTNAME= jboss -PORTVERSION= 5.1.0.GA -PORTREVISION= 1 -PORTEPOCH= 1 -CATEGORIES= java devel -MASTER_SITES= SF/${PORTNAME}/JBoss/JBoss-${PORTVERSION} -DISTNAME= ${PORTNAME}-${PORTVERSION}-src - -MAINTAINER= ports@FreeBSD.org -COMMENT= Open-source J2EE application server (5.x family) - -LATEST_LINK= jboss5 -USE_JAVA= yes -JAVA_VERSION= 1.6+ -JAVA_OS= native -ANT_HOME= ${WRKSRC}/tools -ANT= ${WRKSRC}/tools/bin/ant -DATADIR= ${PREFIX}/share/${UNIQUENAME} -DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} - -MANUAL_PACKAGE_BUILD= fetches files in build phase - -MAKE_ARGS= -buildfile build/build.xml - -USE_RC_SUBR= jboss5 -SUB_FILES= pkg-install pkg-deinstall pkg-message - -PORTDATA= * -PORTDOCS= * - -VAR_DIR?= /var -LOG_DIR?= ${VAR_DIR}/log/${UNIQUENAME} -DEPLOY_DIR?= ${VAR_DIR}/${UNIQUENAME} -USER= www -GROUP= www -STOP_TIMEOUT?= 30 -PID_FILE= /var/run/${UNIQUENAME}.pid - -JBOSSOUTPUT= ${WRKSRC}/build/output/${PORTNAME}-${PORTVERSION} -APP_HOME_FILES= bin/run.jar client lib common - -PKGMESSAGE= ${WRKDIR}/pkg-message - -SUB_LIST= APP_HOME=${DATADIR} \ - APP_SHORTNAME=${UNIQUENAME} \ - GROUP=${GROUP} \ - LOG_DIR=${LOG_DIR} \ - DEPLOY_DIR=${DEPLOY_DIR} \ - PID_FILE=${PID_FILE} \ - PKGNAME=${PKGNAME} \ - PORTNAME=${PORTNAME} \ - PORTVERSION=${PORTVERSION} \ - PREFIX=${PREFIX} \ - STOP_TIMEOUT=${STOP_TIMEOUT} \ - USER=${USER} - -OPTIONS_DEFINE= DOCS - -NO_STAGE= yes -.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} - (cd ${JBOSSOUTPUT} && ${FIND} ${APP_HOME_FILES} |\ - ${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 ${PORT_OPTIONS:MDOCS} - cd ${JBOSSOUTPUT}/docs \ - && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; -.endif - -post-install: - @${ECHO_CMD} "@cwd ${VAR_DIR}" >> ${TMPPLIST} - @${FIND} -s ${JBOSSOUTPUT}/server -not -type d | \ - ${SED} -ne 's,^${JBOSSOUTPUT}/server/,${DEPLOY_DIR:S,^${VAR_DIR}/,,}/,p' >> ${TMPPLIST} - @${FIND} -s -d ${JBOSSOUTPUT}/server -type d | \ - ${SED} -ne 's,^${JBOSSOUTPUT}/server/,@dirrm ${DEPLOY_DIR:S,^${VAR_DIR}/,,}/,p' >> ${TMPPLIST} - @${ECHO_CMD} "@dirrm ${DEPLOY_DIR:S,^${VAR_DIR}/,,}" >> ${TMPPLIST} -.if !defined(BATCH) - @${CAT} ${PKGMESSAGE} -.endif - -.include <bsd.port.post.mk> diff --git a/java/jboss5/distinfo b/java/jboss5/distinfo deleted file mode 100644 index 819df353dfe0..000000000000 --- a/java/jboss5/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (jboss-5.1.0.GA-src.tar.gz) = 6fc05aa3042686f41c675275d2027e70f0a5a5c4f84ae74ff5e45bd6288a7b5a -SIZE (jboss-5.1.0.GA-src.tar.gz) = 141833337 diff --git a/java/jboss5/files/jboss5.in b/java/jboss5/files/jboss5.in deleted file mode 100644 index d497027a5323..000000000000 --- a/java/jboss5/files/jboss5.in +++ /dev/null @@ -1,113 +0,0 @@ -#!/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%%_jvm_opts="${%%APP_SHORTNAME%%_jvm_opts:-"-server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"}" -%%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%%" -JBOSS_DEPLOY="%%DEPLOY_DIR%%" -JBOSS_MAIN="org.jboss.Main" -JAVA_OPTS="${%%APP_SHORTNAME%%_jvm_opts} \ - -Djboss.server.base.dir=${JBOSS_DEPLOY} \ - -Djboss.server.base.url=file://${JBOSS_DEPLOY} \ - -Djava.endorsed.dirs=${JBOSS_HOME}/lib/endorsed \ - -classpath ${JBOSS_HOME}/bin/run.jar ${JBOSS_MAIN}" - -%%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} sh -c "java ${JAVA_OPTS} ${%%APP_SHORTNAME%%_args} ${%%APP_SHORTNAME%%_logging} &" - - sleep 1 # let daemon(8) and sh(1) finish before executing pgrep(1) - pgrep -U ${%%APP_SHORTNAME%%_user} -f ${JBOSS_MAIN} > ${pidfile} - chown ${%%APP_SHORTNAME%%_user} $pidfile -} - -%%APP_SHORTNAME%%_stop () -{ - # Subvert the check_pid_file procname check. - if [ -f ${pidfile} ] - then - read rc_pid junk < $pidfile - if [ ! -z "${rc_pid}" ] - then - procname=`ps -o ucomm= ${rc_pid}` - fi - fi - - rc_pid=$(check_pidfile $pidfile *$procname*) - - if [ -z "${rc_pid}" ] - then - [ -n "${rc_fast}" ] && return 0 - if [ -n "${pidfile}" ] - then - echo "${name} not running? (check ${pidfile})." - else - echo "${name} not running?" - fi - return 1 - fi - - echo "Stopping ${name}." - kill ${rc_pid} 2> /dev/null - jboss_wait_max_for_pid %%STOP_TIMEOUT%% ${rc_pid} - kill -KILL ${rc_pid} 2> /dev/null && echo "Killed." - rm -f ${pidfile} -} - -jboss_wait_max_for_pid () -{ - _timeout=$1 - shift - _pid=$1 - _prefix= - while [ $_timeout -gt 0 ] - do - echo -n ${_prefix:-"Waiting (max $_timeout secs) for PIDS: "}$_pid - _prefix=", " - sleep 2 - kill -0 $_pid 2> /dev/null || break - _timeout=$(($_timeout-2)) - done - if [ -n "$_prefix" ]; then - echo "." - fi -} - -run_rc_command "$1" diff --git a/java/jboss5/files/patch-pom-xml b/java/jboss5/files/patch-pom-xml deleted file mode 100644 index 53852477eb3f..000000000000 --- a/java/jboss5/files/patch-pom-xml +++ /dev/null @@ -1,38 +0,0 @@ ---- pom.xml.orig 2011-12-17 12:21:05.405785653 +0000 -+++ pom.xml 2011-12-17 12:23:57.150885794 +0000 -@@ -304,6 +304,17 @@ - <enabled>true</enabled> - </snapshots> - </repository> -+ <repository> -+ <id>repository.jboss.org.2</id> -+ <name>JBoss Releases Repository 2</name> -+ <url>http://maven.glassfish.org/content/groups/glassfish</url> -+ <releases> -+ <enabled>true</enabled> -+ </releases> -+ <snapshots> -+ <enabled>false</enabled> -+ </snapshots> -+ </repository> - </repositories> - - <!-- Plugin Repositories --> -@@ -330,6 +341,17 @@ - <enabled>true</enabled> - </snapshots> - </pluginRepository> -+ <pluginRepository> -+ <id>repository.jboss.org.2</id> -+ <name>JBoss Plugin Releases 2</name> -+ <url>http://maven.glassfish.org/content/groups/glassfish</url> -+ <releases> -+ <enabled>true</enabled> -+ </releases> -+ <snapshots> -+ <enabled>false</enabled> -+ </snapshots> -+ </pluginRepository> - </pluginRepositories> - - <profiles> diff --git a/java/jboss5/files/pkg-deinstall.in b/java/jboss5/files/pkg-deinstall.in deleted file mode 100644 index 72f7b922c69f..000000000000 --- a/java/jboss5/files/pkg-deinstall.in +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# This script does the following. -# -# * Checks if the JBoss PID file exists. If it does, it kills the -# JBoss process and removes the PID file. -# -# $FreeBSD$ -# - -# Make sure we're in the right stage of the process -if [ "$2" = "DEINSTALL" ]; then - - # Kill JBoss if it is still running - PID_FILE=/var/run/jboss.pid - if [ -s ${PID_FILE} ]; then - PID=`cat ${PID_FILE}` - echo -n ">> Killing JBoss Server process (${PID})..." - /bin/kill ${PID} > /dev/null 2> /dev/null - if [ $? -eq 0 ]; then - echo " [ DONE ]" - else - echo " [ FAILED ]" - fi - echo -n ">> Removing PID file (${PID_FILE})..." - rm ${PID_FILE} > /dev/null 2> /dev/null - if [ $? -eq 0 ]; then - echo " [ DONE ]" - else - echo " [ FAILED ]" - fi - fi -fi - -exit 0 diff --git a/java/jboss5/files/pkg-install.in b/java/jboss5/files/pkg-install.in deleted file mode 100644 index 687ec3fc1f9e..000000000000 --- a/java/jboss5/files/pkg-install.in +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh -# -# Checks if the 'www' user and group exist. If they don't, then -# an attempt is made to create both. -# -# $FreeBSD$ -# - -# Make sure we're called during the 'make install' process -if [ "$2" != "PRE-INSTALL" ]; then - exit 0 -fi - -# Set some constants -USER=www -GROUP=${USER} -UID=80 -GID=${UID} - -# See if the group already exists -if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then - - # If not, try to create it - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi -fi - -# See if the user already exists -if ! pw usershow "${USER}" 2>/dev/null 1>&2; then - - # If not, try to create it - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ - -s "/sbin/nologin" -d "/nonexistent" \ - -c "World Wide Web Owner"; \ - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi -fi -exit 0 diff --git a/java/jboss5/files/pkg-message.in b/java/jboss5/files/pkg-message.in deleted file mode 100644 index 3be8c48126fd..000000000000 --- a/java/jboss5/files/pkg-message.in +++ /dev/null @@ -1,5 +0,0 @@ -%%PKGNAME%% has been installed in %%DATADIR%%. - -The deployment directory for applications is %%DEPLOY_DIR%%. - -To run the %%PORTNAME%% server from startup, add %%APP_SHORTNAME%%_enable="YES" in your /etc/rc.conf. Extra options can be found in the startup script. diff --git a/java/jboss5/pkg-descr b/java/jboss5/pkg-descr deleted file mode 100644 index d79340a7115a..000000000000 --- a/java/jboss5/pkg-descr +++ /dev/null @@ -1,20 +0,0 @@ -This is the final release of the JBoss 5.0 series for the Java EE5 codebase -that fully complies with the Java EE5 conformance testing certification -requirements. - -Many key features of JBoss 5 are provided by integrating other standalone -JBoss projects: - - * JBoss Microcontainer 2.0.2 - POJO based microcontainer removing the - dependency on JMX - * EJB 3.0 - Fully certified as part of the Java EE 5 compliant JBoss AS 5 - * Hibernate 3.3.1 - JPA certified - * JBoss Messaging 1.4.1 - the next generation messaging platform from JBoss - with HA features. - * JBoss WebServices 3.0.4 - new custom built JAX-WS compliant WebServices - stack. - * JBoss Seam 1.1 - a powerful new application framework to build next - generation Web 2.0 applications by unifying and integrating popular - service oriented architecture (SOA) technologies - -WWW: http://www.jboss.org/ |