diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:20:07 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 17:20:07 +0000 |
commit | 7c577b735b0b84511138e7ca9dfe99d67bb944b9 (patch) | |
tree | ac759222bdfbf7da59e90595dee79b48f495f980 /www-servers | |
parent | wrong name for patch, epatch failed (Manifest recommit) (diff) | |
download | gentoo-2-7c577b735b0b84511138e7ca9dfe99d67bb944b9.tar.gz gentoo-2-7c577b735b0b84511138e7ca9dfe99d67bb944b9.tar.bz2 gentoo-2-7c577b735b0b84511138e7ca9dfe99d67bb944b9.zip |
Moved from net-www/jetty to www-servers/jetty.
Diffstat (limited to 'www-servers')
-rw-r--r-- | www-servers/jetty/ChangeLog | 29 | ||||
-rw-r--r-- | www-servers/jetty/Manifest | 18 | ||||
-rw-r--r-- | www-servers/jetty/files/4.2.19/21jetty | 2 | ||||
-rw-r--r-- | www-servers/jetty/files/4.2.19/jetty | 30 | ||||
-rw-r--r-- | www-servers/jetty/files/4.2.19/jetty.conf | 2 | ||||
-rw-r--r-- | www-servers/jetty/files/4.2.19/jetty.init | 36 | ||||
-rw-r--r-- | www-servers/jetty/files/digest-jetty-4.2.19 | 1 | ||||
-rw-r--r-- | www-servers/jetty/jetty-4.2.19.ebuild | 100 | ||||
-rw-r--r-- | www-servers/jetty/metadata.xml | 5 |
9 files changed, 223 insertions, 0 deletions
diff --git a/www-servers/jetty/ChangeLog b/www-servers/jetty/ChangeLog new file mode 100644 index 000000000000..f2f537b2042d --- /dev/null +++ b/www-servers/jetty/ChangeLog @@ -0,0 +1,29 @@ +# ChangeLog for net-www/jetty +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/jetty/ChangeLog,v 1.1 2004/08/08 17:20:07 stuart Exp $ + +*jetty-4.2.19 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml, + +files/4.2.19/21jetty, +files/4.2.19/jetty, +files/4.2.19/jetty.conf, + +files/4.2.19/jetty.init, +jetty-4.2.19.ebuild: + Moved from net-www/jetty to www-servers/jetty. + + 27 Jul 2004; Thomas Matthijs <axxo@gentoo.org> jetty-4.2.19.ebuild: + fix group/user add, add IUSE + +*jetty-4.2.19 (31 Mar 2004) + + 31 Mar 2004; Chris Aniszczyk <zx@gentoo.org> jetty-4.2.17.ebuild, + jetty-4.2.19.ebuild, files/4.2.17/21jetty, files/4.2.17/jetty, + files/4.2.17/jetty.conf, files/4.2.17/jetty.init, files/4.2.19/21jetty, + files/4.2.19/jetty, files/4.2.19/jetty.conf, files/4.2.19/jetty.init: + Version bump to remove security issue. Closes #45552 + +*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/www-servers/jetty/Manifest b/www-servers/jetty/Manifest new file mode 100644 index 000000000000..5c3d2dc1f231 --- /dev/null +++ b/www-servers/jetty/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 0165aa0d9bdc5a681e58455c84a6074d jetty-4.2.19.ebuild 2693 +MD5 c18dfc0edbf583c91dc39a6c0395f208 ChangeLog 882 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +MD5 0395650cdf6ad11208dcddb344d31e7b files/digest-jetty-4.2.19 70 +MD5 c06bb0261951f980b4c2609682d49972 files/4.2.19/21jetty 52 +MD5 a381ae9ba82a2b10ea75e22acfafeedc files/4.2.19/jetty 948 +MD5 0ab3a07453141d8fab987dcd1f0cfd9e files/4.2.19/jetty.conf 41 +MD5 5c60daab6efd3ff566ca07e68c8f6556 files/4.2.19/jetty.init 1110 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.4 (GNU/Linux) + +iD8DBQFBBjuu/rLF9B432nYRAmHuAKDO9UZaA9udhje8twh82cunOp4F3wCdHvMR +eKwrUoyl0zEXeY6l+btqUIw= +=DvCU +-----END PGP SIGNATURE----- diff --git a/www-servers/jetty/files/4.2.19/21jetty b/www-servers/jetty/files/4.2.19/21jetty new file mode 100644 index 000000000000..7a154891ccca --- /dev/null +++ b/www-servers/jetty/files/4.2.19/21jetty @@ -0,0 +1,2 @@ +JETTY_HOME=/opt/jetty +CONFIG_PROTECT=/opt/jetty/etc diff --git a/www-servers/jetty/files/4.2.19/jetty b/www-servers/jetty/files/4.2.19/jetty new file mode 100644 index 000000000000..476de1a5e4f0 --- /dev/null +++ b/www-servers/jetty/files/4.2.19/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/www-servers/jetty/files/4.2.19/jetty.conf b/www-servers/jetty/files/4.2.19/jetty.conf new file mode 100644 index 000000000000..7822fd079fba --- /dev/null +++ b/www-servers/jetty/files/4.2.19/jetty.conf @@ -0,0 +1,2 @@ +/etc/jetty/demo.xml +/etc/jetty/admin.xml diff --git a/www-servers/jetty/files/4.2.19/jetty.init b/www-servers/jetty/files/4.2.19/jetty.init new file mode 100644 index 000000000000..378f792a151d --- /dev/null +++ b/www-servers/jetty/files/4.2.19/jetty.init @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/www-servers/jetty/files/4.2.19/jetty.init,v 1.1 2004/08/08 17:20:07 stuart 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/www-servers/jetty/files/digest-jetty-4.2.19 b/www-servers/jetty/files/digest-jetty-4.2.19 new file mode 100644 index 000000000000..625e8f351aed --- /dev/null +++ b/www-servers/jetty/files/digest-jetty-4.2.19 @@ -0,0 +1 @@ +MD5 f4479ecf3e651dbd8185156ab37e3216 Jetty-4.2.19-all.tar.gz 12177690 diff --git a/www-servers/jetty/jetty-4.2.19.ebuild b/www-servers/jetty/jetty-4.2.19.ebuild new file mode 100644 index 000000000000..4c0898a901c6 --- /dev/null +++ b/www-servers/jetty/jetty-4.2.19.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/jetty/jetty-4.2.19.ebuild,v 1.1 2004/08/08 17:20:07 stuart Exp $ + +inherit eutils + +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" +IUSE="" + +S=${WORKDIR}/Jetty-${PV} + +pkg_preinst() { + enewgroup jetty + enewuser jetty -1 /bin/bash /opt/jetty jetty + chown -R jetty:jetty ${D} +} + +src_install() { + JETTY_HOME="/opt/jetty" + INSTALLING="yes" + diropts -m0750 + + # 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} + + # 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 + + 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 +} diff --git a/www-servers/jetty/metadata.xml b/www-servers/jetty/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/www-servers/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> |