summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2008-06-16 14:17:42 +0000
committerThilo Bangert <bangert@gentoo.org>2008-06-16 14:17:42 +0000
commitb16c1a172b1fd7c014e24c42e3272d5e9fececf4 (patch)
treee7362078b25ad0e65e9f3bebe5aa3ab7d8654db5
parentinitial version of ebuild for nelly2pcm (diff)
downloadbangert-b16c1a172b1fd7c014e24c42e3272d5e9fececf4.tar.gz
bangert-b16c1a172b1fd7c014e24c42e3272d5e9fececf4.tar.bz2
bangert-b16c1a172b1fd7c014e24c42e3272d5e9fececf4.zip
add a very basic binary jetty ebuild
svn path=/ebuilds/; revision=69
-rw-r--r--www-servers/jetty/ChangeLog8
-rw-r--r--www-servers/jetty/Manifest9
-rw-r--r--www-servers/jetty/files/jetty.conf1
-rw-r--r--www-servers/jetty/files/jetty.confd30
-rw-r--r--www-servers/jetty/files/jetty.initd36
-rw-r--r--www-servers/jetty/files/jetty.xml143
-rw-r--r--www-servers/jetty/jetty-6.1.11.ebuild56
-rw-r--r--www-servers/jetty/metadata.xml19
8 files changed, 302 insertions, 0 deletions
diff --git a/www-servers/jetty/ChangeLog b/www-servers/jetty/ChangeLog
new file mode 100644
index 0000000..ac6c390
--- /dev/null
+++ b/www-servers/jetty/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for www-servers/jetty
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 16 Jun 2008; Thilo Bangert <bangert@gentoo.org> +metadata.xml,
+ +jetty-6.1.11.ebuild:
+ basic jetty ebuild - a much better version is in the java overlay
+
diff --git a/www-servers/jetty/Manifest b/www-servers/jetty/Manifest
new file mode 100644
index 0000000..0abe1ce
--- /dev/null
+++ b/www-servers/jetty/Manifest
@@ -0,0 +1,9 @@
+AUX jetty.conf 21 RMD160 a8c154d733ca49824e576de3ad7584a2fb9f154e SHA1 9c044b7e0b6cd4560bdb1b137570bd74071e79f2 SHA256 03fbba4876f4f3733ea8a00ac4f40fd5be5eccee728c4e501d9f6d7e9ebfad13
+AUX jetty.confd 933 RMD160 9f666b8184a89f0e8d671c0fc87afefa0a3f7df1 SHA1 f9f7b052672e7182f794c0ca8b1af0c0a04834ac SHA256 9edd437baa0eb556daf61ce93c53b8b36a1e9010f06280ed2f547c01c97fbfc1
+AUX jetty.initd 1002 RMD160 efbeabe8317a1a62a94cab7e560be540271626f6 SHA1 e1b1c02f6a25fef6e6280cd0d5845ec3e0c0a475 SHA256 1e244c66f155d198d6a9abaac80b23107c9e8c13bf4b9885f3d235c524bec5e4
+AUX jetty.initorig 707 RMD160 186992362516112f88894313f621c447f821c210 SHA1 7feff628e1163ea8d0f591e387b54546faba382e SHA256 cba22b4b6a1dbb3e0628fe0f5280e3ce9a9ba6af1098590f147a9a475e1f3794
+AUX jetty.xml 6165 RMD160 f620f74b257c620c0fd69d9438e295e8d1b27ce4 SHA1 3387f4606a1168e3a22bde1516987dd3a2449dc2 SHA256 e23234537cfd42b48d91e550b2a30b46b4e84b9c6d17cb73f0e9948a6a3a7a71
+DIST jetty-6.1.11.zip 18390016 RMD160 92a481c31b66ec22d97aca6a13f429f72988fe30 SHA1 5e4b9ab8c26cfcb3d78fe68ec40b1f537a57cc4b SHA256 448f460b9783b483f82df29734da391fb5ffe62e72fc440e2d28b5559173709b
+EBUILD jetty-6.1.11.ebuild 1167 RMD160 f8f73148cc8992b44af2812d25fc0ec7e04a4181 SHA1 03a232f0ef47deb9bc39330d80fb424a4f0a70ed SHA256 5a40733711ccd83e58ac515efeef61f6c2ac0d60301592ff0e055e9194e36956
+MISC ChangeLog 276 RMD160 a83d15e5334f7cf7e5f8db5b7ac3b0c1f1ccb83f SHA1 1bddbaefaefe6852cd87f2371aeaf86e93b59ccf SHA256 9d589d46d815a82afa7f292f47d7ab9a194c8b3f9ec9ccc0c0947db7640d3b06
+MISC metadata.xml 923 RMD160 637641da8cc6874f9745660833ed6d9f2fc42968 SHA1 f90252bcd086e25dee59eebd86dc3d89263c5888 SHA256 18a1219019fef39ced06098d23ef233caed66e1070bc27baf6954151253aa600
diff --git a/www-servers/jetty/files/jetty.conf b/www-servers/jetty/files/jetty.conf
new file mode 100644
index 0000000..b5da826
--- /dev/null
+++ b/www-servers/jetty/files/jetty.conf
@@ -0,0 +1 @@
+/etc/jetty/jetty.xml
diff --git a/www-servers/jetty/files/jetty.confd b/www-servers/jetty/files/jetty.confd
new file mode 100644
index 0000000..ca72909
--- /dev/null
+++ b/www-servers/jetty/files/jetty.confd
@@ -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="/etc/jetty/jetty.conf"
+
+# Additional CLASSPATH for Jetty to use, plus any others you need.
+#CLASSPATH="${CLASSPATH}:/YOUR_SPECIFIC_LIBDIR"
diff --git a/www-servers/jetty/files/jetty.initd b/www-servers/jetty/files/jetty.initd
new file mode 100644
index 0000000..bbdf39b
--- /dev/null
+++ b/www-servers/jetty/files/jetty.initd
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: $
+
+JETTY_ENV="JAVA_HOME=${JAVA_HOME} JAVA_OPTIONS=\"${JAVA_OPTIONS}\""
+JETTY_ENV="${JETTY_ENV} JETTY_HOME=${JETTY_HOME} JETTY_CONSOLE=/var/log/jetty/jetty.log"
+JETTY_ENV="${JETTY_ENV} JETTY_PORT=${JETTY_PORT} JETTY_CONF=${JETTY_CONF} JETTY_RUN=/var/run/jetty"
+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/jetty.xml b/www-servers/jetty/files/jetty.xml
new file mode 100644
index 0000000..3ef3d67
--- /dev/null
+++ b/www-servers/jetty/files/jetty.xml
@@ -0,0 +1,143 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
+
+<Configure id="Server" class="org.mortbay.jetty.Server">
+
+ <!-- =========================================================== -->
+ <!-- Server Thread Pool -->
+ <!-- =========================================================== -->
+ <Set name="ThreadPool">
+
+ <New class="org.mortbay.thread.QueuedThreadPool">
+ <Set name="minThreads">10</Set>
+ <Set name="maxThreads">200</Set>
+ <Set name="lowThreads">20</Set>
+ <Set name="SpawnOrShrinkAt">2</Set>
+ </New>
+
+ </Set>
+
+
+
+ <!-- =========================================================== -->
+ <!-- Set connectors -->
+ <!-- =========================================================== -->
+ <!-- One of each type! -->
+ <!-- =========================================================== -->
+
+ <!-- Use this connector for many frequently idle connections
+ and for threadless continuations.
+ -->
+ <Call name="addConnector">
+ <Arg>
+ <New class="org.mortbay.jetty.nio.SelectChannelConnector">
+ <Set name="host">127.0.0.1</Set>
+ <Set name="port">8080</Set>
+ <Set name="maxIdleTime">10000</Set>
+ <Set name="Acceptors">2</Set>
+ <Set name="statsOn">false</Set>
+ <Set name="confidentialPort">8443</Set>
+ <Set name="lowResourcesConnections">5000</Set>
+ <Set name="lowResourcesMaxIdleTime">5000</Set>
+ </New>
+ </Arg>
+ </Call>
+
+ <!-- =========================================================== -->
+ <!-- Set up global session ID manager -->
+ <!-- =========================================================== -->
+ <!--
+ <Set name="sessionIdManager">
+ <New class="org.mortbay.jetty.servlet.HashSessionIdManager">
+ <Set name="workerName">node1</Set>
+ </New>
+ </Set>
+ -->
+
+ <!-- =========================================================== -->
+ <!-- Set handler Collection Structure -->
+ <!-- =========================================================== -->
+ <Set name="handler">
+ <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
+ <Set name="handlers">
+ <Array type="org.mortbay.jetty.Handler">
+ <Item>
+ <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
+ </Item>
+ <Item>
+ <New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
+ </Item>
+ <Item>
+ <New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
+ </Item>
+ </Array>
+ </Set>
+ </New>
+ </Set>
+
+ <!-- =========================================================== -->
+ <!-- Configure the context deployer -->
+ <!-- A context deployer will deploy contexts described in -->
+ <!-- configuration files discovered in a directory. -->
+ <!-- The configuration directory can be scanned for hot -->
+ <!-- deployments at the configured scanInterval. -->
+ <!-- -->
+ <!-- This deployer is configured to deploy contexts configured -->
+ <!-- in the $JETTY_HOME/contexts directory -->
+ <!-- -->
+ <!-- =========================================================== -->
+
+ <Call name="addLifeCycle">
+ <Arg>
+ <New class="org.mortbay.jetty.deployer.ContextDeployer">
+ <Set name="contexts"><Ref id="Contexts"/></Set>
+ <Set name="configurationDir">/etc/jetty/contexts</Set>
+ <Set name="scanInterval">1</Set>
+ </New>
+ </Arg>
+ </Call>
+
+ <!-- =========================================================== -->
+ <!-- Configure Request Log -->
+ <!-- Request logs may be configured for the entire server here, -->
+ <!-- or they can be configured for a specific web app in a -->
+ <!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
+ <!-- for an example). -->
+ <!-- =========================================================== -->
+ <Ref id="RequestLog">
+ <Set name="requestLog">
+ <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
+ <Set name="filename">/var/log/jetty/access.yyyy_mm_dd.log</Set>
+ <Set name="filenameDateFormat">yyyy_MM_dd</Set>
+ <Set name="retainDays">90</Set>
+ <Set name="append">true</Set>
+ <Set name="extended">true</Set>
+ <Set name="logCookies">false</Set>
+ <Set name="LogTimeZone">GMT</Set>
+ </New>
+ </Set>
+ </Ref>
+
+ <New id="ServerLog" class="java.io.PrintStream">
+ <Arg>
+ <New class="org.mortbay.util.RolloverFileOutputStream">
+ <Arg>/var/log/jetty/error.yyyy_mm_dd.log</Arg>
+ <Arg type="boolean">false</Arg>
+ <Arg type="int">90</Arg>
+ <Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg>
+ <Get id="ServerLogName" name="datedFilename"/>
+ </New>
+ </Arg>
+ </New>
+ <Call class="java.lang.System" name="setErr"><Arg><Ref id="ServerLog"/></Arg></Call>
+ <Call class="java.lang.System" name="setOut"><Arg><Ref id="ServerLog"/></Arg></Call>
+
+ <!-- =========================================================== -->
+ <!-- extra options -->
+ <!-- =========================================================== -->
+ <Set name="stopAtShutdown">true</Set>
+ <Set name="sendServerVersion">false</Set>
+ <Set name="sendDateHeader">true</Set>
+ <Set name="gracefulShutdown">1000</Set>
+
+</Configure>
diff --git a/www-servers/jetty/jetty-6.1.11.ebuild b/www-servers/jetty/jetty-6.1.11.ebuild
new file mode 100644
index 0000000..106e5c8
--- /dev/null
+++ b/www-servers/jetty/jetty-6.1.11.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Jetty is an full-featured web and applicaction server implemented entirely in Java."
+HOMEPAGE="http://www.mortbay.org/jetty-6/"
+SRC_URI="http://dist.codehaus.org/jetty/${P}/${P}.zip"
+LICENSE="Apache-2.0"
+SLOT="6"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.5"
+RDEPEND=">=virtual/jdk-1.5"
+
+JETTY_HOME="/opt/jetty"
+
+pkg_setup() {
+ enewgroup jetty
+ enewuser jetty -1 /bin/bash ${JETTY_HOME} jetty
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/jetty.initd jetty
+ newconfd "${FILESDIR}"/jetty.confd jetty
+
+ insinto /etc/jetty
+ doins "${FILESDIR}"/jetty.xml
+ doins "${FILESDIR}"/jetty.conf
+ keepdir /etc/jetty/contexts
+
+ dodir ${JETTY_HOME}
+ dosym /etc/jetty ${JETTY_HOME}/etc
+
+ insinto ${JETTY_HOME}
+ doins start.jar
+ doins -r lib
+ doins -r resources
+
+ exeinto ${JETTY_HOME}/bin
+ doexe bin/jetty.sh
+
+ fowners -R jetty:jetty ${JETTY_HOME}
+
+ keepdir /var/log/jetty
+ fowners jetty:jetty /var/log/jetty
+
+ keepdir /var/run/jetty
+ fowners jetty:jetty /var/run/jetty
+}
diff --git a/www-servers/jetty/metadata.xml b/www-servers/jetty/metadata.xml
new file mode 100644
index 0000000..fabc5e0
--- /dev/null
+++ b/www-servers/jetty/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>bangert@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+Jetty is an open-source, standards-based, full-featured web server implemented
+entirely in Java. It is released under the Apache 2.0 licence and is therefore
+free for commercial use and distribution. First created in 1995, Jetty has
+benefitted from input from a vast user community and consistent and focused
+development by a stable core of lead developers. There are many more examples of
+Jetty in action on the Jetty Powered Page that has selections from among the
+tens of thousands of production Jetty instances. However, as Jetty aims to be as
+unobtrusive as possible, countless websites and products are based around Jetty,
+but Jetty is invisible!
+</longdescription>
+</pkgmetadata>