summaryrefslogtreecommitdiff
path: root/java/jboss3/files
diff options
context:
space:
mode:
Diffstat (limited to 'java/jboss3/files')
-rw-r--r--java/jboss3/files/daemonctl.1.in (renamed from java/jboss3/files/daemonctl.1)0
-rw-r--r--java/jboss3/files/daemonctl.c.in (renamed from java/jboss3/files/daemonctl.c)2
-rw-r--r--java/jboss3/files/jboss3.in (renamed from java/jboss3/files/startup.sh)2
-rw-r--r--java/jboss3/files/patch-build.xml38
-rw-r--r--java/jboss3/files/patch-buildmagic.ent37
-rw-r--r--java/jboss3/files/pkg-deinstall.in35
-rw-r--r--java/jboss3/files/pkg-install.in46
-rw-r--r--java/jboss3/files/pkg-message.in (renamed from java/jboss3/files/pkg-message)0
8 files changed, 158 insertions, 2 deletions
diff --git a/java/jboss3/files/daemonctl.1 b/java/jboss3/files/daemonctl.1.in
index 30547f449ef9..30547f449ef9 100644
--- a/java/jboss3/files/daemonctl.1
+++ b/java/jboss3/files/daemonctl.1.in
diff --git a/java/jboss3/files/daemonctl.c b/java/jboss3/files/daemonctl.c.in
index 169b30521a0f..7bcdc6b7f5e8 100644
--- a/java/jboss3/files/daemonctl.c
+++ b/java/jboss3/files/daemonctl.c.in
@@ -7,7 +7,7 @@
* Original by Ernst de Haan <znerd@freebsd.org>
* www/jakarta-tomcat4/files/daemonctl.c
*
- * $FreeBSD: /tmp/pcvs/ports/java/jboss3/files/Attic/daemonctl.c,v 1.2 2005-01-13 01:55:13 hq Exp $
+ * $FreeBSD$
*/
#include <assert.h>
diff --git a/java/jboss3/files/startup.sh b/java/jboss3/files/jboss3.in
index 94d5b0fa41b8..b77e6479d88d 100644
--- a/java/jboss3/files/startup.sh
+++ b/java/jboss3/files/jboss3.in
@@ -2,7 +2,7 @@
#
# %%APP_TITLE%% startup script.
#
-# $FreeBSD: /tmp/pcvs/ports/java/jboss3/files/Attic/startup.sh,v 1.2 2005-01-13 01:55:13 hq Exp $
+# $FreeBSD$
#
# PROVIDE: %%APP_SHORTNAME%%
diff --git a/java/jboss3/files/patch-build.xml b/java/jboss3/files/patch-build.xml
new file mode 100644
index 000000000000..52d4e964fda1
--- /dev/null
+++ b/java/jboss3/files/patch-build.xml
@@ -0,0 +1,38 @@
+--- ./build/build.xml.orig Sun Mar 25 22:55:20 2007
++++ ./build/build.xml Sun Mar 25 22:58:57 2007
+@@ -43,6 +43,35 @@
+ -->
+
+ <target name="init" unless="init.disable" depends="_buildmagic:init">
++ <!-- Make sure we have the right version of Ant -->
++ <property name="buildmagic.ant15.baseversion" value="1.5"/>
++ <property name="buildmagic.ant16.baseversion" value="1.6"/>
++ <property name="buildmagic.ant16.baseversion" value="1.7"/>
++ <!--
++ | Add new conditions for other supported Ant versions when they
++ | become avaialble.
++ -->
++
++ <condition property="buildmagic.ant.compatible">
++ <or>
++ <contains string="${ant.version}"
++ substring="Ant version ${buildmagic.ant15.baseversion}"/>
++ <contains string="${ant.version}"
++ substring="Ant version ${buildmagic.ant16.baseversion}"/>
++ <contains string="${ant.version}"
++ substring="Ant version ${buildmagic.ant17.baseversion}"/>
++ </or>
++ </condition>
++
++ <fail unless="buildmagic.ant.compatible">
++
++ Unsupported Ant version:
++
++ ${ant.version}
++
++ Please install a version which is compatible with Ant ${buildmagic.ant15.baseversion} or ${buildmagic.ant16.baseversion} or ${buildmagic.ant17.baseversion}.
++
++ </fail>
+ </target>
+
+
diff --git a/java/jboss3/files/patch-buildmagic.ent b/java/jboss3/files/patch-buildmagic.ent
new file mode 100644
index 000000000000..175827a80bc5
--- /dev/null
+++ b/java/jboss3/files/patch-buildmagic.ent
@@ -0,0 +1,37 @@
+--- ./tools/etc/buildmagic/buildmagic.ent.orig Sun Mar 25 22:53:51 2007
++++ ./tools/etc/buildmagic/buildmagic.ent Sun Mar 25 22:54:21 2007
+@@ -7,34 +7,6 @@
+ <!-- Initialize the build system. -->
+ <target name="_buildmagic:init" unless="init.disable">
+
+- <!-- Make sure we have the right version of Ant -->
+- <property name="buildmagic.ant15.baseversion" value="1.5"/>
+- <property name="buildmagic.ant16.baseversion" value="1.6"/>
+-
+- <!--
+- | Add new conditions for other supported Ant versions when they
+- | become avaialble.
+- -->
+-
+- <condition property="buildmagic.ant.compatible">
+- <or>
+- <contains string="${ant.version}"
+- substring="Ant version ${buildmagic.ant15.baseversion}"/>
+- <contains string="${ant.version}"
+- substring="Ant version ${buildmagic.ant16.baseversion}"/>
+- </or>
+- </condition>
+-
+- <fail unless="buildmagic.ant.compatible">
+-
+- Unsupported Ant version:
+-
+- ${ant.version}
+-
+- Please install a version which is compatible with Ant ${buildmagic.ant15.baseversion} or ${buildmagic.ant16.baseversion}.
+-
+- </fail>
+-
+ <!-- JDK Detection -->
+ <available classname="java.lang.StrictMath" property="HAVE_JDK_1.3"/>
+ <available classname="java.lang.StackTraceElement" property="HAVE_JDK_1.4"/>
diff --git a/java/jboss3/files/pkg-deinstall.in b/java/jboss3/files/pkg-deinstall.in
new file mode 100644
index 000000000000..72f7b922c69f
--- /dev/null
+++ b/java/jboss3/files/pkg-deinstall.in
@@ -0,0 +1,35 @@
+#!/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/jboss3/files/pkg-install.in b/java/jboss3/files/pkg-install.in
new file mode 100644
index 000000000000..687ec3fc1f9e
--- /dev/null
+++ b/java/jboss3/files/pkg-install.in
@@ -0,0 +1,46 @@
+#!/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/jboss3/files/pkg-message b/java/jboss3/files/pkg-message.in
index e48411f3028c..e48411f3028c 100644
--- a/java/jboss3/files/pkg-message
+++ b/java/jboss3/files/pkg-message.in