diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-03-11 11:54:15 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-03-11 11:54:15 +0000 |
commit | 5ae6aca744ecc36536400d9b1fd33f8d32de598a (patch) | |
tree | c5fb9d3c16e6096eb6c898386dd0b7fdc2620629 /net-www/orion | |
parent | Adding in portage-2.0.47-r9 (diff) | |
download | gentoo-2-5ae6aca744ecc36536400d9b1fd33f8d32de598a.tar.gz gentoo-2-5ae6aca744ecc36536400d9b1fd33f8d32de598a.tar.bz2 gentoo-2-5ae6aca744ecc36536400d9b1fd33f8d32de598a.zip |
initial import.
Diffstat (limited to 'net-www/orion')
-rw-r--r-- | net-www/orion/ChangeLog | 7 | ||||
-rw-r--r-- | net-www/orion/files/1.5.2b/1.5.2b-gentoo.patch | 126 | ||||
-rw-r--r-- | net-www/orion/files/1.5.2b/orion.conf | 21 | ||||
-rw-r--r-- | net-www/orion/files/1.5.2b/orion.init | 27 | ||||
-rw-r--r-- | net-www/orion/files/1.5.2b/start_orion.sh | 8 | ||||
-rw-r--r-- | net-www/orion/files/1.5.2b/stop_orion.sh | 2 | ||||
-rw-r--r-- | net-www/orion/files/digest-orion-1.5.2b | 0 | ||||
-rw-r--r-- | net-www/orion/orion-1.5.2b.ebuild | 112 |
8 files changed, 303 insertions, 0 deletions
diff --git a/net-www/orion/ChangeLog b/net-www/orion/ChangeLog new file mode 100644 index 000000000000..9bcfeb7000ff --- /dev/null +++ b/net-www/orion/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for net-www/orion +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/net-www/orion/ChangeLog,v 1.1 2003/03/11 11:54:15 absinthe Exp $ + + 11 Mar 2003; Dylan Carlson <absinthe@gentoo.org> ChangeLog : + + Initial import. diff --git a/net-www/orion/files/1.5.2b/1.5.2b-gentoo.patch b/net-www/orion/files/1.5.2b/1.5.2b-gentoo.patch new file mode 100644 index 000000000000..4f8f715748ac --- /dev/null +++ b/net-www/orion/files/1.5.2b/1.5.2b-gentoo.patch @@ -0,0 +1,126 @@ +diff -u -r config/application.xml.orig config/application.xml +--- config/application.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/application.xml 2002-11-28 18:36:20.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 -u -r config/data-sources.xml.orig config/data-sources.xml +--- config/data-sources.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/data-sources.xml 2002-11-28 18:36:36.000000000 -0500 +@@ -19,7 +19,7 @@ + connection-driver="org.hsql.jdbcDriver" + username="sa" + password="" +- url="jdbc:HypersonicSQL:./database/defaultdb" ++ url="jdbc:HypersonicSQL:/opt/orion/database/defaultdb" + inactivity-timeout="30" + /> + </data-sources> +diff -u -r config/default-web-site.xml.orig config/default-web-site.xml +--- config/default-web-site.xml.orig 2002-11-28 18:41:30.000000000 -0500 ++++ config/default-web-site.xml 2002-11-28 18:37:20.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 -u -r config/global-web-application.xml.orig config/global-web-application.xml +--- config/global-web-application.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/global-web-application.xml 2002-11-28 18:38:20.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" /> + <servlet-chaining servlet-name="xsl" mime-type="text/xml" /> + + <web-app> +diff -u -r config/jms.xml.orig config/jms.xml +--- config/jms.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/jms.xml 2002-11-28 18:38:35.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="/var/log/orion/jms.log" /> + </log> + </jms-server> +diff -u -r config/rmi.xml.orig config/rmi.xml +--- config/rmi.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/rmi.xml 2002-11-28 18:38:58.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 -u -r config/server.xml.orig config/server.xml +--- config/server.xml.orig 2002-11-28 11:14:48.000000000 -0500 ++++ config/server.xml 2002-11-28 18:40:46.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/net-www/orion/files/1.5.2b/orion.conf b/net-www/orion/files/1.5.2b/orion.conf new file mode 100644 index 000000000000..2e5e700f917a --- /dev/null +++ b/net-www/orion/files/1.5.2b/orion.conf @@ -0,0 +1,21 @@ +# 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=/opt/sun-jdk-1.4.1.01 + +# 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/net-www/orion/files/1.5.2b/orion.init b/net-www/orion/files/1.5.2b/orion.init new file mode 100644 index 000000000000..cd5340479b65 --- /dev/null +++ b/net-www/orion/files/1.5.2b/orion.init @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need net +} + +start() { + ebegin "Starting orion" + su - orion -c /opt/orion/sbin/start_orion.sh + eend $? +} + +stop () { + ebegin "Stopping orion" + su - orion -c /opt/orion/sbin/stop_orion.sh + eend $? +} + +svc_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/net-www/orion/files/1.5.2b/start_orion.sh b/net-www/orion/files/1.5.2b/start_orion.sh new file mode 100644 index 000000000000..4289087a65a3 --- /dev/null +++ b/net-www/orion/files/1.5.2b/start_orion.sh @@ -0,0 +1,8 @@ +#!/bin/bash +source /etc/conf.d/orion +cd ${ORION_DIR} +JAVA_HOME=/opt/sun-jdk-1.4.1.01 +JDK_HOME=${JAVA_HOME} +JAVAC=${JAVA_HOME}/bin/javac +CLASSPATH=/usr/share/orion/lib/activation.jar:/usr/share/orion/lib/admin.jar:/usr/share/orion/lib/applicationlauncher.jar:/usr/share/orion/lib/assemblerlauncher.jar:/usr/share/orion/lib/autoupdate.jar:/usr/share/orion/lib/clientassembler.jar:/usr/share/orion/lib/crimson.jar:/usr/share/orion/lib/earassembler.jar:/usr/share/orion/lib/ejb.jar:/usr/share/orion/lib/ejbassembler.jar:/usr/share/orion/lib/ejbmaker.jar:/usr/share/orion/lib/jaas.jar:/usr/share/orion/lib/jaxp.jar:/usr/share/orion/lib/jcert.jar:/usr/share/orion/lib/jdbc.jar:/usr/share/orion/lib/jndi.jar:/usr/share/orion/lib/jnet.jar:/usr/share/orion/lib/jsse.jar:/usr/share/orion/lib/jta.jar:/usr/share/orion/lib/loadbalancer.jar:/usr/share/orion/lib/mail.jar:/usr/share/orion/lib/orion.jar:/usr/share/orion/lib/orionconsole.jar:/usr/share/orion/lib/parser.jar:/usr/share/orion/lib/taglibassembler.jar:/usr/share/orion/lib/webappassembler.jar:/usr/share/orion/lib/xalan.jar:/usr/share/orion/lib/xerces.jar:/opt/orion/tools.jar:${JAVA_HOME}/jre/lib/rt.jar:. +${JAVA_HOME}/bin/java -jar /usr/share/orion/lib/orion.jar -quiet -out ${ORION_OUT} -err ${ORION_ERR} & diff --git a/net-www/orion/files/1.5.2b/stop_orion.sh b/net-www/orion/files/1.5.2b/stop_orion.sh new file mode 100644 index 000000000000..a7c0efd41416 --- /dev/null +++ b/net-www/orion/files/1.5.2b/stop_orion.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ps auxww | grep orion.jar | awk '{print $2}' | xargs kill &> /dev/null diff --git a/net-www/orion/files/digest-orion-1.5.2b b/net-www/orion/files/digest-orion-1.5.2b new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/net-www/orion/files/digest-orion-1.5.2b diff --git a/net-www/orion/orion-1.5.2b.ebuild b/net-www/orion/orion-1.5.2b.ebuild new file mode 100644 index 000000000000..e163891e6b2c --- /dev/null +++ b/net-www/orion/orion-1.5.2b.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/orion/orion-1.5.2b.ebuild,v 1.1 2003/03/11 11:54:15 absinthe Exp $ + +S=${WORKDIR}/${PN} + +At=${PN}${PV}.zip +JAVA_HOME=`java-config --jdk-home` + +DESCRIPTION="Orion EJB/J2EE application webserver" +SRC_URI="" +HOMEPAGE="http://www.orionserver.com/" +KEYWORDS="~x86" +LICENSE="ORIONSERVER" +SLOT="0" +DEPEND=">=virtual/jdk-1.3 + app-arch/unzip" + +src_unpack() { + if [ ! -f ${DISTDIR}/${At} ] ; then + die "Please download ${At} from ${HOMEPAGE} and place into ${DISTDIR}." + fi + unzip -q ${DISTDIR}/${At} || die + cd ${S} + patch -p0 < ${FILESDIR}/${PV}/${PV}-gentoo.patch +} + + +pkg_setup() { + + if ! groupmod orion ; then + groupadd -g 260 orion || die "problem adding group orion" + fi + + if ! id orion; then + useradd -g orion -s /bin/bash -d /opt/orion -c "orion" orion + assert "problem adding user orion" + fi +} + + +src_install() { + + # CREATE DIRECTORIES + DIROPTIONS="--mode=0775 --owner=orion --group=orion" + 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 -o orion -g orion -m0750 + doins ${FILESDIR}/${PV}/start_orion.sh + doins ${FILESDIR}/${PV}/stop_orion.sh + + insinto /etc/init.d + insopts -o orion -g orion -m0750 + doins ${FILESDIR}/${PV}/orion.init + + insinto /etc/conf.d + insopts -o orion -g orion -m0750 + doins ${FILESDIR}/${PV}/orion.conf + + # 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 + ln -s ${JAVA_HOME}/lib/tools.jar ${D}/usr/share/${PN}/lib/tools.jar + + # INSTALL DOCS + dodoc Copyright.txt Readme.txt changes.txt +} + +pkg_postinst() { + einfo " " + einfo " " + einfo " To set an administrative password, execute the" + einfo " following commands as user 'orion':" + einfo " \$ java -jar /usr/share/${PN}/lib/orion.jar -install" + einfo " " + einfo " " + einfo " To start/stop orion, use '/etc/init.d/orion' as root." + einfo " " + einfo " " + einfo " To test Orion while it's running, point your web" + einfo " browser to: http://localhost:8080/" + einfo " " + einfo " " + echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 + sleep 10 + +} + |