diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:51:02 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:51:02 +0000 |
commit | 0b405227e80eda929c59274b6caf2868b79be10a (patch) | |
tree | e9bbc96b1a8c6e805eb5d5d11dea21179cf35b1d /www-servers/orion | |
parent | Moved from net-www/ncsa-httpd to www-servers/ncsa-httpd (diff) | |
download | historical-0b405227e80eda929c59274b6caf2868b79be10a.tar.gz historical-0b405227e80eda929c59274b6caf2868b79be10a.tar.bz2 historical-0b405227e80eda929c59274b6caf2868b79be10a.zip |
Moved from net-www/orion to www-servers/orion.
Diffstat (limited to 'www-servers/orion')
22 files changed, 959 insertions, 0 deletions
diff --git a/www-servers/orion/ChangeLog b/www-servers/orion/ChangeLog new file mode 100644 index 000000000000..3e31baea00e2 --- /dev/null +++ b/www-servers/orion/ChangeLog @@ -0,0 +1,85 @@ +# ChangeLog for net-www/orion +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/ChangeLog,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +*orion-2.0.2 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/2.0/2.0-gentoo.patch, +files/2.0/orion.conf, +files/2.0/orion.init, + +files/2.0/start_orion.sh, +files/2.0/stop_orion.sh, + +files/2.0.1/2.0.1-gentoo.patch, +files/2.0.1/orion.conf, + +files/2.0.1/orion.init, +files/2.0.1/start_orion.sh, + +files/2.0.1/stop_orion.sh, +files/2.0.2/2.0.2-gentoo.patch, + +files/2.0.2/orion.conf, +files/2.0.2/orion.init, + +files/2.0.2/start_orion.sh, +files/2.0.2/stop_orion.sh, + +orion-2.0.1.ebuild, +orion-2.0.2.ebuild: + Moved from net-www/orion to www-servers/orion. + + 26 Jul 2004; Thomas Matthijs <axxo@gentoo.org> orion-2.0.1.ebuild, + orion-2.0.2.ebuild, -orion-2.0.ebuild: + ebuilds cleanup + +*orion-2.0.2 (16 Jul 2004) + + 16 Jul 2004; Thomas Matthijs <axxo@gentoo.org> : + Version Bump + + 16 May 2004; Chris Aniszczyk <zx@gentoo.org> orion-2.0.1.ebuild, + orion-2.0.ebuild: + Fix QA Violations, closes #48357 + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> orion-2.0.1.ebuild, + orion-2.0.ebuild: + Add inherit eutils + + 15 Dec 2003; <spider@gentoo.org> orion-2.0.1.ebuild, orion-2.0.ebuild: + QA: fixing chown user.group to user:group, bug #35127 + +*orion-2.0.1 (01 May 2003) + + 01 May 2003; Dylan Carlson <absinthe@gentoo.org> orion-2.0.1.ebuild, + files/2.0.1/2.0.1-gentoo.patch, files/2.0.1/orion.conf, + files/2.0.1/orion.init, files/2.0.1/start_orion.sh, + files/2.0.1/stop_orion.sh: + Version bump. Will fetch automatically now as well. + +*orion-2.0 (21 Mar 2003) + + 06 Apr 2003; Dylan Carlson <absinthe@gentoo.org> orion-2.0.ebuild: + x86 ppc sparc moved to stable. + + 03 Apr 2003; Dylan Carlson <absinthe@gentoo.org> files/2.0/orion.conf: + Fix to orion.conf to automatically pull system JVM by default. + + 03 Apr 2003; Dylan Carlson <absinthe@gentoo.org> orion-2.0.ebuild: + Digest updates; change to ebuild to temporarily remove userdel until a proper + solution is ready. + + 21 Mar 2003; Dylan Carlson <absinthe@gentoo.org> orion-2.0.ebuild, + files/2.0/2.0-gentoo.patch, files/2.0/orion.conf, files/2.0/orion.init, + files/2.0/start_orion.sh, files/2.0/stop_orion.sh: + Version bump. Improved post-install notices, and user/group add and remove. + +*orion-1.5.2b-r1 (13 Mar 2003) + + 14 Mar 2003; Dylan Carlson <absinthe@gentoo.org> files/1.5.2b/orion.conf, + files/1.5.2b/orion.init, files/1.5.2b/start_orion.sh, + files/1.5.2b/stop_orion.sh: + Fixed start_orion.sh to correctly source conf.d/orion. Added cvs keywords. + + 13 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ChangeLog : + + Log directory gets properly created now. init.d/conf.d is fixed. + Improved post_install notices. Changed JDK requirement to virtual/jdk-1.4. + /opt/orion/persistence/ is now created properly. Added necessary delay to + 'stop' in /etc/init.d/orion. + + 11 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ChangeLog : + + This package needs testers! If you encounter problems, please report + them to http://bugs.gentoo.org/. Also note that this ebuild creates a + new user and group on your system. + + 11 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ChangeLog : + + Initial import. diff --git a/www-servers/orion/Manifest b/www-servers/orion/Manifest new file mode 100644 index 000000000000..27052633e4cf --- /dev/null +++ b/www-servers/orion/Manifest @@ -0,0 +1,21 @@ +MD5 c82c4833e0aaf2ce7aa0ea39edf40d75 orion-2.0.1.ebuild 3521 +MD5 92823ea9ff1d6887d788de8eb50eb81b orion-2.0.2.ebuild 3524 +MD5 e17328f3df2f89a29cde7b21057a3250 ChangeLog 2721 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 5e78308ed1712b24bcced31b5097e7fc files/digest-orion-2.0.1 60 +MD5 2e8906fc5bfd8955cfbac84d1ce4850c files/digest-orion-2.0.2 60 +MD5 92b722b21c13158f91088a88491436f6 files/2.0/stop_orion.sh 200 +MD5 da5ec0abfb205b2fd83d533d9117d87c files/2.0/orion.conf 1489 +MD5 6c81f8112e67388a4f915d0bcab02d83 files/2.0/orion.init 622 +MD5 2653ae1733c17843a9388200f90e3148 files/2.0/start_orion.sh 328 +MD5 abd7c855a9b9601253916624d6f0e782 files/2.0/2.0-gentoo.patch 5301 +MD5 e1663e859471f12fda5a7b99abbe42d8 files/2.0.1/stop_orion.sh 202 +MD5 abd7c855a9b9601253916624d6f0e782 files/2.0.1/2.0.1-gentoo.patch 5301 +MD5 e0ef38d0aa2277036adaaecb6b846277 files/2.0.1/orion.conf 1491 +MD5 74f811add4d32c9802cc4188c67cd6db files/2.0.1/orion.init 624 +MD5 c1ae0565520f43469123f10a46496781 files/2.0.1/start_orion.sh 330 +MD5 66ecfe1ca25c5fcf99feb66a4c059e2b files/2.0.2/stop_orion.sh 195 +MD5 070942d311cf91f786c8ece44a2a8785 files/2.0.2/orion.conf 1484 +MD5 d487529fa9e0b42f2162b1e594f88e68 files/2.0.2/orion.init 620 +MD5 b5f590d7830232217b0512fcb0e3c600 files/2.0.2/start_orion.sh 323 +MD5 abd7c855a9b9601253916624d6f0e782 files/2.0.2/2.0.2-gentoo.patch 5301 diff --git a/www-servers/orion/files/2.0.1/2.0.1-gentoo.patch b/www-servers/orion/files/2.0.1/2.0.1-gentoo.patch new file mode 100644 index 000000000000..52742e8b8a07 --- /dev/null +++ b/www-servers/orion/files/2.0.1/2.0.1-gentoo.patch @@ -0,0 +1,127 @@ +diff -ur config/application.xml config.new/application.xml +--- config/application.xml 2002-03-14 07:52:08.000000000 -0500 ++++ config.new/application.xml 2003-03-21 20:06:16.000000000 -0500 +@@ -4,16 +4,16 @@ + <!-- 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" />
<principals path="./principals.xml" /> ++ <library path="/opt/orion/lib" />
<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 config/data-sources.xml config.new/data-sources.xml +--- config/data-sources.xml 2003-02-25 17:31:38.000000000 -0500 ++++ config.new/data-sources.xml 2003-03-21 19:58:51.000000000 -0500 +@@ -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>
+Only in config: database-schemas +diff -ur config/default-web-site.xml config.new/default-web-site.xml +--- config/default-web-site.xml 2002-03-14 07:52:10.000000000 -0500 ++++ config.new/default-web-site.xml 2003-03-21 19:59:35.000000000 -0500 +@@ -1,12 +1,12 @@ + <?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"> + <!-- The default web-app for this site, bound to the root --> + <default-web-app application="default" name="defaultWebApp" /> + + <!-- Uncomment this to activate the news app --> + <!-- <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 config/global-web-application.xml config.new/global-web-application.xml +--- config/global-web-application.xml 2003-03-17 21:04:44.000000000 -0500 ++++ config.new/global-web-application.xml 2003-03-21 20:01:11.000000000 -0500 +@@ -5,13 +5,13 @@ + 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" ++ development="false"
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 config/jms.xml config.new/jms.xml +--- config/jms.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/jms.xml 2003-03-21 20:01:27.000000000 -0500 +@@ -16,6 +16,6 @@ + + <!-- path to the log-file where JMS-events/errors are stored --> + <log> +- <file path="../log/jms.log" /> ++ <file path="/opt/orion/log/jms.log" /> + </log> + </jms-server> +diff -ur config/rmi.xml config.new/rmi.xml +--- config/rmi.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/rmi.xml 2003-03-21 20:04:36.000000000 -0500 +@@ -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 config/server.xml config.new/server.xml +--- config/server.xml 2002-03-14 07:52:14.000000000 -0500 ++++ config.new/server.xml 2003-03-21 20:05:52.000000000 -0500 +@@ -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" /> ++ <rmi-config path="/opt/orion/config/rmi.xml" /> + <!-- JMS-server config link, uncomment to activate the JMS service --> +- <!-- <jms-config path="./jms.xml" /> --> ++ <!-- <jms-config path="/opt/orion/config/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.1/orion.conf b/www-servers/orion/files/2.0.1/orion.conf new file mode 100644 index 000000000000..d0b13a047086 --- /dev/null +++ b/www-servers/orion/files/2.0.1/orion.conf @@ -0,0 +1,22 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.1/orion.conf,v 1.1 2004/08/08 17:51:02 stuart 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.1/orion.init b/www-servers/orion/files/2.0.1/orion.init new file mode 100644 index 000000000000..229e09bb4b9a --- /dev/null +++ b/www-servers/orion/files/2.0.1/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.1/orion.init,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +depend() { + need 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.1/start_orion.sh b/www-servers/orion/files/2.0.1/start_orion.sh new file mode 100644 index 000000000000..0ef79df64b1a --- /dev/null +++ b/www-servers/orion/files/2.0.1/start_orion.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.1/start_orion.sh,v 1.1 2004/08/08 17:51:02 stuart 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.1/stop_orion.sh b/www-servers/orion/files/2.0.1/stop_orion.sh new file mode 100644 index 000000000000..ba7d0f22c214 --- /dev/null +++ b/www-servers/orion/files/2.0.1/stop_orion.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.1/stop_orion.sh,v 1.1 2004/08/08 17:51:02 stuart Exp $ +ps auxww | grep orion.jar | awk '{print $2}' | xargs kill &> /dev/null diff --git a/www-servers/orion/files/2.0.2/2.0.2-gentoo.patch b/www-servers/orion/files/2.0.2/2.0.2-gentoo.patch new file mode 100644 index 000000000000..52742e8b8a07 --- /dev/null +++ b/www-servers/orion/files/2.0.2/2.0.2-gentoo.patch @@ -0,0 +1,127 @@ +diff -ur config/application.xml config.new/application.xml +--- config/application.xml 2002-03-14 07:52:08.000000000 -0500 ++++ config.new/application.xml 2003-03-21 20:06:16.000000000 -0500 +@@ -4,16 +4,16 @@ + <!-- 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" />
<principals path="./principals.xml" /> ++ <library path="/opt/orion/lib" />
<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 config/data-sources.xml config.new/data-sources.xml +--- config/data-sources.xml 2003-02-25 17:31:38.000000000 -0500 ++++ config.new/data-sources.xml 2003-03-21 19:58:51.000000000 -0500 +@@ -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>
+Only in config: database-schemas +diff -ur config/default-web-site.xml config.new/default-web-site.xml +--- config/default-web-site.xml 2002-03-14 07:52:10.000000000 -0500 ++++ config.new/default-web-site.xml 2003-03-21 19:59:35.000000000 -0500 +@@ -1,12 +1,12 @@ + <?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"> + <!-- The default web-app for this site, bound to the root --> + <default-web-app application="default" name="defaultWebApp" /> + + <!-- Uncomment this to activate the news app --> + <!-- <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 config/global-web-application.xml config.new/global-web-application.xml +--- config/global-web-application.xml 2003-03-17 21:04:44.000000000 -0500 ++++ config.new/global-web-application.xml 2003-03-21 20:01:11.000000000 -0500 +@@ -5,13 +5,13 @@ + 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" ++ development="false"
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 config/jms.xml config.new/jms.xml +--- config/jms.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/jms.xml 2003-03-21 20:01:27.000000000 -0500 +@@ -16,6 +16,6 @@ + + <!-- path to the log-file where JMS-events/errors are stored --> + <log> +- <file path="../log/jms.log" /> ++ <file path="/opt/orion/log/jms.log" /> + </log> + </jms-server> +diff -ur config/rmi.xml config.new/rmi.xml +--- config/rmi.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/rmi.xml 2003-03-21 20:04:36.000000000 -0500 +@@ -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 config/server.xml config.new/server.xml +--- config/server.xml 2002-03-14 07:52:14.000000000 -0500 ++++ config.new/server.xml 2003-03-21 20:05:52.000000000 -0500 +@@ -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" /> ++ <rmi-config path="/opt/orion/config/rmi.xml" /> + <!-- JMS-server config link, uncomment to activate the JMS service --> +- <!-- <jms-config path="./jms.xml" /> --> ++ <!-- <jms-config path="/opt/orion/config/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.2/orion.conf b/www-servers/orion/files/2.0.2/orion.conf new file mode 100644 index 000000000000..f9a0ba339410 --- /dev/null +++ b/www-servers/orion/files/2.0.2/orion.conf @@ -0,0 +1,22 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.2/orion.conf,v 1.1 2004/08/08 17:51:02 stuart 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.2/orion.init b/www-servers/orion/files/2.0.2/orion.init new file mode 100644 index 000000000000..0d8a565c444d --- /dev/null +++ b/www-servers/orion/files/2.0.2/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.2/orion.init,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +depend() { + need 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.2/start_orion.sh b/www-servers/orion/files/2.0.2/start_orion.sh new file mode 100644 index 000000000000..820e90f3692a --- /dev/null +++ b/www-servers/orion/files/2.0.2/start_orion.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.2/start_orion.sh,v 1.1 2004/08/08 17:51:02 stuart 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.2/stop_orion.sh b/www-servers/orion/files/2.0.2/stop_orion.sh new file mode 100644 index 000000000000..a1410e40392d --- /dev/null +++ b/www-servers/orion/files/2.0.2/stop_orion.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0.2/stop_orion.sh,v 1.1 2004/08/08 17:51:02 stuart Exp $ +ps auxww | grep orion.jar | awk '{print $2}' | xargs kill &> /dev/null diff --git a/www-servers/orion/files/2.0/2.0-gentoo.patch b/www-servers/orion/files/2.0/2.0-gentoo.patch new file mode 100644 index 000000000000..52742e8b8a07 --- /dev/null +++ b/www-servers/orion/files/2.0/2.0-gentoo.patch @@ -0,0 +1,127 @@ +diff -ur config/application.xml config.new/application.xml +--- config/application.xml 2002-03-14 07:52:08.000000000 -0500 ++++ config.new/application.xml 2003-03-21 20:06:16.000000000 -0500 +@@ -4,16 +4,16 @@ + <!-- 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" />
<principals path="./principals.xml" /> ++ <library path="/opt/orion/lib" />
<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 config/data-sources.xml config.new/data-sources.xml +--- config/data-sources.xml 2003-02-25 17:31:38.000000000 -0500 ++++ config.new/data-sources.xml 2003-03-21 19:58:51.000000000 -0500 +@@ -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>
+Only in config: database-schemas +diff -ur config/default-web-site.xml config.new/default-web-site.xml +--- config/default-web-site.xml 2002-03-14 07:52:10.000000000 -0500 ++++ config.new/default-web-site.xml 2003-03-21 19:59:35.000000000 -0500 +@@ -1,12 +1,12 @@ + <?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"> + <!-- The default web-app for this site, bound to the root --> + <default-web-app application="default" name="defaultWebApp" /> + + <!-- Uncomment this to activate the news app --> + <!-- <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 config/global-web-application.xml config.new/global-web-application.xml +--- config/global-web-application.xml 2003-03-17 21:04:44.000000000 -0500 ++++ config.new/global-web-application.xml 2003-03-21 20:01:11.000000000 -0500 +@@ -5,13 +5,13 @@ + 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" ++ development="false"
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 config/jms.xml config.new/jms.xml +--- config/jms.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/jms.xml 2003-03-21 20:01:27.000000000 -0500 +@@ -16,6 +16,6 @@ + + <!-- path to the log-file where JMS-events/errors are stored --> + <log> +- <file path="../log/jms.log" /> ++ <file path="/opt/orion/log/jms.log" /> + </log> + </jms-server> +diff -ur config/rmi.xml config.new/rmi.xml +--- config/rmi.xml 2002-03-14 07:52:12.000000000 -0500 ++++ config.new/rmi.xml 2003-03-21 20:04:36.000000000 -0500 +@@ -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 config/server.xml config.new/server.xml +--- config/server.xml 2002-03-14 07:52:14.000000000 -0500 ++++ config.new/server.xml 2003-03-21 20:05:52.000000000 -0500 +@@ -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" /> ++ <rmi-config path="/opt/orion/config/rmi.xml" /> + <!-- JMS-server config link, uncomment to activate the JMS service --> +- <!-- <jms-config path="./jms.xml" /> --> ++ <!-- <jms-config path="/opt/orion/config/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/orion.conf b/www-servers/orion/files/2.0/orion.conf new file mode 100644 index 000000000000..4d97723fb1b3 --- /dev/null +++ b/www-servers/orion/files/2.0/orion.conf @@ -0,0 +1,22 @@ +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0/orion.conf,v 1.1 2004/08/08 17:51:02 stuart 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/orion.init b/www-servers/orion/files/2.0/orion.init new file mode 100644 index 000000000000..fa3f4414f3cc --- /dev/null +++ b/www-servers/orion/files/2.0/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/orion.init,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +depend() { + need 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/start_orion.sh b/www-servers/orion/files/2.0/start_orion.sh new file mode 100644 index 000000000000..20ed710fe701 --- /dev/null +++ b/www-servers/orion/files/2.0/start_orion.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0/start_orion.sh,v 1.1 2004/08/08 17:51:02 stuart 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/stop_orion.sh b/www-servers/orion/files/2.0/stop_orion.sh new file mode 100644 index 000000000000..818edb759ef5 --- /dev/null +++ b/www-servers/orion/files/2.0/stop_orion.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/files/2.0/stop_orion.sh,v 1.1 2004/08/08 17:51:02 stuart Exp $ +ps auxww | grep orion.jar | awk '{print $2}' | xargs kill &> /dev/null diff --git a/www-servers/orion/files/digest-orion-2.0.1 b/www-servers/orion/files/digest-orion-2.0.1 new file mode 100644 index 000000000000..924ed52ca3b4 --- /dev/null +++ b/www-servers/orion/files/digest-orion-2.0.1 @@ -0,0 +1 @@ +MD5 05c1b4fc84fbb7021d8d314de94ddc35 orion2.0.1.zip 7204675 diff --git a/www-servers/orion/files/digest-orion-2.0.2 b/www-servers/orion/files/digest-orion-2.0.2 new file mode 100644 index 000000000000..b8cb9f179264 --- /dev/null +++ b/www-servers/orion/files/digest-orion-2.0.2 @@ -0,0 +1 @@ +MD5 0bc33958ecee3684c5c92a4739bf1d85 orion2.0.2.zip 7125959 diff --git a/www-servers/orion/metadata.xml b/www-servers/orion/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/www-servers/orion/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> diff --git a/www-servers/orion/orion-2.0.1.ebuild b/www-servers/orion/orion-2.0.1.ebuild new file mode 100644 index 000000000000..82d3459e1164 --- /dev/null +++ b/www-servers/orion/orion-2.0.1.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/orion-2.0.1.ebuild,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +inherit eutils + +S=${WORKDIR}/${PN} + +At=${PN}${PV}.zip + +DESCRIPTION="Orion EJB/J2EE application webserver" +SRC_URI="http://www.orionserver.com/distributions/${At}" +HOMEPAGE="http://www.orionserver.com/" +KEYWORDS="x86 ppc sparc" +LICENSE="ORIONSERVER" +SLOT="0" +DEPEND=">=virtual/jdk-1.3 + app-arch/unzip" +IUSE="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}/${PV}-gentoo.patch +} + +pkg_preinst() { + enewgroup orion + enewuser orion -1 /bin/bash /opt/orion orion + chown -R orion:orion ${D}/opt/${PN} + chown -R orion:orion ${D}/var/log/${PN} + fowners orion:orion /etc/conf.d/orion +} + +src_install() { + # CREATE DIRECTORIES + diropts -m0775 + dodir /opt/${PN} + dodir /opt/${PN}/config + dodir /opt/${PN}/sbin + dodir /var/log/${PN} + + cd ${S} + + # INSTALL STARTUP SCRIPTS + insinto /opt/orion/sbin + insopts -m0750 + doins ${FILESDIR}/${PV}/start_orion.sh + doins ${FILESDIR}/${PV}/stop_orion.sh + + cp -a ${FILESDIR}/${PV}/orion.init ${S}/orion + insinto /etc/init.d + insopts -m0750 + doins ${S}/orion + + cp -a ${FILESDIR}/${PV}/orion.conf ${S}/orion + insinto /etc/conf.d + insopts -m0750 + doins ${S}/orion + + # CREATE DUMMY LOG & PERSISTENCE DIR + dodir /var/log/${PN} + dodir /opt/${PN}/persistence + + keepdir /var/log/${PN} + keepdir /opt/${PN}/persistence + + # INSTALL EXTRA FILES + local dirs="applications database default-web-app demo lib persistence autoupdate.properties" + for i in $dirs ; do + cp -a ${i} ${D}/opt/${PN}/ + done + + # INSTALL APP CONFIG + cd ${S}/config + local dirs="application.xml data-sources.xml database-schemas default-web-site.xml global-web-application.xml jms.xml mime.types principals.xml rmi.xml server.xml" + for i in $dirs ; do + cp -a ${i} ${D}/opt/${PN}/config + done + + # INSTALL JARS + cd ${S} + for i in `ls *.jar` ; do + dojar $i + done + + # LINK IN SDK TOOLS.JAR + dosym ${JAVA_HOME}/lib/tools.jar /usr/share/${PN}/lib/tools.jar + + # INSTALL DOCS + dodoc Readme.txt changes.txt +} + +pkg_postinst() { + einfo " " + einfo " NOTICE!" + einfo " User and group 'orion' have been added." + einfo " Please set a password for the user account 'orion'" + einfo " if you have not done so already." + einfo " " + einfo " " + einfo " FILE LOCATIONS:" + einfo " 1. Orion home directory: /opt/orion" + einfo " Contains application data, configuration files." + einfo " 2. Runtime settings: /etc/conf.d/orion" + einfo " Contains CLASSPATH and JDK settings." + einfo " 3. Logs: /var/log/orion/" + einfo " 4. Executables, libraries: /usr/share/${PN}/" + einfo " " + einfo " " + einfo " STARTING AND STOPPING ORION:" + einfo " /etc/init.d/orion start" + einfo " /etc/init.d/orion stop" + einfo " /etc/init.d/orion restart" + einfo " " + einfo " " + einfo " NETWORK CONFIGURATION:" + einfo " By default, Orion runs on port 8080. You can change this" + einfo " value by editing /opt/orion/config/default-web-site.xml." + einfo " " + einfo " To test Orion while it's running, point your web browser to:" + einfo " http://localhost:8080/" + einfo " " + einfo " " + einfo " APPLICATION DEPLOYMENT:" + einfo " To set an administrative password, execute the following" + einfo " commands as user 'orion':" + einfo " \$ java -jar /usr/share/${PN}/lib/orion.jar -install" + einfo " " + einfo " " + einfo " BUGS:" + einfo " Please file any bugs at http://bugs.gentoo.org/ or else it" + einfo " may not get seen. Thank you." + einfo " " +} diff --git a/www-servers/orion/orion-2.0.2.ebuild b/www-servers/orion/orion-2.0.2.ebuild new file mode 100644 index 000000000000..18a126e905b4 --- /dev/null +++ b/www-servers/orion/orion-2.0.2.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/orion/orion-2.0.2.ebuild,v 1.1 2004/08/08 17:51:02 stuart Exp $ + +inherit eutils + +S=${WORKDIR}/${PN} + +At=${PN}${PV}.zip + +DESCRIPTION="Orion EJB/J2EE application webserver" +SRC_URI="http://www.orionserver.com/distributions/${At}" +HOMEPAGE="http://www.orionserver.com/" +KEYWORDS="~x86 ~ppc ~sparc" +LICENSE="ORIONSERVER" +SLOT="0" +DEPEND=">=virtual/jdk-1.3 + app-arch/unzip" +IUSE="" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}/${PV}-gentoo.patch +} + +pkg_preinst() { + enewgroup orion + enewuser orion -1 /bin/bash /opt/orion orion + chown -R orion:orion ${D}/opt/${PN} + chown -R orion:orion ${D}/var/log/${PN} + fowners orion:orion /etc/conf.d/orion +} + +src_install() { + # CREATE DIRECTORIES + diropts -m0775 + dodir /opt/${PN} + dodir /opt/${PN}/config + dodir /opt/${PN}/sbin + dodir /var/log/${PN} + + cd ${S} + + # INSTALL STARTUP SCRIPTS + insinto /opt/orion/sbin + insopts -m0750 + doins ${FILESDIR}/${PV}/start_orion.sh + doins ${FILESDIR}/${PV}/stop_orion.sh + + cp -a ${FILESDIR}/${PV}/orion.init ${S}/orion + insinto /etc/init.d + insopts -m0750 + doins ${S}/orion + + cp -a ${FILESDIR}/${PV}/orion.conf ${S}/orion + insinto /etc/conf.d + insopts -m0750 + doins ${S}/orion + + # CREATE DUMMY LOG & PERSISTENCE DIR + dodir /var/log/${PN} + dodir /opt/${PN}/persistence + + keepdir /var/log/${PN} + keepdir /opt/${PN}/persistence + + # INSTALL EXTRA FILES + local dirs="applications database default-web-app demo lib persistence autoupdate.properties" + for i in $dirs ; do + cp -a ${i} ${D}/opt/${PN}/ + done + + # INSTALL APP CONFIG + cd ${S}/config + local dirs="application.xml data-sources.xml database-schemas default-web-site.xml global-web-application.xml jms.xml mime.types principals.xml rmi.xml server.xml" + for i in $dirs ; do + cp -a ${i} ${D}/opt/${PN}/config + done + + # INSTALL JARS + cd ${S} + for i in `ls *.jar` ; do + dojar $i + done + + # LINK IN SDK TOOLS.JAR + dosym ${JAVA_HOME}/lib/tools.jar /usr/share/${PN}/lib/tools.jar + + # INSTALL DOCS + dodoc Readme.txt changes.txt +} + +pkg_postinst() { + einfo " " + einfo " NOTICE!" + einfo " User and group 'orion' have been added." + einfo " Please set a password for the user account 'orion'" + einfo " if you have not done so already." + einfo " " + einfo " " + einfo " FILE LOCATIONS:" + einfo " 1. Orion home directory: /opt/orion" + einfo " Contains application data, configuration files." + einfo " 2. Runtime settings: /etc/conf.d/orion" + einfo " Contains CLASSPATH and JDK settings." + einfo " 3. Logs: /var/log/orion/" + einfo " 4. Executables, libraries: /usr/share/${PN}/" + einfo " " + einfo " " + einfo " STARTING AND STOPPING ORION:" + einfo " /etc/init.d/orion start" + einfo " /etc/init.d/orion stop" + einfo " /etc/init.d/orion restart" + einfo " " + einfo " " + einfo " NETWORK CONFIGURATION:" + einfo " By default, Orion runs on port 8080. You can change this" + einfo " value by editing /opt/orion/config/default-web-site.xml." + einfo " " + einfo " To test Orion while it's running, point your web browser to:" + einfo " http://localhost:8080/" + einfo " " + einfo " " + einfo " APPLICATION DEPLOYMENT:" + einfo " To set an administrative password, execute the following" + einfo " commands as user 'orion':" + einfo " \$ java -jar /usr/share/${PN}/lib/orion.jar -install" + einfo " " + einfo " " + einfo " BUGS:" + einfo " Please file any bugs at http://bugs.gentoo.org/ or else it" + einfo " may not get seen. Thank you." + einfo " " +} |