Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2001 23:03:52 +0200 (CEST)
From:      ernst@jollem.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        K.J.Koster@kpn.com, java@freebsd.org
Subject:   ports/28464: New port: www/orion-current
Message-ID:  <200106272103.f5RL3qc22710@heinz.jollem.com>

next in thread | raw e-mail | index | archive | help

>Number:         28464
>Category:       ports
>Synopsis:       New port: www/orion-current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 14:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Ernst de Haan
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
Jollem Information Technology
>Environment:
System: FreeBSD heinz.jollem.com 4.3-RELEASE FreeBSD 4.3-RELEASE #5: Mon May 14 16:08:56 CEST 2001 root@heinz.jollem.com:/usr/src/sys/compile/HEINZ i386
>Description:
New port for the current version of Orion, 1.5.2. It is considered less
stable than 1.4.5, which is available as www/orion
>How-To-Repeat:
N/A
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	www
#	www/orion-current/
#	www/orion-current/
#	www/orion-current/pkg-deinstall
#	www/orion-current/pkg-comment
#	www/orion-current/pkg-descr
#	www/orion-current/distinfo
#	www/orion-current/Makefile
#	www/orion-current/pkg-plist
#	www/orion-current/files
#	www/orion-current/files/orionctl.1
#	www/orion-current/files/orionctl
#
echo c - www
mkdir -p www > /dev/null 2>&1
echo c - www/orion-current/
mkdir -p www/orion-current/ > /dev/null 2>&1
echo c - www/orion-current/
mkdir -p www/orion-current/ > /dev/null 2>&1
echo x - www/orion-current/pkg-deinstall
sed 's/^X//' >www/orion-current/pkg-deinstall << 'END-of-www/orion-current/pkg-deinstall'
X#!/bin/sh
XPID_FILE=/var/run/orion.pid
Xif [ -e ${PID_FILE} ]; then
X	echo -n "Orion is still running."
X	/bin/kill `cat ${PID_FILE}`
X	rm -f ${PID_FILE}
X	echo " Stopped."
Xfi
END-of-www/orion-current/pkg-deinstall
echo x - www/orion-current/pkg-comment
sed 's/^X//' >www/orion-current/pkg-comment << 'END-of-www/orion-current/pkg-comment'
XOrion Application Server, current version
END-of-www/orion-current/pkg-comment
echo x - www/orion-current/pkg-descr
sed 's/^X//' >www/orion-current/pkg-descr << 'END-of-www/orion-current/pkg-descr'
XOrion Application Server, current version. Orion is a J2EE (Java
X2 Enterprise Edition) compliant Application Server. It supports
Xall major standards including HTTP/1.1, JSP 1.1, EJB 1.1, Servlet
X2.2, JNDI 1.2 and others. It also offers clustering support and
Xsome unique auto-deployment features.
X
XThis version is only for development use or for non-commercial
Xuse. You need to purchase a license from
Xhttp://www.orionserver.com/ if you would like to use this server
Xcommercially.
X
XThis port will install an 'orionctl' script in ${PREFIX}/bin that
Xcan be used to start and stop the server. A man page for this
Xscript is installed.
X
XA script in ${PREFIX}/etc/rc.d/orion.sh typically causes Orion to
Xbe started at boot time. This script is in fact a symlink to the
Xorionctl script.
X
XWWW: http://www.orionserver.com/
END-of-www/orion-current/pkg-descr
echo x - www/orion-current/distinfo
sed 's/^X//' >www/orion-current/distinfo << 'END-of-www/orion-current/distinfo'
XMD5 (orion1.5.2.zip) = 64a505dea83bf57193745a0af4d29c6d
END-of-www/orion-current/distinfo
echo x - www/orion-current/Makefile
sed 's/^X//' >www/orion-current/Makefile << 'END-of-www/orion-current/Makefile'
X# New ports collection makefile for:   orion-current
X# Date created:        27 June 2001
X# Whom:                Ernst de Haan <ernst@jollem.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	orion
XPORTVERSION=	1.5.2
XCATEGORIES=	www java
XMASTER_SITES=	ftp://ftp.sunet.se/pub/database/utils/orionserver/
XDISTNAME=	${PORTNAME}${PORTVERSION}
X
XMAINTAINER=	ernst@jollem.com
X
XRUN_DEPENDS=	${JAVA_HOME}/bin/java:${PORTSDIR}/java/linux-jdk13
X
XUSE_ZIP=	YES
XNO_BUILD=	YES
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
XPLIST_SUB+=	T=${ORION_HOME:S/^${PREFIX}\///}
XORION_HOME?=	${PREFIX}/${PKGBASE}${PORTVERSION}
XPORTTITLE=	Orion Server
XORIONCTL_NAME=	orionctl
XORIONCTL_DEST=	${PREFIX}/bin/${ORIONCTL_NAME}
XRC_SCRIPT=	${PREFIX}/etc/rc.d/${PORTNAME}.sh
XJAVA_HOME?=	${LOCALBASE}/linux-jdk1.3.1
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	${MKDIR} ${ORION_HOME}
X	${CP} -R ${WRKSRC}/* ${ORION_HOME}
X	${CHMOD} 755 `find ${ORION_HOME} -type d`
X	${CAT} ${FILESDIR}/${ORIONCTL_NAME} \
X	| ${SED} "/%%PORTNAME%%/s//${PORTNAME}/" \
X	| ${SED} "/%%PORTVERSION%%/s//${PORTVERSION}/" \
X	| ${SED} "/%%ORION_HOME%%/s//${ORION_HOME:S/\//\\\//g}/" \
X	| ${SED} "/%%RC_SCRIPT_NAME%%/s//${PORTNAME}.sh/" \
X	| ${SED} "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/" \
X	> ${ORIONCTL_DEST}
X	${CAT} ${FILESDIR}/${ORIONCTL_NAME}.1 \
X	| ${SED} "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/" \
X	> ${WRKDIR}/${ORIONCTL_NAME}.1
X	${CHMOD} 755 ${ORIONCTL_DEST}
X	${LN} -sf ${ORIONCTL_DEST} ${RC_SCRIPT}
X	${MKDIR} ${ORION_HOME}/application-deployments
X	${LN} -sf ${JAVA_HOME}/lib/tools.jar ${ORION_HOME}/tools.jar
X.if !defined(NOPORTDOCS)
X	${INSTALL_MAN} ${WRKDIR}/orionctl.1 ${MANPREFIX}/man/man1
X.endif
X
Xpost-install:
X	@${ECHO} "${PORTTITLE} ${PORTVERSION} has been installed in ${ORION_HOME}."
X.if !defined(NOPORTDOCS)
X	@${ECHO} "Use 'man orionctl' for information about starting and stopping Orion."
X.endif
X
X.include <bsd.port.post.mk>
END-of-www/orion-current/Makefile
echo x - www/orion-current/pkg-plist
sed 's/^X//' >www/orion-current/pkg-plist << 'END-of-www/orion-current/pkg-plist'
Xbin/orionctl
Xetc/rc.d/orion.sh
Xman/man1/orionctl.1
X%%T%%/Copyright.txt
X%%T%%/Readme.txt
X%%T%%/activation.jar
X%%T%%/admin.jar
X%%T%%/applicationlauncher.jar
X%%T%%/applications/atm-install.txt
X%%T%%/applications/atm.ear
X%%T%%/applications/estore-bugs.txt
X%%T%%/applications/estore-install.txt
X%%T%%/applications/estore-orionadapter.jar
X%%T%%/applications/estore-patched.ear
X%%T%%/applications/news-install.txt
X%%T%%/applications/news.ear
X%%T%%/assemblerlauncher.jar
X%%T%%/autoupdate.jar
X%%T%%/autoupdate.properties
X%%T%%/changes.txt
X%%T%%/clientassembler.jar
X%%T%%/config/application.xml
X%%T%%/config/data-sources.xml
X%%T%%/config/database-schemas/hypersonic.xml
X%%T%%/config/database-schemas/ms-access.xml
X%%T%%/config/database-schemas/ms-sql.xml
X%%T%%/config/database-schemas/oracle.xml
X%%T%%/config/database-schemas/postgresql.xml
X%%T%%/config/database-schemas/sapdb.xml
X%%T%%/config/database-schemas/sybase.xml
X%%T%%/config/default-web-site.xml
X%%T%%/config/global-web-application.xml
X%%T%%/config/jms.xml
X%%T%%/config/mime.types
X%%T%%/config/principals.xml
X%%T%%/config/rmi.xml
X%%T%%/config/server.xml
X%%T%%/crimson.jar
X%%T%%/default-web-app/WEB-INF/classes/BBoardServlet.class
X%%T%%/default-web-app/WEB-INF/classes/BBoardServlet.java
X%%T%%/default-web-app/WEB-INF/classes/ConfigServlet.class
X%%T%%/default-web-app/WEB-INF/classes/ConfigServlet.java
X%%T%%/default-web-app/WEB-INF/classes/CookieExample.class
X%%T%%/default-web-app/WEB-INF/classes/CookieExample.java
X%%T%%/default-web-app/WEB-INF/classes/Counter.class
X%%T%%/default-web-app/WEB-INF/classes/Counter.java
X%%T%%/default-web-app/WEB-INF/classes/DateServlet.class
X%%T%%/default-web-app/WEB-INF/classes/DateServlet.java
X%%T%%/default-web-app/WEB-INF/classes/FingerServlet.class
X%%T%%/default-web-app/WEB-INF/classes/FingerServlet.java
X%%T%%/default-web-app/WEB-INF/classes/HelloWorldExample.class
X%%T%%/default-web-app/WEB-INF/classes/HelloWorldExample.java
X%%T%%/default-web-app/WEB-INF/classes/HelloWorldServlet.class
X%%T%%/default-web-app/WEB-INF/classes/HelloWorldServlet.java
X%%T%%/default-web-app/WEB-INF/classes/LinkCheckerServlet.class
X%%T%%/default-web-app/WEB-INF/classes/LinkCheckerServlet.java
X%%T%%/default-web-app/WEB-INF/classes/LocalStrings.properties
X%%T%%/default-web-app/WEB-INF/classes/ParameterBean.class
X%%T%%/default-web-app/WEB-INF/classes/ParameterBean.java
X%%T%%/default-web-app/WEB-INF/classes/RedirectServlet.class
X%%T%%/default-web-app/WEB-INF/classes/RedirectServlet.java
X%%T%%/default-web-app/WEB-INF/classes/RequestHeaderExample.class
X%%T%%/default-web-app/WEB-INF/classes/RequestHeaderExample.java
X%%T%%/default-web-app/WEB-INF/classes/RequestInfoExample.class
X%%T%%/default-web-app/WEB-INF/classes/RequestInfoExample.java
X%%T%%/default-web-app/WEB-INF/classes/RequestParamExample.class
X%%T%%/default-web-app/WEB-INF/classes/RequestParamExample.java
X%%T%%/default-web-app/WEB-INF/classes/SessionExample.class
X%%T%%/default-web-app/WEB-INF/classes/SessionExample.java
X%%T%%/default-web-app/WEB-INF/classes/SessionServlet.class
X%%T%%/default-web-app/WEB-INF/classes/SessionServlet.java
X%%T%%/default-web-app/WEB-INF/classes/SimpleServlet.class
X%%T%%/default-web-app/WEB-INF/classes/SimpleServlet.java
X%%T%%/default-web-app/WEB-INF/classes/SnoopServlet.class
X%%T%%/default-web-app/WEB-INF/classes/SnoopServlet.java
X%%T%%/default-web-app/WEB-INF/classes/SurveyServlet.class
X%%T%%/default-web-app/WEB-INF/classes/SurveyServlet.java
X%%T%%/default-web-app/WEB-INF/classes/ToJSPServlet.class
X%%T%%/default-web-app/WEB-INF/classes/ToJSPServlet.java
X%%T%%/default-web-app/WEB-INF/classes/URLInfo.class
X%%T%%/default-web-app/WEB-INF/classes/UpperCaseFilter.class
X%%T%%/default-web-app/WEB-INF/classes/UpperCaseFilter.java
X%%T%%/default-web-app/WEB-INF/classes/cal/Entries.class
X%%T%%/default-web-app/WEB-INF/classes/cal/Entries.java
X%%T%%/default-web-app/WEB-INF/classes/cal/Entry.class
X%%T%%/default-web-app/WEB-INF/classes/cal/Entry.java
X%%T%%/default-web-app/WEB-INF/classes/cal/JspCalendar.class
X%%T%%/default-web-app/WEB-INF/classes/cal/JspCalendar.java
X%%T%%/default-web-app/WEB-INF/classes/cal/TableBean.class
X%%T%%/default-web-app/WEB-INF/classes/cal/TableBean.java
X%%T%%/default-web-app/WEB-INF/classes/checkbox/CheckTest.class
X%%T%%/default-web-app/WEB-INF/classes/checkbox/CheckTest.java
X%%T%%/default-web-app/WEB-INF/classes/colors/ColorGameBean.class
X%%T%%/default-web-app/WEB-INF/classes/colors/ColorGameBean.java
X%%T%%/default-web-app/WEB-INF/classes/dates/JspCalendar.class
X%%T%%/default-web-app/WEB-INF/classes/dates/JspCalendar.java
X%%T%%/default-web-app/WEB-INF/classes/error/Smart.class
X%%T%%/default-web-app/WEB-INF/classes/error/Smart.java
X%%T%%/default-web-app/WEB-INF/classes/num/NumberGuessBean.class
X%%T%%/default-web-app/WEB-INF/classes/num/NumberGuessBean.java
X%%T%%/default-web-app/WEB-INF/classes/sessions/DummyCart.class
X%%T%%/default-web-app/WEB-INF/classes/sessions/DummyCart.java
X%%T%%/default-web-app/WEB-INF/web.xml
X%%T%%/default-web-app/examples/cal/Entries.txt
X%%T%%/default-web-app/examples/cal/Entry.txt
X%%T%%/default-web-app/examples/cal/JspCalendar.txt
X%%T%%/default-web-app/examples/cal/TableBean.txt
X%%T%%/default-web-app/examples/cal/cal1.jsp
X%%T%%/default-web-app/examples/cal/cal1.txt
X%%T%%/default-web-app/examples/cal/cal2.jsp
X%%T%%/default-web-app/examples/cal/cal2.txt
X%%T%%/default-web-app/examples/cal/calendar.html
X%%T%%/default-web-app/examples/cal/login.html
X%%T%%/default-web-app/examples/images/code.gif
X%%T%%/default-web-app/examples/images/execute.gif
X%%T%%/default-web-app/examples/images/return.gif
X%%T%%/default-web-app/examples/jsp/cal/Entries.txt
X%%T%%/default-web-app/examples/jsp/cal/Entry.txt
X%%T%%/default-web-app/examples/jsp/cal/JspCalendar.txt
X%%T%%/default-web-app/examples/jsp/cal/TableBean.txt
X%%T%%/default-web-app/examples/jsp/cal/cal1.jsp
X%%T%%/default-web-app/examples/jsp/cal/cal1.txt
X%%T%%/default-web-app/examples/jsp/cal/cal2.jsp
X%%T%%/default-web-app/examples/jsp/cal/cal2.txt
X%%T%%/default-web-app/examples/jsp/cal/calendar.html
X%%T%%/default-web-app/examples/jsp/cal/login.html
X%%T%%/default-web-app/examples/jsp/checkbox/CheckTest.html
X%%T%%/default-web-app/examples/jsp/checkbox/check.html
X%%T%%/default-web-app/examples/jsp/checkbox/checkresult.jsp
X%%T%%/default-web-app/examples/jsp/checkbox/checkresult.txt
X%%T%%/default-web-app/examples/jsp/checkbox/cresult.html
X%%T%%/default-web-app/examples/jsp/colors/ColorGameBean.html
X%%T%%/default-web-app/examples/jsp/colors/clr.html
X%%T%%/default-web-app/examples/jsp/colors/colors.html
X%%T%%/default-web-app/examples/jsp/colors/colors.txt
X%%T%%/default-web-app/examples/jsp/colors/colrs.jsp
X%%T%%/default-web-app/examples/jsp/dates/date.html
X%%T%%/default-web-app/examples/jsp/dates/date.jsp
X%%T%%/default-web-app/examples/jsp/dates/date.txt
X%%T%%/default-web-app/examples/jsp/error/er.html
X%%T%%/default-web-app/examples/jsp/error/err.jsp
X%%T%%/default-web-app/examples/jsp/error/err.txt
X%%T%%/default-web-app/examples/jsp/error/error.html
X%%T%%/default-web-app/examples/jsp/error/errorpge.jsp
X%%T%%/default-web-app/examples/jsp/forward/forward.jsp
X%%T%%/default-web-app/examples/jsp/forward/forward.txt
X%%T%%/default-web-app/examples/jsp/forward/fwd.html
X%%T%%/default-web-app/examples/jsp/forward/one.jsp
X%%T%%/default-web-app/examples/jsp/forward/two.html
X%%T%%/default-web-app/examples/jsp/include/foo.html
X%%T%%/default-web-app/examples/jsp/include/foo.jsp
X%%T%%/default-web-app/examples/jsp/include/inc.html
X%%T%%/default-web-app/examples/jsp/include/include.jsp
X%%T%%/default-web-app/examples/jsp/include/include.txt
X%%T%%/default-web-app/examples/jsp/index.html
X%%T%%/default-web-app/examples/jsp/jsptoserv/hello.jsp
X%%T%%/default-web-app/examples/jsp/jsptoserv/jsptoservlet.jsp
X%%T%%/default-web-app/examples/jsp/jsptoserv/jts.html
X%%T%%/default-web-app/examples/jsp/jsptoserv/jts.txt
X%%T%%/default-web-app/examples/jsp/jsptoserv/stj.txt
X%%T%%/default-web-app/examples/jsp/num/numguess.html
X%%T%%/default-web-app/examples/jsp/num/numguess.jsp
X%%T%%/default-web-app/examples/jsp/num/numguess.txt
X%%T%%/default-web-app/examples/jsp/plugin/applet/Clock2.class
X%%T%%/default-web-app/examples/jsp/plugin/applet/Clock2.java
X%%T%%/default-web-app/examples/jsp/plugin/plugin.html
X%%T%%/default-web-app/examples/jsp/plugin/plugin.jsp
X%%T%%/default-web-app/examples/jsp/plugin/plugin.txt
X%%T%%/default-web-app/examples/jsp/sessions/DummyCart.html
X%%T%%/default-web-app/examples/jsp/sessions/carts.html
X%%T%%/default-web-app/examples/jsp/sessions/carts.jsp
X%%T%%/default-web-app/examples/jsp/sessions/carts.txt
X%%T%%/default-web-app/examples/jsp/sessions/crt.html
X%%T%%/default-web-app/examples/jsp/snp/snoop.html
X%%T%%/default-web-app/examples/jsp/snp/snoop.jsp
X%%T%%/default-web-app/examples/jsp/snp/snoop.txt
X%%T%%/default-web-app/examples/jsp/taglib/loop/META-INF/taglib.tld
X%%T%%/default-web-app/examples/jsp/taglib/loop/index.html
X%%T%%/default-web-app/examples/jsp/taglib/loop/looptag.jsp
X%%T%%/default-web-app/examples/jsp/taglib/loop/looptag.jsp.txt
X%%T%%/default-web-app/examples/jsp/taglib/loop/looptags.jar
X%%T%%/default-web-app/examples/jsp/taglib/loop/taglib/LoopTag.class
X%%T%%/default-web-app/examples/jsp/taglib/loop/taglib/LoopTag.java
X%%T%%/default-web-app/examples/perl/helloworld.pl
X%%T%%/default-web-app/examples/perl/post.html
X%%T%%/default-web-app/examples/perl/post.pl
X%%T%%/default-web-app/examples/ssi/other.txt
X%%T%%/default-web-app/examples/ssi/real.txt
X%%T%%/default-web-app/examples/ssi/ssi.shtml
X%%T%%/default-web-app/examples/xsl/data.xml
X%%T%%/default-web-app/examples/xsl/data.xsl
X%%T%%/default-web-app/examples/xsl/doc.dtd
X%%T%%/default-web-app/examples/xsl/doc.jsp
X%%T%%/default-web-app/examples/xsl/doc.xml
X%%T%%/default-web-app/examples/xsl/doc.xsl
X%%T%%/default-web-app/index.html
X%%T%%/demo/ejb/META-INF/application.xml
X%%T%%/demo/ejb/cart/Cart.class
X%%T%%/demo/ejb/cart/Cart.java
X%%T%%/demo/ejb/cart/CartClient.class
X%%T%%/demo/ejb/cart/CartClient.java
X%%T%%/demo/ejb/cart/CartEJB.class
X%%T%%/demo/ejb/cart/CartEJB.java
X%%T%%/demo/ejb/cart/CartHome.class
X%%T%%/demo/ejb/cart/CartHome.java
X%%T%%/demo/ejb/cart/META-INF/MANIFEST.MF
X%%T%%/demo/ejb/cart/META-INF/application-client.xml
X%%T%%/demo/ejb/cart/META-INF/ejb-jar.xml
X%%T%%/demo/ejb/cart/NotInCartException.class
X%%T%%/demo/ejb/cart/NotInCartException.java
X%%T%%/demo/ejb/cart/jndi.properties
X%%T%%/demo/ejb/cart/orion-cart.jar
X%%T%%/demo/ejb/install.txt
X%%T%%/demo/ejb/product/META-INF/MANIFEST.MF
X%%T%%/demo/ejb/product/META-INF/application-client.xml
X%%T%%/demo/ejb/product/META-INF/ejb-jar.xml
X%%T%%/demo/ejb/product/Product.class
X%%T%%/demo/ejb/product/Product.java
X%%T%%/demo/ejb/product/ProductClient.class
X%%T%%/demo/ejb/product/ProductClient.java
X%%T%%/demo/ejb/product/ProductEJB.class
X%%T%%/demo/ejb/product/ProductEJB.java
X%%T%%/demo/ejb/product/ProductHome.class
X%%T%%/demo/ejb/product/ProductHome.java
X%%T%%/demo/ejb/product/ProductServlet.class
X%%T%%/demo/ejb/product/ProductServlet.java
X%%T%%/demo/ejb/product/jndi.properties
X%%T%%/demo/ejb/product/orion-product.jar
X%%T%%/demo/ejb/product/product.skeleton
X%%T%%/demo/ejb/usermanager/META-INF/ejb-jar.xml
X%%T%%/demo/jms/coffeemaker.jar
X%%T%%/demo/jms/coffeemaker/CoffeeMachine.class
X%%T%%/demo/jms/coffeemaker/CoffeeMachine.java
X%%T%%/demo/jms/coffeemaker/CoffeeMaker.class
X%%T%%/demo/jms/coffeemaker/CoffeeMaker.java
X%%T%%/demo/jms/coffeemaker/META-INF/MANIFEST.MF
X%%T%%/demo/jms/coffeemaker/META-INF/application-client.xml
X%%T%%/demo/jms/coffeemaker/META-INF/orion-application-client.xml
X%%T%%/demo/jms/coffeemaker/jndi.properties
X%%T%%/demo/jms/jmschat.jar
X%%T%%/demo/jms/jmschat/JMSChat$1.class
X%%T%%/demo/jms/jmschat/JMSChat.class
X%%T%%/demo/jms/jmschat/JMSChat.java
X%%T%%/demo/jms/jmschat/META-INF/MANIFEST.MF
X%%T%%/demo/jms/jmschat/META-INF/application-client.xml
X%%T%%/demo/jms/jmschat/META-INF/orion-application-client.xml
X%%T%%/demo/jms/jmschat/jndi.properties
X%%T%%/demo/jms/jmsdemo-readme.txt
X%%T%%/demo/messagelogger.ear
X%%T%%/demo/news-app/META-INF/application.xml
X%%T%%/demo/news-app/counter.jar
X%%T%%/demo/news-app/news-client-source/META-INF/MANIFEST.MF
X%%T%%/demo/news-app/news-client-source/META-INF/application-client.xml
X%%T%%/demo/news-app/news-client-source/com/evermind/ejb/NewsClient.class
X%%T%%/demo/news-app/news-client-source/com/evermind/ejb/NewsClient.java
X%%T%%/demo/news-app/news-client-source/com/evermind/ejb/NewsItemClient.class
X%%T%%/demo/news-app/news-client.jar
X%%T%%/demo/news-app/news-ejb-source/META-INF/ejb-jar.xml
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItem.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItem.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemClient.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemEJB.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemEJB.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemHome.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemHome.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemServlet.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsItemServlet.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSession.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSession.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSessionEJB.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSessionEJB.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSessionHome.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsSessionHome.java
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsView.class
X%%T%%/demo/news-app/news-ejb-source/com/evermind/ejb/NewsView.java
X%%T%%/demo/news-app/news-ejb.jar
X%%T%%/demo/news-app/news-web.war
X%%T%%/demo/news-app/news-web/WEB-INF/lib/ejbtags.jar
X%%T%%/demo/news-app/news-web/WEB-INF/lib/utiltags.jar
X%%T%%/demo/news-app/news-web/WEB-INF/web.xml
X%%T%%/demo/news-app/news-web/addnews.jsp
X%%T%%/demo/news-app/news-web/addnews_done.jsp
X%%T%%/demo/news-app/news-web/admin/editnews.jsp
X%%T%%/demo/news-app/news-web/admin/editnews_done.jsp
X%%T%%/demo/news-app/news-web/border.html
X%%T%%/demo/news-app/news-web/checks.jsp
X%%T%%/demo/news-app/news-web/index.html
X%%T%%/demo/news-app/news-web/initviews.jsp
X%%T%%/demo/news-app/news-web/login-error.html
X%%T%%/demo/news-app/news-web/login.html
X%%T%%/demo/news-app/news-web/loginbox.jsp
X%%T%%/demo/news-app/news-web/logout.jsp
X%%T%%/demo/news-app/news-web/news-body.jsp
X%%T%%/demo/news-app/news-web/news.jsp
X%%T%%/demo/news-app/news-web/newsdetail.jsp
X%%T%%/demo/news-app/news-web/newssearch.jsp
X%%T%%/demo/news-app/news-web/usertest.jsp
X%%T%%/demo/rmi/RMIApp.class
X%%T%%/demo/rmi/RMIApp.java
X%%T%%/demo/ssl/ssl-user-registration.jsp
X%%T%%/earassembler.jar
X%%T%%/ejb.jar
X%%T%%/ejbassembler.jar
X%%T%%/ejbmaker.jar
X%%T%%/jaas.jar
X%%T%%/jaxp.jar
X%%T%%/jcert.jar
X%%T%%/jdbc.jar
X%%T%%/jndi.jar
X%%T%%/jnet.jar
X%%T%%/jsse.jar
X%%T%%/jta.jar
X%%T%%/lib/hsql.jar
X%%T%%/loadbalancer.jar
X%%T%%/mail.jar
X%%T%%/orion.jar
X%%T%%/orionconsole.jar
X%%T%%/parser.jar
X%%T%%/taglibassembler.jar
X%%T%%/tools.jar
X%%T%%/webappassembler.jar
X%%T%%/xalan.jar
X%%T%%/xerces.jar
X@dirrm %%T%%/application-deployments
X@dirrm %%T%%/applications
X@dirrm %%T%%/config/database-schemas
X@dirrm %%T%%/config
X@dirrm %%T%%/database
X@dirrm %%T%%/default-web-app/examples/cal
X@dirrm %%T%%/default-web-app/examples/images
X@dirrm %%T%%/default-web-app/examples/jsp/cal
X@dirrm %%T%%/default-web-app/examples/jsp/checkbox
X@dirrm %%T%%/default-web-app/examples/jsp/colors
X@dirrm %%T%%/default-web-app/examples/jsp/dates
X@dirrm %%T%%/default-web-app/examples/jsp/error
X@dirrm %%T%%/default-web-app/examples/jsp/forward
X@dirrm %%T%%/default-web-app/examples/jsp/include
X@dirrm %%T%%/default-web-app/examples/jsp/jsptoserv
X@dirrm %%T%%/default-web-app/examples/jsp/num
X@dirrm %%T%%/default-web-app/examples/jsp/plugin/applet
X@dirrm %%T%%/default-web-app/examples/jsp/plugin
X@dirrm %%T%%/default-web-app/examples/jsp/sessions
X@dirrm %%T%%/default-web-app/examples/jsp/snp
X@dirrm %%T%%/default-web-app/examples/jsp/taglib/loop/META-INF
X@dirrm %%T%%/default-web-app/examples/jsp/taglib/loop/taglib
X@dirrm %%T%%/default-web-app/examples/jsp/taglib/loop
X@dirrm %%T%%/default-web-app/examples/jsp/taglib
X@dirrm %%T%%/default-web-app/examples/jsp
X@dirrm %%T%%/default-web-app/examples/perl
X@dirrm %%T%%/default-web-app/examples/ssi
X@dirrm %%T%%/default-web-app/examples/xsl
X@dirrm %%T%%/default-web-app/examples
X@dirrm %%T%%/default-web-app/WEB-INF/classes/cal
X@dirrm %%T%%/default-web-app/WEB-INF/classes/checkbox
X@dirrm %%T%%/default-web-app/WEB-INF/classes/colors
X@dirrm %%T%%/default-web-app/WEB-INF/classes/dates
X@dirrm %%T%%/default-web-app/WEB-INF/classes/error
X@dirrm %%T%%/default-web-app/WEB-INF/classes/num
X@dirrm %%T%%/default-web-app/WEB-INF/classes/sessions
X@dirrm %%T%%/default-web-app/WEB-INF/classes
X@dirrm %%T%%/default-web-app/WEB-INF
X@dirrm %%T%%/default-web-app
X@dirrm %%T%%/demo/ejb/cart/META-INF
X@dirrm %%T%%/demo/ejb/cart
X@dirrm %%T%%/demo/ejb/META-INF
X@dirrm %%T%%/demo/ejb/product/META-INF
X@dirrm %%T%%/demo/ejb/product
X@dirrm %%T%%/demo/ejb/usermanager/META-INF
X@dirrm %%T%%/demo/ejb/usermanager
X@dirrm %%T%%/demo/ejb
X@dirrm %%T%%/demo/jms/coffeemaker/META-INF
X@dirrm %%T%%/demo/jms/coffeemaker
X@dirrm %%T%%/demo/jms/jmschat/META-INF
X@dirrm %%T%%/demo/jms/jmschat
X@dirrm %%T%%/demo/jms
X@dirrm %%T%%/demo/news-app/news-ejb-source/com/evermind/ejb
X@dirrm %%T%%/demo/news-app/news-ejb-source/com/evermind
X@dirrm %%T%%/demo/news-app/news-ejb-source/com
X@dirrm %%T%%/demo/news-app/news-ejb-source/META-INF
X@dirrm %%T%%/demo/news-app/news-ejb-source
X@dirrm %%T%%/demo/news-app/news-client-source/com/evermind/ejb
X@dirrm %%T%%/demo/news-app/news-client-source/com/evermind
X@dirrm %%T%%/demo/news-app/news-client-source/com
X@dirrm %%T%%/demo/news-app/news-client-source/META-INF
X@dirrm %%T%%/demo/news-app/news-client-source
X@dirrm %%T%%/demo/news-app/news-web/admin
X@dirrm %%T%%/demo/news-app/news-web/WEB-INF/classes
X@dirrm %%T%%/demo/news-app/news-web/WEB-INF/lib
X@dirrm %%T%%/demo/news-app/news-web/WEB-INF
X@dirrm %%T%%/demo/news-app/news-web
X@dirrm %%T%%/demo/news-app/META-INF
X@dirrm %%T%%/demo/news-app
X@dirrm %%T%%/demo/rmi
X@dirrm %%T%%/demo/ssl
X@dirrm %%T%%/demo
X@dirrm %%T%%/lib
X@dirrm %%T%%/log
X@dirrm %%T%%/persistence/ejb
X@dirrm %%T%%/persistence
X@dirrm %%T%%
END-of-www/orion-current/pkg-plist
echo c - www/orion-current/files
mkdir -p www/orion-current/files > /dev/null 2>&1
echo x - www/orion-current/files/orionctl.1
sed 's/^X//' >www/orion-current/files/orionctl.1 << 'END-of-www/orion-current/files/orionctl.1'
X.Dd May 26, 2001
X.Dt ORIONCTL 1
X.Os FreeBSD
X.Sh NAME
X.Nm orionctl
X.Nd Orion server control interface
X.Sh SYNOPSIS
X.Nm
X.Op Ar start | Ar stop
X.Sh DESCRIPTION
XThe
X.Nm
Xshell script provides an interface to the Orion application server.
X.Pp
XThis script has 2 modes of operation, One is
X.Em shell script mode
Xand the other is
X.Em rc script mode .
XIf run as
X.Nm
Xshell script mode is used, otherwise rc script mode is used. Shell script mode
Xassumes that the script is used as a normal shell script, while rc script mode
Xassumes the script is used to start or stop Orion at boot time.
X.Pp
XThe script expects exactly one argument, either
X.Ar start
Xor
X.Ar stop .
XIf more than one argument is given, then all arguments but the first are
Xignored.
X.Bl -tag -width indent
X.It Ar start
XStart Orion, if it is not already running. The ID of the started process will
Xbe saved in a PID file.
X.It Ar stop
XStop Orion, if it is actually running. The process with the ID stored in
Xthe PID file will be killed.
X.El
X.Sh ERRORS
XThe following error conditions are detected. They will be checked in the
Xspecified order. In every case where an error message is printed it will be
Xprepended by the name of the script
X.Em ( basename $0 ) .
X.Pp
XIf no argument is passed, or if an argument other than
X.Ar start
Xor
X.Ar stop
Xis passed as the first argument, then a simple help message is printed and the
Xscript is exited with error code 64.
X.Pp
XIn 
X.Em rc script mode
Xa newline will be printed before any error message.
X.Pp
XWhen using the argument
X.Ar start
Xthe following errors conditions can be triggered:
X.Bl -tag -width indent
X.It Em The Orion PID file already exists.
XOrion is probably already running. Prints an error message and exits the
Xscript with error code 1.
X.It Em Orion home directory cannot be found
XPrints an error message and exits the script with error code 2.
X.It Em Orion JAR file cannot be found
XPrints an error message and exits the script with error code 3.
X.It Em Java VM cannot be found
XPrints an error message and exits the script with error code 4.
X.El
X.Pp
XWhen using the argument
X.Ar stop
Xthe following error condition can be triggered:
X.Bl -tag -width indent
X.It Em The Orion PID file cannot be found
XOrion is probably not running. Prints an error message and exits the script
Xwith error code 16.
X.El
X.Sh FILES
X.Bl -tag -width -indent
X.It Pa /var/run/orion.pid
XThe Orion PID file that is used to store the process ID of the currently
Xrunning Orion process in. It is deleted as soon as Orion is stopped and
Xrecreated when Orion is started. It should never be writable for anyone but
X.Em root ,
X.It Pa %%PREFIX%%/etc/rc.d/orion.sh
XA symlink to the
X.Nm
Xscript. This causes Orion to be started at boot time. When called from this
Xlocation the
X.Nm
Xscript will use
X.Em rc script mode .
X.El
X.Sh AUTHORS
X.An Ernst de Haan Aq ernst@jollem.com
END-of-www/orion-current/files/orionctl.1
echo x - www/orion-current/files/orionctl
sed 's/^X//' >www/orion-current/files/orionctl << 'END-of-www/orion-current/files/orionctl'
X#!/bin/sh
X
X# Set some more variables
XNAME=%%PORTNAME%%
XVERSION=%%PORTVERSION%%
XORION_HOME=%%ORION_HOME%%
XLOG=${ORION_HOME}/log/${NAME}.log
XPID_FILE=/var/run/${NAME}.pid
XJAR_FILE=${ORION_HOME}/${NAME}.jar
XMYSELF=`basename $0`
X
X# Check if we're being run as a shell script or as an rc script
Xif [ ${MYSELF} = "%%RC_SCRIPT_NAME%%" ]; then
X	AS_RC_SCRIPT=yes
Xelse
X	AS_RC_SCRIPT=no
Xfi
X
X# Check if the JAVA_HOME directory is defined, otherwise set it to the
X# fallback default
Xif [ "${JAVA_HOME}a" = "a" ]; then
X	JAVA_HOME=%%JAVA_HOME%%
Xfi
XJAVA_CMD=${JAVA_HOME}/bin/java
X
Xcase "$1" in
X	start)
X		# Make sure Orion is not started previously
X		if [ -e ${PID_FILE} ]; then
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				echo ""
X			fi
X			echo "${NAME}: ERROR: Found Orion PID file at ${PID_FILE}. Orion is probably already running."
X			exit 1
X		fi
X
X		# Make sure the Orion directory does exist
X		if [ ! -d ${ORION_HOME} ]; then
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				echo ""
X			fi
X			echo "${NAME}: ERROR: Unable to find Orion home directory at ${ORION_HOME}."
X			exit 2
X		fi
X
X		# Make sure the Orion JAR file exists
X		if [ ! -r ${JAR_FILE} ]; then
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				echo ""
X			fi
X			echo "${NAME}: ERROR: Unable to find Orion JAR file at ${JAR_FILE}."
X			exit 3
X		fi
X
X		# Make sure the Java VM can be found
X		if [ ! -x ${JAVA_CMD} ]; then
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				echo ""
X			fi
X			echo "${NAME}: ERROR: Unable to find Java VM at ${JAVA_HOME}."
X			exit 4
X		fi
X
X		# Create the process ID file
X		rm -f ${PID_FILE}
X		touch ${PID_FILE}
X		chown root:wheel ${PID_FILE}
X		chmod 600 ${PID_FILE}
X
X		if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X			echo -n " ${NAME}"
X		fi
X		( cd ${ORION_HOME} && ${JAVA_CMD} -jar orion.jar & echo $! > ${PID_FILE} ) > ${LOG} 2>&1
X		;;
X	stop)
X		if [ ! -e ${PID_FILE} ]; then
X
X			# If run as an rc script, die silently...
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				exit 0
X
X			# ...otherwise complain
X			else
X				echo "${NAME}: ERROR: Unable to find Orion PID file at ${PID_FILE}. Orion is probably not running."
X				exit 16
X			fi
X		else
X			if [ "${AS_RC_SCRIPT}" = "yes" ]; then
X				echo -n " ${NAME}"
X			fi
X			/bin/kill `cat ${PID_FILE}`
X			rm -f ${PID_FILE}
X		fi
X
X		;;
X	*)
X		echo ""
X		echo "Usage: ${MYSELF} { start | stop }"
X		echo ""
X		exit 64
X		;;
Xesac
END-of-www/orion-current/files/orionctl
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106272103.f5RL3qc22710>