summaryrefslogtreecommitdiff
path: root/java/jboss5/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 16:48:53 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 16:48:53 +0000
commit8a2ac20b3416bb80f06c95f516989794723d11a8 (patch)
tree847476a3e4b2e087c417ce68287b963678d09294 /java/jboss5/files
parentFix build on 8 and 9. (diff)
Remove non staged ports without pending PR from j*
Notes
Notes: svn path=/head/; revision=366899
Diffstat (limited to 'java/jboss5/files')
-rw-r--r--java/jboss5/files/jboss5.in113
-rw-r--r--java/jboss5/files/patch-pom-xml38
-rw-r--r--java/jboss5/files/pkg-deinstall.in35
-rw-r--r--java/jboss5/files/pkg-install.in46
-rw-r--r--java/jboss5/files/pkg-message.in5
5 files changed, 0 insertions, 237 deletions
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.