summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/orion/files/2.0.5')
-rw-r--r--www-servers/orion/files/2.0.5/2.0.5-gentoo.patch129
-rw-r--r--www-servers/orion/files/2.0.5/orion.conf22
-rwxr-xr-xwww-servers/orion/files/2.0.5/orion.init30
-rwxr-xr-xwww-servers/orion/files/2.0.5/start_orion.sh10
-rwxr-xr-xwww-servers/orion/files/2.0.5/stop_orion.sh3
5 files changed, 194 insertions, 0 deletions
diff --git a/www-servers/orion/files/2.0.5/2.0.5-gentoo.patch b/www-servers/orion/files/2.0.5/2.0.5-gentoo.patch
new file mode 100644
index 000000000000..65c9e6925ead
--- /dev/null
+++ b/www-servers/orion/files/2.0.5/2.0.5-gentoo.patch
@@ -0,0 +1,129 @@
+diff -ur orion.orig/config/application.xml orion/config/application.xml
+--- orion.orig/config/application.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/application.xml 2005-01-08 02:43:48.991562592 +0100
+@@ -4,18 +4,18 @@
+ <!-- The global application config that is the parent of all the other
+ applications in this server. -->
+ <orion-application>
+- <web-module id="defaultWebApp" path="../default-web-app" />
++ <web-module id="defaultWebApp" path="/opt/orion/default-web-app" />
+
+- <persistence path="../persistence" />
++ <persistence path="/opt/orion/persistence" />
+
+ <!-- Path to the libraries that are installed on this server.
+ These will accesible for the servlets, EJBs etc -->
+- <library path="../lib" />
++ <library path="/opt/orion/lib" />
+
+- <principals path="./principals.xml" />
++ <principals path="/opt/orion/config/principals.xml" />
+
+ <log>
+- <file path="../log/global-application.log" />
++ <file path="/var/log/orion/global-application.log" />
+ </log>
+
+ <data-sources path="data-sources.xml" />
+diff -ur orion.orig/config/data-sources.xml orion/config/data-sources.xml
+--- orion.orig/config/data-sources.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/data-sources.xml 2005-01-08 02:44:43.282309144 +0100
+@@ -19,7 +19,7 @@
+ connection-driver="org.hsqldb.jdbcDriver"
+ username="sa"
+ password=""
+- url="jdbc:hsqldb:./database/defaultdb"
++ url="jdbc:hsqldb:/opt/orion/database/defaultdb"
+ inactivity-timeout="30"
+ />
+ </data-sources>
+diff -ur orion.orig/config/default-web-site.xml orion/config/default-web-site.xml
+--- orion.orig/config/default-web-site.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/default-web-site.xml 2005-01-08 02:45:21.187546672 +0100
+@@ -1,7 +1,7 @@
+ <?xml version="1.0"?>
+ <!DOCTYPE web-site PUBLIC "Orion Web-site" "http://www.orionserver.com/dtds/web-site.dtd">
+
+-<web-site host="[ALL]" port="80" display-name="Default Orion WebSite">
++<web-site host="[ALL]" port="8080" display-name="Default Orion WebSite [Gentoo]">
+ <!-- The default web-app for this site, bound to the root -->
+ <default-web-app application="default" name="defaultWebApp" />
+
+@@ -9,5 +9,5 @@
+ <!-- <web-app application="news" name="news-web" root="/news" /> -->
+
+ <!-- Access Log, where requests are logged to -->
+- <access-log path="../log/default-web-access.log" />
++ <access-log path="/var/log/orion/default-web-access.log" />
+ </web-site>
+diff -ur orion.orig/config/global-web-application.xml orion/config/global-web-application.xml
+--- orion.orig/config/global-web-application.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/global-web-application.xml 2005-01-08 02:46:19.533676712 +0100
+@@ -5,14 +5,14 @@
+ want to debug JSP sources etc -->
+
+ <orion-web-app
+- jsp-cache-directory="./persistence"
++ jsp-cache-directory="/opt/orion/persistence"
+ servlet-webdir="/servlet"
+ development="false"
+- persistence-path="./persistence/state.ser"
++ persistence-path="/opt/orion/persistence/state.ser"
+ >
+
+ <!-- The mime-mappings for this server -->
+- <mime-mappings path="./mime.types" />
++ <mime-mappings path="/opt/orion/config/mime.types" />
+ <!-- Enable the below entry for automatic XSLT processing of XML docs (docs without an XSLT tag will pass through untouched but access will be slower -->
+ <!-- <servlet-chaining servlet-name="xsl" mime-type="text/xml" /> -->
+
+diff -ur orion.orig/config/jms.xml orion/config/jms.xml
+--- orion.orig/config/jms.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/jms.xml 2005-01-08 02:41:52.300302360 +0100
+@@ -16,6 +16,6 @@
+
+ <!-- path to the log-file where JMS-events/errors are stored -->
+ <log>
+- <file path="../log/jms.log" />
++ <file path="/var/log/orion/jms.log" />
+ </log>
+ </jms-server>
+diff -ur orion.orig/config/rmi.xml orion/config/rmi.xml
+--- orion.orig/config/rmi.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/rmi.xml 2005-01-08 02:46:40.350512072 +0100
+@@ -7,6 +7,6 @@
+
+ <!-- path to the log-file where RMI-events/errors are stored -->
+ <log>
+- <file path="../log/rmi.log" />
++ <file path="/var/log/orion/rmi.log" />
+ </log>
+ </rmi-server>
+diff -ur orion.orig/config/server.xml orion/config/server.xml
+--- orion.orig/config/server.xml 2004-02-24 18:23:50.000000000 +0100
++++ orion/config/server.xml 2005-01-08 02:47:35.156180344 +0100
+@@ -2,20 +2,20 @@
+ <!DOCTYPE application-server PUBLIC "Orion Application Server Config" "http://www.orionserver.com/dtds/application-server.dtd">
+
+ <application-server
+- application-directory="../applications"
+- deployment-directory="../application-deployments"
++ application-directory="/opt/orion/applications"
++ deployment-directory="/opt/orion/application-deployments"
+ >
+ <rmi-config path="./rmi.xml" />
+ <!-- JMS-server config link, uncomment to activate the JMS service -->
+ <!-- <jms-config path="./jms.xml" /> -->
+ <log>
+- <file path="../log/server.log" />
++ <file path="/var/log/orion/server.log" />
+ </log>
+
+ <global-application name="default" path="application.xml" />
+
+ <global-web-app-config path="global-web-application.xml" />
+- <web-site path="./default-web-site.xml" />
++ <web-site path="/opt/orion/config/default-web-site.xml" />
+
+ <!-- Compiler, activate this to specify an alternative compiler such
+ as jikes for EJB/JSP compiling. -->
diff --git a/www-servers/orion/files/2.0.5/orion.conf b/www-servers/orion/files/2.0.5/orion.conf
new file mode 100644
index 000000000000..b339ec1ed80d
--- /dev/null
+++ b/www-servers/orion/files/2.0.5/orion.conf
@@ -0,0 +1,22 @@
+# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.5/orion.conf,v 1.1 2005/01/08 01:59:21 karltk Exp $
+# Where your web applications are located
+ORION_DIR=/opt/orion
+
+# Orion's User
+ORION_USER=orion
+
+# STDERR Log Location
+ORION_ERR=/var/log/orion/stderr.log
+
+# STDOUT Log Location
+ORION_OUT=/var/log/orion/stdout.log
+
+# Set this to the base path of whichever Java SDK you
+# want Orion to use.
+JAVA_HOME=`/bin/grep -e "JAVA_HOME" /etc/profile.env | /bin/sed -e "s/^.*'\(.*\)'$/\1/"`
+
+# Location of the Orion JARs and classes
+ORION_LIBDIR=/usr/share/orion/lib
+
+# The CLASSPATH for Orion to use.
+CLASSPATH=${JAVA_HOME}/jre/lib/rt.jar:${ORION_LIBDIR}/activation.jar:${ORION_LIBDIR}/admin.jar:${ORION_LIBDIR}/applicationlauncher.jar:${ORION_LIBDIR}/assemblerlauncher.jar:${ORION_LIBDIR}/autoupdate.jar:${ORION_LIBDIR}/clientassembler.jar:${ORION_LIBDIR}/crimson.jar:${ORION_LIBDIR}/earassembler.jar:${ORION_LIBDIR}/ejb.jar:${ORION_LIBDIR}/ejbassembler.jar:${ORION_LIBDIR}/ejbmaker.jar:${ORION_LIBDIR}/jaas.jar:${ORION_LIBDIR}/jaxp.jar:${ORION_LIBDIR}/jcert.jar:${ORION_LIBDIR}/jdbc.jar:${ORION_LIBDIR}/jndi.jar:${ORION_LIBDIR}/jnet.jar:${ORION_LIBDIR}/jsse.jar:${ORION_LIBDIR}/jta.jar:${ORION_LIBDIR}/loadbalancer.jar:${ORION_LIBDIR}/mail.jar:${ORION_LIBDIR}/orion.jar:${ORION_LIBDIR}/orionconsole.jar:${ORION_LIBDIR}/parser.jar:${ORION_LIBDIR}/taglibassembler.jar:${ORION_LIBDIR}/webappassembler.jar:${ORION_LIBDIR}/xalan.jar:${ORION_LIBDIR}/xerces.jar:${JAVA_HOME}/lib/tools.jar:.
diff --git a/www-servers/orion/files/2.0.5/orion.init b/www-servers/orion/files/2.0.5/orion.init
new file mode 100755
index 000000000000..3b7482e3a340
--- /dev/null
+++ b/www-servers/orion/files/2.0.5/orion.init
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.5/orion.init,v 1.1 2005/01/08 01:59:21 karltk Exp $
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting orion"
+ cd ${ORION_DIR}
+ su - orion -c /opt/orion/sbin/start_orion.sh
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping orion"
+ su - orion -c /opt/orion/sbin/stop_orion.sh
+ sleep 2
+ eend $?
+}
+
+restart() {
+ ebegin "Restarting orion"
+ su - orion -c /opt/orion/sbin/stop_orion.sh
+ sleep 5
+ su - orion -c /opt/orion/sbin/start_orion.sh
+ eend $?
+}
diff --git a/www-servers/orion/files/2.0.5/start_orion.sh b/www-servers/orion/files/2.0.5/start_orion.sh
new file mode 100755
index 000000000000..9238f454bdfe
--- /dev/null
+++ b/www-servers/orion/files/2.0.5/start_orion.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.5/start_orion.sh,v 1.1 2005/01/08 01:59:21 karltk Exp $
+
+source /etc/conf.d/orion
+JAVAC=${JAVA_HOME}/bin/javac
+JDK_HOME=${JAVA_HOME}
+
+cd ${ORION_DIR}
+
+${JAVA_HOME}/bin/java -jar /usr/share/orion/lib/orion.jar -quiet -out ${ORION_OUT} -err ${ORION_ERR} &
diff --git a/www-servers/orion/files/2.0.5/stop_orion.sh b/www-servers/orion/files/2.0.5/stop_orion.sh
new file mode 100755
index 000000000000..f39be44508f4
--- /dev/null
+++ b/www-servers/orion/files/2.0.5/stop_orion.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.5/stop_orion.sh,v 1.1 2005/01/08 01:59:21 karltk Exp $
+ps auxww | grep orion.jar | awk '{print $2}' | xargs kill &> /dev/null