diff options
author | Chris Aniszczyk <zx@gentoo.org> | 2004-03-07 03:43:00 +0000 |
---|---|---|
committer | Chris Aniszczyk <zx@gentoo.org> | 2004-03-07 03:43:00 +0000 |
commit | f3354388d3091298dfed2b246dd804dc2b914adc (patch) | |
tree | cafd09f9995b07c76f21becade26f1bf87137fa2 /net-www | |
parent | Fix, closes #35702 (Manifest recommit) (diff) | |
download | gentoo-2-f3354388d3091298dfed2b246dd804dc2b914adc.tar.gz gentoo-2-f3354388d3091298dfed2b246dd804dc2b914adc.tar.bz2 gentoo-2-f3354388d3091298dfed2b246dd804dc2b914adc.zip |
Initial Import. Closes #40782
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/jetty/ChangeLog | 11 | ||||
-rw-r--r-- | net-www/jetty/Manifest | 7 | ||||
-rw-r--r-- | net-www/jetty/files/4.2.17/21jetty | 2 | ||||
-rw-r--r-- | net-www/jetty/files/4.2.17/jetty | 30 | ||||
-rw-r--r-- | net-www/jetty/files/4.2.17/jetty.conf | 2 | ||||
-rw-r--r-- | net-www/jetty/files/4.2.17/jetty.init | 36 | ||||
-rw-r--r-- | net-www/jetty/files/digest-jetty-4.2.17 | 1 | ||||
-rw-r--r-- | net-www/jetty/jetty-4.2.17.ebuild | 106 | ||||
-rw-r--r-- | net-www/jetty/metadata.xml | 5 |
9 files changed, 200 insertions, 0 deletions
diff --git a/net-www/jetty/ChangeLog b/net-www/jetty/ChangeLog new file mode 100644 index 000000000000..1539e9e5cd51 --- /dev/null +++ b/net-www/jetty/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-www/jetty +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/jetty/ChangeLog,v 1.1 2004/03/07 03:43:00 zx Exp $ + +*jetty-4.2.17 (04 Mar 2004) + + 04 Mar 2004; Chris Aniszczyk <zx@gentoo.org> jetty-4.2.17.ebuild, + metadata.xml: + Initial Import. Thanks to Rudi Strasser <rudi.strasser@gmx.de> for the initial + ebuild. Closes #40782 + diff --git a/net-www/jetty/Manifest b/net-www/jetty/Manifest new file mode 100644 index 000000000000..84dacc2c28ba --- /dev/null +++ b/net-www/jetty/Manifest @@ -0,0 +1,7 @@ +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 4764f309f161fc28832ab9229bd4ab69 jetty-4.2.17.ebuild 2921 +MD5 cdee67aa053ec26b723917bb2ba022cf files/digest-jetty-4.2.17 70 +MD5 c06bb0261951f980b4c2609682d49972 files/4.2.17/21jetty 52 +MD5 a381ae9ba82a2b10ea75e22acfafeedc files/4.2.17/jetty 948 +MD5 0ab3a07453141d8fab987dcd1f0cfd9e files/4.2.17/jetty.conf 41 +MD5 fc311f1151537917ef01a8f12b973858 files/4.2.17/jetty.init 1004 diff --git a/net-www/jetty/files/4.2.17/21jetty b/net-www/jetty/files/4.2.17/21jetty new file mode 100644 index 000000000000..7a154891ccca --- /dev/null +++ b/net-www/jetty/files/4.2.17/21jetty @@ -0,0 +1,2 @@ +JETTY_HOME=/opt/jetty +CONFIG_PROTECT=/opt/jetty/etc diff --git a/net-www/jetty/files/4.2.17/jetty b/net-www/jetty/files/4.2.17/jetty new file mode 100644 index 000000000000..476de1a5e4f0 --- /dev/null +++ b/net-www/jetty/files/4.2.17/jetty @@ -0,0 +1,30 @@ +# JVM Runtime +# Using the default setting, it will determine your JVM from the system-vm +# set using java-config. +# See java-config(1) manual page for assistance in determining this value. +# +# You can override this value with whatever path you wish. +# Example: JAVA_HOME=/opt/sun-jdk-1.4.1.01 + +# Set's JAVA_HOME to current selected JRE +JAVA_HOME=`java-config -O` + +# (Optional) Java runtime options used when the "start", "stop", or "run" +# commands are executed. +# JAVA_OPTIONS="" + +# Where your web applications are located +JETTY_HOME=/opt/jetty + +# Jetty's User +JETTY_USER=jetty + +# JETTY_PORT=8080 + +# Jetty is quite skilled where to look for configuration +# setup files. If JETTY_CONF is not set it defaults to +# /etc/jetty.conf $JETTY_HOME/etc/jetty.conf (see jetty.sh) +# JETTY_CONF=/my-dir/myfile-containing-listof-xml-files.conf + +# Additional CLASSPATH for Jetty to use, plus any others you need. +#CLASSPATH=${CLASSPATH}:/YOUR_SPECIFIC_LIBDIR diff --git a/net-www/jetty/files/4.2.17/jetty.conf b/net-www/jetty/files/4.2.17/jetty.conf new file mode 100644 index 000000000000..7822fd079fba --- /dev/null +++ b/net-www/jetty/files/4.2.17/jetty.conf @@ -0,0 +1,2 @@ +/etc/jetty/demo.xml +/etc/jetty/admin.xml diff --git a/net-www/jetty/files/4.2.17/jetty.init b/net-www/jetty/files/4.2.17/jetty.init new file mode 100644 index 000000000000..817a0dac4975 --- /dev/null +++ b/net-www/jetty/files/4.2.17/jetty.init @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-www/jetty/files/4.2.17/jetty.init,v 1.1 2004/03/07 03:43:00 zx Exp $ + +JETTY_ENV="JAVA_HOME=${JAVA_HOME} JAVA_OPTIONS=\"${JAVA_OPTIONS}\"" +JETTY_ENV="${JETTY_ENV} JETTY_HOME=${JETTY_HOME} JETTY_CONSOLE=${JETTY_HOME}/logs/jetty.log" +JETTY_ENV="${JETTY_ENV} JETTY_PORT=${JETTY_PORT} JETTY_CONF=${JETTY_CONF} JETTY_RUN=${JETTY_HOME}/tmp" +JETTY_ENV="${JETTY_ENV} CLASSPATH=${CLASSPATH}:${JETTY_ADD_CLASSPATH}" + +depend() { + need net + use dns logger postgresql mysql +} + +start() { + ebegin "Starting Jetty" + su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start" + eend $? +} + +stop () { + ebegin "Stopping Jetty" + su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop" + sleep 2 + eend $? +} + +svc_restart () { + ebegin "Restarting Jetty" + su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh stop" + sleep 5 + cd ${JETTY_HOME} + su - ${JETTY_USER} -c "${JETTY_ENV} ${JETTY_HOME}/bin/jetty.sh start" + eend $? +} diff --git a/net-www/jetty/files/digest-jetty-4.2.17 b/net-www/jetty/files/digest-jetty-4.2.17 new file mode 100644 index 000000000000..5fb80c247bc4 --- /dev/null +++ b/net-www/jetty/files/digest-jetty-4.2.17 @@ -0,0 +1 @@ +MD5 7680c76c7ae28d80a1bd1cbaa6c24401 Jetty-4.2.17-all.tar.gz 12166857 diff --git a/net-www/jetty/jetty-4.2.17.ebuild b/net-www/jetty/jetty-4.2.17.ebuild new file mode 100644 index 000000000000..4ddf50f0bee8 --- /dev/null +++ b/net-www/jetty/jetty-4.2.17.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/jetty/jetty-4.2.17.ebuild,v 1.1 2004/03/07 03:43:00 zx Exp $ + +DESCRIPTION="A Lightweight Servlet Engine" +SRC_URI="http://dl.sourceforge.net/sourceforge/jetty/${PN/j/J}-${PV}-all.tar.gz" +HOMEPAGE="http://www.mortbay.org/" +KEYWORDS="~x86 ~ppc ~sparc" +LICENSE="Apache-1.1" +SLOT="0" +DEPEND=">=virtual/jdk-1.2 + dev-java/ant" + +S=${WORKDIR}/Jetty-${PV} + +pkg_setup() { + if ! groupmod jetty ; then + groupadd -g 365 jetty || die "problem adding group jetty, gid 365" + fi + if ! id jetty; then + useradd -u 365 -g jetty -s /bin/bash -d /opt/jetty -c "Jetty Web Application Container" jetty || die "problem adding user jetty, uid 365" + fi +} + +src_install() { + JETTY_HOME="/opt/jetty" + INSTALLING="yes" + DIROPTIONS="--mode=0750 --owner=jetty --group=jetty" + + # Create directories + dodir ${JETTY_HOME} + dodir ${JETTY_HOME}/tmp + keepdir ${JETTY_HOME}/tmp + dodir /var/log/${PN} + touch ${D}/var/log/${PN}/jetty.log + keepdir /var/log/${PN} + + cd ${S} + + # INIT SCRIPTS AND ENV + insinto /etc/init.d + insopts -m0750 + newins ${FILESDIR}/${PV}/jetty.init jetty + + insinto /etc/env.d + insopts -m0750 + doins ${FILESDIR}/${PV}/21jetty + + insinto /etc/ + insopts -m0644 + doins ${FILESDIR}/${PV}/jetty.conf + + insinto /etc/conf.d + insopts -m0644 + doins ${FILESDIR}/${PV}/jetty + + dodoc *.TXT + dohtml *.html + + chmod u+x ${S}/bin/jetty.sh + chown -R jetty:jetty ${S} + DIROPTIONS="--mode=0750 --owner=jetty --group=jetty" + + ant + cp -Rdp * ${D}/${JETTY_HOME} + dosym ${JETTY_HOME}/etc /etc/jetty + ln -sf /var/log/jetty ${D}/opt/jetty/logs +} + +pkg_postinst() { + einfo + einfo " NOTICE!" + einfo " User and group 'jetty' have been added." + einfo " " + einfo " FILE LOCATIONS:" + einfo " 1. Jetty home directory: ${JETTY_HOME}" + einfo " Contains application data, configuration files." + einfo " 2. Runtime settings: /etc/conf.d/jetty" + einfo " Contains CLASSPATH,JAVA_HOME,JAVA_OPTIONS,JETTY_PORT" + einfo " JETTY_USER,JETTY_CONF setting" + einfo " 3. You can configure your 'webapp'-lications in /etc/jetty.conf" + einfo " (the default configured webapps are the JETTY's demo/admin)" + einfo " 4. For more information about JETTY refer to jetty.mortbay.org" + einfo " 5. Logs are located at:" + einfo " /var/log/jetty/" + einfo + einfo " STARTING AND STOPPING JETTY:" + einfo " /etc/init.d/jetty start" + einfo " /etc/init.d/jetty stop" + einfo " /etc/init.d/jetty restart" + einfo " " + einfo " " + einfo " NETWORK CONFIGURATION:" + einfo " By default, Jetty runs on port 8080. You can change this" + einfo " value by setting ${JETTY_PORT} in /etc/conf.d/jetty ." + einfo " " + einfo " To test Jetty while it's running, point your web browser to:" + einfo " http://localhost:8080/" + einfo + einfo " BUGS:" + einfo " Please file any bugs at http://bugs.gentoo.org/ or else it" + einfo " may not get seen. Thank you!" + einfo + echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 ; echo -ne "\a" ; sleep 1 + sleep 10 +} diff --git a/net-www/jetty/metadata.xml b/net-www/jetty/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/net-www/jetty/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> |