[pkg-java] r9642 - in trunk/jetty6: . debian debian/root-webapp

Ludovic Claude ludovicc-guest at alioth.debian.org
Wed Aug 5 11:00:48 UTC 2009


Author: ludovicc-guest
Date: 2009-08-05 11:00:48 +0000 (Wed, 05 Aug 2009)
New Revision: 9642

Added:
   trunk/jetty6/debian/
   trunk/jetty6/debian/README.Debian
   trunk/jetty6/debian/README.Debian-source
   trunk/jetty6/debian/README.source
   trunk/jetty6/debian/TODO
   trunk/jetty6/debian/build.xml
   trunk/jetty6/debian/changelog
   trunk/jetty6/debian/compat
   trunk/jetty6/debian/control
   trunk/jetty6/debian/copyright
   trunk/jetty6/debian/jetty-extra.conf
   trunk/jetty6/debian/jetty-shared-webapps.xml
   trunk/jetty6/debian/jetty.conf
   trunk/jetty6/debian/jetty6.cron.daily
   trunk/jetty6/debian/jetty6.default
   trunk/jetty6/debian/jetty6.dirs
   trunk/jetty6/debian/jetty6.init
   trunk/jetty6/debian/jetty6.install
   trunk/jetty6/debian/jetty6.links
   trunk/jetty6/debian/jetty6.postinst
   trunk/jetty6/debian/jetty6.postrm
   trunk/jetty6/debian/libjetty6-extra-java.dirs
   trunk/jetty6/debian/libjetty6-extra-java.links
   trunk/jetty6/debian/libjetty6-extra-java.poms
   trunk/jetty6/debian/libjetty6-java-doc.doc-base
   trunk/jetty6/debian/libjetty6-java-doc.install
   trunk/jetty6/debian/libjetty6-java.dirs
   trunk/jetty6/debian/libjetty6-java.links
   trunk/jetty6/debian/libjetty6-java.poms
   trunk/jetty6/debian/maven.rules
   trunk/jetty6/debian/module.xml
   trunk/jetty6/debian/orig-tar.sh
   trunk/jetty6/debian/root-webapp/
   trunk/jetty6/debian/root-webapp/index.html
   trunk/jetty6/debian/rules
   trunk/jetty6/debian/start.config
   trunk/jetty6/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: trunk/jetty6/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: trunk/jetty6/debian/README.Debian
===================================================================
--- trunk/jetty6/debian/README.Debian	                        (rev 0)
+++ trunk/jetty6/debian/README.Debian	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,43 @@
+jetty6 for Debian
+----------------
+
+This debian package installs Jetty 6 into /usr/share/jetty6
+and other directories under /var and /etc, which are linked to
+from the /usr/share/jetty6 directory.
+
+The configuration of the server is in /etc/jetty6. The configuration
+files listed in /etc/jetty6/jetty.conf are passed to the command
+line of Jetty when it is started by /etc/init.d/jetty6
+
+Webapps can be deployed by placing them in /var/lib/jetty6/webapps
+(linked from /usr/share/jetty6/webapps)
+Additional contexts can be configured and (hot) deployed via the 
+/etc/jetty6/contexts directory (linked from /usr/share/jetty6/contexts).
+
+Installing:
+
+$ sudo apt-get install libjetty6-java
+$ sudo apt-get install libjetty6-extra-java
+$ sudo apt-get install jetty6
+
+Starting:
+
+Edit /etc/default/jetty6
+Set:
+NO_START=0
+
+Then do:
+$ sudo service jetty6 start
+
+Stopping:
+
+$ sudo service jetty6 stop
+
+--
+
+This packaging is heavily based on the work done by Philipp Meier <meier at meisterbohne.de>
+and Michael Koch <konqueror at gmx.de>.
+
+-- 
+Greg Wilkins <gregw at mortbay.com> Thu Nov  8 18:10:06 EST 2007
+David Yu <david.yu.ftw at gmail.com> Thu May  21 15:06:30 EST 2009

Added: trunk/jetty6/debian/README.Debian-source
===================================================================
--- trunk/jetty6/debian/README.Debian-source	                        (rev 0)
+++ trunk/jetty6/debian/README.Debian-source	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,58 @@
+jetty6 for Debian
+----------------
+
+BUILD DEPENDENCIES:
+ cdbs
+ debhelper
+ devscripts
+ fakeroot
+ 
+ JAVA DEBS:
+ ant
+ libservlet2.5-java
+ libmx4j-java
+ libgnumail-java
+ libgnujaf-java
+
+-------------------------------------------------------------------
+
+TESTING ANT BUILD (no dependencies required):
+$ ant -DVERSION=6.1.18 testbuild
+
+CLEAN:
+$ ant -DVERSION=6.1.18 clean
+
+GENERATING SOURCE:
+$ ant -DVERSION=6.1.18 generate-deb-source
+
+GENERATING BINARIES/DEBS:
+$ ant -DVERSION=6.1.18 generate-deb-binaries
+
+MANUAL INSTALLATION:
+$ sudo dpkg -i libjetty6-java_6.1.18-1_all.deb
+$ sudo dpkg -i libjetty6-extra-java_6.1.18-1_all.deb
+$ sudo dpkg -i jetty6_6.1.18-1_all.deb
+
+-------------------------------------------------------------------
+
+GENERATED DEB SOURCES:
+ jetty6-6.1.18.orig.tar.gz
+ jetty6_6.1.18-1.dsc
+ jetty6_6.1.18-1.diff.gz
+
+
+GENERATED DEB BINARIES:
+ libjetty6-java
+  - Jetty 6 core modules
+  - includes:
+     jetty-util, jetty-util5, jetty, jetty-sslengine, jetty-start
+ 
+ libjetty6-extra-java
+  - Jetty 6 extra modules (depends: libjetty6-java)
+  - includes:
+     jetty-management, jetty-naming, jetty-servlet-tester, jetty-ajp, jetty-java5-threadpool, jetty-client, jetty-rewrite-handler
+ 
+ jetty6
+  - The standalone http server (depends: libjetty6-java)
+  - includes:
+     scripts, config files, docs

Added: trunk/jetty6/debian/README.source
===================================================================
--- trunk/jetty6/debian/README.source	                        (rev 0)
+++ trunk/jetty6/debian/README.source	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,21 @@
+Building the source tarball
+---------------------------
+
+The source tarball was created from the upstream Subversion repository
+[1]. The following files and directories were removed because they are
+likely to contain non-free code, code under too many or unclear licenses
+or unstable code:
+
+* modules/jsp-api-2.0
+* extras/win32service
+* contrib/cometd
+* contrib/rpms
+* contrib/debian
+* contrib/grizzly
+* contrib/maven-beanshell-plugin
+
+None of those sources are necessary for the core Jetty functionality.
+
+[1] http://svn.codehaus.org/jetty/
+
+ -- Marcus Better <marcus at better.se>, Wed, 13 May 2009 10:49:17 +0200

Added: trunk/jetty6/debian/TODO
===================================================================
--- trunk/jetty6/debian/TODO	                        (rev 0)
+++ trunk/jetty6/debian/TODO	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,18 @@
+TODO List for jetty6 in debian
+
+* evaluate authbind
+
+Modules to add:
+
+jetty-plus
+ - geronimo-jta must be available as a deb package (build & runtime dependency)
+
+jetty-annotations
+ - genonimo-annotation must be available as a deb package (build & runtime dependency)
+
+jetty-terracota
+
+jetty-xbean
+ - spring-framework must be available as a deb package (build dependency)
+ - xbean must include the module xbean-spring
+

Added: trunk/jetty6/debian/build.xml
===================================================================
--- trunk/jetty6/debian/build.xml	                        (rev 0)
+++ trunk/jetty6/debian/build.xml	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,138 @@
+<project name="jetty6 build" basedir=".." default="package">
+  <property name="src.dir" value="src/main/java"/>
+  <property name="rsrc.dir" value="src/main/resources"/>
+  <property name="config.dir" value="src/main/config/etc"/>
+  <property name="build.dir" value="${basedir}/build"/>
+  <property name="target.dir" value="${basedir}/target"/>
+  <property name="lib.dir" value="${basedir}/lib"/>
+  <property name="etc.dir" value="${basedir}/etc"/>
+  <property name="javadoc.dir" value="${basedir}/api"/>
+  <property name="module.script" location="debian/module.xml"/>
+
+  <path id="classpath">
+    <fileset dir="${target.dir}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>
+
+  <target name="package">
+    <mkdir dir="${build.dir}"/>
+    <mkdir dir="${target.dir}"/>
+    <mkdir dir="${lib.dir}"/>
+    <mkdir dir="${etc.dir}"/>
+    
+    <ant dir="${basedir}/modules/util/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-util"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}"/>
+    </ant>
+    
+    <ant dir="${basedir}/modules/util5/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-util5"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/util5"/>
+    </ant>
+    
+    <ant dir="${basedir}/modules/jetty/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/sslengine/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-sslengine"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/sslengine"/>
+    </ant>
+    
+    <ant dir="${basedir}/modules/start/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-start"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${basedir}"/>
+      <property name="jar.main.class" value="org.mortbay.start.Main"/>
+      <property name="jar.file" value="start.jar"/>
+    </ant>
+    
+    <ant dir="${basedir}/contrib/start-daemon/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-start-daemon"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${basedir}"/>
+      <property name="jar.main.class" value="org.mortbay.jetty.start.daemon.Bootstrap"/>
+      <property name="jar.file" value="start-daemon.jar"/>
+    </ant>
+    
+    <!-- EXTRAS -->
+    
+    <ant dir="${basedir}/modules/html/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-html"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/modules/management/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-management"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/management"/>
+    </ant>
+    
+    <ant dir="${basedir}/modules/naming/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-naming"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/naming"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/servlet-tester/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-servlet-tester"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/ajp/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-ajp"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/setuid/modules/java/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-setuid"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/threadpool/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-java5-threadpool"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/extras/client/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-client"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <ant dir="${basedir}/contrib/jetty-rewrite-handler/" antfile="${module.script}" inheritRefs="true">
+      <property name="module-name" value="jetty-rewrite-handler"/>
+      <property name="module-version" value="${VERSION}"/>
+      <property name="module-libdir" value="${lib.dir}/ext"/>
+    </ant>
+    
+    <copy file="${basedir}/modules/jetty/src/main/resources/org/mortbay/jetty/webapp/webdefault.xml" todir="${etc.dir}"/>
+    <copy file="${basedir}/debian/start.config" todir="${etc.dir}"/>
+    <copy file="${basedir}/debian/jetty.conf" todir="${etc.dir}"/>
+    <copy file="${basedir}/debian/jetty-extra.conf" todir="${etc.dir}"/>
+  </target>
+  
+  <target name="clean">
+    <delete dir="${build.dir}" quiet="true"/>
+    <delete dir="${target.dir}" quiet="true"/>
+    <delete dir="${lib.dir}" quiet="true"/>
+    <delete dir="${etc.dir}" quiet="true"/>
+    <delete includeemptydirs="true" quiet="true">
+      <fileset dir="${javadoc.dir}" excludes="contents.html"/>
+    </delete>
+    <delete file="${basedir}/start.jar" quiet="true"/>
+  </target>
+  
+</project>
+

Added: trunk/jetty6/debian/changelog
===================================================================
--- trunk/jetty6/debian/changelog	                        (rev 0)
+++ trunk/jetty6/debian/changelog	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,8 @@
+jetty6 (6.1.19-0ubuntu1~ppa3) karmic; urgency=low
+
+  * New upstream release of Jetty, branched from package
+    jetty as the list of changes is really long and we
+    try to follow the numbering used for Tomcat. Jetty 7 is almost
+    ready and it's likely to be packaged as jetty7.
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Tue, 04 Aug 2009 22:21:54 +0100

Added: trunk/jetty6/debian/compat
===================================================================
--- trunk/jetty6/debian/compat	                        (rev 0)
+++ trunk/jetty6/debian/compat	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1 @@
+7

Added: trunk/jetty6/debian/control
===================================================================
--- trunk/jetty6/debian/control	                        (rev 0)
+++ trunk/jetty6/debian/control	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,79 @@
+Source: jetty6
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Philipp Meier <meier at fnogol.de>, Michael Koch <konqueror at gmx.de>, Thierry Carrez <thierry.carrez at ubuntu.com>,
+ Ludovic Claude <ludovic.claude at laposte.net>
+Build-Depends: debhelper (>= 7), cdbs (>> 0.4.5.3), openjdk-6-jdk, ant, maven-repo-helper,
+ libservlet2.5-java, libslf4j-java, libmx4j-java, libgnumail-java,
+ libgnujaf-java, libcommons-daemon-java
+Standards-Version: 3.8.2
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jetty6
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/jetty6
+Homepage: http://jetty.mortbay.com/
+
+Package: libjetty6-java
+Section: java
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless, libservlet2.5-java, libslf4j-java
+Suggests: jetty6
+Description: Java servlet engine and webserver -- core libraries
+ Jetty is an Open Source HTTP Servlet Server written in 100% Java.
+ It is designed to be light weight, high performance, embeddable,
+ extensible and flexible, thus making it an ideal platform for serving
+ dynamic HTTP requests from any Java application.
+
+Package: libjetty6-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libjetty6-java
+Description: Javadoc for the Jetty 6 API
+ Jetty is an Open Source HTTP Servlet Server written in 100% Java.
+ It is designed to be light weight, high performance, embeddable,
+ extensible and flexible, thus making it an ideal platform for serving
+ dynamic HTTP requests from any Java application.
+ .
+ This package contains the Javadoc for libjetty6-java.
+
+Package: libjetty6-extra-java
+Architecture: all
+Depends: ${misc:Depends}, libjetty6-java (>= ${source:Version}), libmx4j-java, 
+ libgnumail-java, libgnujaf-java, ant, libslf4j-java, libxerces2-java, 
+ libtomcat6-java (>= 6.0.20-2)
+Recommends: libjetty6-extra
+Suggests: jetty6
+Description: Java servlet engine and webserver -- extra libraries
+ Jetty is an Open Source HTTP Servlet Server written in 100% Java.
+ It is designed to be light weight, high performance, embeddable,
+ extensible and flexible, thus making it an ideal platform for serving
+ dynamic HTTP requests from any Java application. 
+ The extra libraries include jetty-management, jetty-naming,
+ jetty-servlet-tester, jetty-ajp, jetty-java5-threadpool,
+ jetty-client, jetty-rewrite-handler
+
+Package: libjetty6-extra
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libjetty6-extra-java (>= ${source:Version})
+Suggests: jetty6
+Description: Java servlet engine and webserver -- extra libraries
+ Jetty is an Open Source HTTP Servlet Server written in 100% Java.
+ It is designed to be light weight, high performance, embeddable,
+ extensible and flexible, thus making it an ideal platform for serving
+ dynamic HTTP requests from any Java application. 
+ This package contains the platform-dependent libraries used by Jetty.
+ Currently it contains libsetuid.so which can be used to start Jetty as root
+ so that privileged ports may be accessed and then switched to a non-root
+ user for security.
+
+Package: jetty6
+Architecture: all
+Depends: ${misc:Depends}, libjetty6-java (>= ${source:Version}),
+ libjetty6-java-doc (>= ${source:Version}), adduser, jsvc, apache2-utils
+Suggests: libjetty6-extra-java (>= ${source:Version}), libjetty6-extra (>= ${source:Version})
+Description: Java servlet engine and webserver
+ Jetty is an Open Source HTTP Servlet Server written in 100% Java.
+ It is designed to be light weight, high performance, embeddable,
+ extensible and flexible, thus making it an ideal platform for serving
+ dynamic HTTP requests from any Java application.

Added: trunk/jetty6/debian/copyright
===================================================================
--- trunk/jetty6/debian/copyright	                        (rev 0)
+++ trunk/jetty6/debian/copyright	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,74 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: Jetty 6
+Maintainer: Mortbay Consulting
+Source: http://jetty.mortbay.com/
+
+Files: *
+Copyright: 2004-2009, Mortbay Consulting
+License: Apache-2.0
+
+Files: contrib/jboss/src/main/java/org/jboss/jetty/JettyDeployer.java
+Copyright: 2006, Mort Bay Consulting Pty. Ltd.
+License: LGPL-2
+
+Files: contrib/jetty-ant/src/main/java/org/mortbay/jetty/ant/*
+Copyright: 2006-2007, Sabre Holdings
+License: Apache-2.0
+
+Files: examples/test-webapp/src/main/webapp/WEB-INF/tags/panel.tag
+Copyright: 2002, The Apache Software Foundation
+License: Apache-2.0
+
+Files: examples/test-webapp/src/test/java/com/acme/DispatchServletTest.java
+Copyright: 2009, Webtide LLC
+License: Apache-2.0
+
+Files: extras/xbean/*
+Copyright: 2005-2006, The Apache Software Foundation
+License: Apache-2.0
+
+Files: extras/gwt/src/main/java/org/mortbay/gwt/AsyncRemoteServiceServlet.java,
+  extras/gwt/src/main/java/com/google/gwt/user/server/rpc/OpenRemoteServiceServlet.java
+Copyright: 2006, Google Inc
+Copyright: 2006, Craig Day <craig at alderaan.com.au>
+License: Apache-2.0
+
+Files: modules/jetty/src/main/java/org/mortbay/jetty/security/UnixCrypt.java
+Copyright: 1996, Aki Yoshida,
+Copyright: 2001, Iris Van den Broeke, Daniel Deville.
+License: other
+ Permission to use, copy, modify and distribute this software
+ for non-commercial or commercial purposes and without fee is
+ hereby granted provided that this copyright notice appears in
+ all copies.
+
+Files: modules/jetty/src/test/java/org/mortbay/jetty/servlet/SessionManagerTest.java,
+  modules/util/src/main/java/org/mortbay/servlet/ThrottlingFilter.java
+Copyright: 2006, Tim Vernum
+License: Apache-2.0
+
+Files: modules/jetty/src/main/java/org/mortbay/jetty/security/PKCS12Import.java
+Copyright: 1999, Jason Gilbert
+License: Apache-2.0
+
+Files: modules/jetty/src/main/java/org/mortbay/jetty/security/HTAccessHandler.java
+Copyright: 2001, Deville Daniel
+License: other
+ Permission to use, copy, modify and distribute this software
+ for non-commercial or commercial purposes and without fee is
+ hereby granted provided that this copyright notice appears in
+ all copies.
+
+Files: debian/*
+Copyright: 2003, Philipp Meier <meier at meisterbohne.de>
+Copyright: 2009, Ludovic Claude <ludovic.claude at laposte.net>
+Copyright: 2009, David Yu <david.yu.ftw at gmail.com>
+License: Apache-2.0
+
+License: Apache-2.0
+  On Debian GNU/Linux system you can find the complete text of the
+  Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'.
+
+License: LGPL-2
+  On Debian GNU/Linux system you can find the complete text of the
+  LGPL 2 license in '/usr/share/common-licenses/LGPL-2'.

Added: trunk/jetty6/debian/jetty-extra.conf
===================================================================
--- trunk/jetty6/debian/jetty-extra.conf	                        (rev 0)
+++ trunk/jetty6/debian/jetty-extra.conf	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,11 @@
+# list of jetty6 configuration and property files
+# Replace /etc/jetty6/jetty.conf with this file to use the extra features
+/etc/jetty6/jetty-logging.xml
+/etc/jetty6/jetty-jmx.xml
+/etc/jetty6/jetty.xml
+/etc/jetty6/jetty-shared-webapps.xml
+# not available yet - /etc/jetty6/jetty-plus.xml
+/etc/jetty6/jetty-ajp.xml
+/etc/jetty6/jetty-ssl.xml
+/etc/jetty6/jetty-sslengine.xml
+/etc/jetty6/jetty-stats.xml

Added: trunk/jetty6/debian/jetty-shared-webapps.xml
===================================================================
--- trunk/jetty6/debian/jetty-shared-webapps.xml	                        (rev 0)
+++ trunk/jetty6/debian/jetty-shared-webapps.xml	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
+
+<!-- =============================================================== -->
+<!-- Configure the Jetty Server to use webapps located in            -->
+<!--  /usr/share/java/webapps                                        -->
+<!--                                                                 -->
+<!-- Documentation of this file format can be found at:              -->
+<!-- http://docs.codehaus.org/display/JETTY/jetty.xml                -->
+<!--                                                                 -->
+<!-- =============================================================== -->
+
+
+<Configure id="Server" class="org.mortbay.jetty.Server">
+
+    <!-- =========================================================== -->
+    <!-- Configure the webapp deployer.                              -->
+    <!-- A webapp  deployer will deploy standard webapps discovered  -->
+    <!-- in a directory at startup, without the need for additional  -->
+    <!-- configuration files.    It does not support hot deploy or   -->
+    <!-- non standard contexts (see ContextDeployer above).          -->
+    <!--                                                             -->
+    <!-- This deployer is configured to deploy webapps from the      -->
+    <!-- /usr/share/java/webapps directory                           -->
+    <!--                                                             -->
+    <!-- Normally only one type of deployer need be used.            -->
+    <!--                                                             -->
+    <!-- =========================================================== -->
+    <Call name="addLifeCycle">
+      <Arg>
+        <New class="org.mortbay.jetty.deployer.WebAppDeployer">
+          <Set name="contexts"><Ref id="Contexts"/></Set>
+          <Set name="webAppDir">/usr/share/java/webapps</Set>
+          <Set name="parentLoaderPriority">false</Set>
+          <Set name="extract">true</Set>
+          <Set name="allowDuplicates">false</Set>
+          <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
+        </New>
+      </Arg>
+    </Call>
+
+</Configure>

Added: trunk/jetty6/debian/jetty.conf
===================================================================
--- trunk/jetty6/debian/jetty.conf	                        (rev 0)
+++ trunk/jetty6/debian/jetty.conf	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,4 @@
+# list of jetty6 configuration and property files
+/etc/jetty6/jetty-logging.xml
+/etc/jetty6/jetty.xml
+/etc/jetty6/jetty-shared-webapps.xml

Added: trunk/jetty6/debian/jetty6.cron.daily
===================================================================
--- trunk/jetty6/debian/jetty6.cron.daily	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.cron.daily	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+NAME=jetty6
+DEFAULT=/etc/default/$NAME
+
+# The following variables can be overwritten in $DEFAULT
+
+# Default for number of days to keep old log files in /var/log/jetty6/
+LOGFILE_DAYS=14
+
+# End of variables that can be overwritten in $DEFAULT
+
+# overwrite settings from default file
+if [ -f "$DEFAULT" ]; then
+	. "$DEFAULT"
+fi
+
+if [ -d /var/log/$NAME ]; then
+	find /var/log/$NAME/ -name \*.log -mtime +$LOGFILE_DAYS -print0 \
+		| xargs --no-run-if-empty -0 rm --
+fi

Added: trunk/jetty6/debian/jetty6.default
===================================================================
--- trunk/jetty6/debian/jetty6.default	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.default	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,47 @@
+# Defaults for jetty6 see /etc/init.d/jetty6 for more
+
+# change to 0 to allow Jetty6 to start
+NO_START=1 
+
+# change to 'no' or uncomment to use the default setting in /etc/default/rcS 
+VERBOSE=yes
+
+# Run Jetty6 as this user ID (default: jetty6)
+# Set this to an empty string to prevent Jetty6 from starting automatically
+#JETTY6_USER=jetty6
+
+# Listen to connections from this network host (leave empty to accept all connections)
+#Uncomment to restrict access to localhost
+#JETTY6_HOST=$(uname -n)
+
+# The network port used by Jetty6
+#JETTY6_PORT=8080
+
+# Timeout in seconds for the shutdown of all webapps
+#JETTY6_SHUTDOWN=30
+
+# Additional arguments to pass to Jetty6    
+JETTY6_ARGS=
+
+# Extra options to pass to the JVM         
+#JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true"
+
+# Home of Java installation.
+#JAVA_HOME=
+
+# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
+# defined in /etc/default/jetty6). Should contain a list of space separated directories.
+#JDK_DIRS="/usr/lib/jvm/default-java /usr/lib/jvm/java-6-sun"
+
+# Java compiler to use for translating JavaServer Pages (JSPs). You can use all
+# compilers that are accepted by Ant's build.compiler property.
+#JSP_COMPILER=jikes
+
+# Jetty6 uses a directory to store temporary files like unpacked webapps
+#JETTY6_TMP=/var/cache/jetty6
+
+# Jetty6 uses a config file to setup its boot classpath
+#JETTY6_START_CONFIG=/etc/jetty6/start.config
+
+# Default for number of days to keep old log files in /var/log/jetty6/
+#LOGFILE_DAYS=14

Added: trunk/jetty6/debian/jetty6.dirs
===================================================================
--- trunk/jetty6/debian/jetty6.dirs	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.dirs	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,7 @@
+etc/jetty6
+etc/jetty6/contexts
+usr/share/jetty6
+usr/share/doc/jetty6
+var/lib/jetty6/webapps
+var/log/jetty6
+var/cache/jetty6

Added: trunk/jetty6/debian/jetty6.init
===================================================================
--- trunk/jetty6/debian/jetty6.init	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.init	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,419 @@
+#!/bin/sh -e
+#
+# /etc/init.d/jetty6 -- startup script for jetty 6.1.18
+#
+# Written by Philipp Meier <meier at meisterbohne.de>
+# Modified for Jetty 6 by Ludovic Claude <ludovic.claude at laposte.net>
+#
+### BEGIN INIT INFO
+# Provides:          jetty6
+# Required-Start:    $local_fs $remote_fs $network
+# Required-Stop:     $local_fs $remote_fs $network
+# Should-Start:      $named
+# Should-Stop:       $named
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start Jetty6
+# Description:       Start Jetty6 HTTP server and servlet container.
+### END INIT INFO
+
+# Configuration files
+#
+# /etc/default/jetty6
+#   If it exists, this is read at the start of script. It may perform any 
+#   sequence of shell commands, like setting relevant environment variables.
+#
+# /etc/jetty6/jetty.conf
+#   If found, the file will be used as this script's configuration. 
+#   Each line in the file may contain:
+#     - A comment denoted by the pound (#) sign as first non-blank character.
+#     - The path to a regular file, which will be passed to jetty as a 
+#       config.xml file.
+#     - The path to a directory. Each *.xml file in the directory will be
+#       passed to jetty as a config.xml file.
+#
+#   The files will be checked for existence before being passed to jetty.
+#
+# /etc/jetty6/jetty.xml
+#   If found, used as this script's configuration file, but only if
+#   /etc/jetty6/jetty.conf was not present. See above.
+#   
+# Configuration variables (to define in /etc/default/jetty6)
+#
+# JAVA_HOME  
+#   Home of Java installation. 
+#
+# JAVA
+#   Command to invoke Java. If not set, $JAVA_HOME/bin/java will be
+#   used.
+#
+# JAVA_OPTIONS
+#   Extra options to pass to the JVM
+#
+# JETTY6_PORT
+#   Override the default port for Jetty servers. If not set then 8080
+#   will be used. The java system property "jetty.port" will be set to 
+#   this value for use in configure.xml files. For example, the following 
+#   idiom is widely used in the demo config files to respect this property 
+#   in Listener configuration elements:
+#
+#    <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
+#
+# JETTY6_ARGS
+#   The default arguments to pass to jetty.
+#
+# JETTY6_USER
+#   if set, then used as a username to run the server as
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+NAME=jetty6
+DESC="Jetty6 servlet engine"
+JETTY6_HOME=/usr/share/$NAME
+LOGDIR="/var/log/jetty6"
+START_JAR="$JETTY6_HOME/start.jar"
+START_DAEMON_JAR="$JETTY6_HOME/start-daemon.jar"
+DEFAULT=/etc/default/$NAME
+DAEMON=/usr/bin/jsvc
+JVM_TMP=/tmp/jetty6-temp
+
+if [ `id -u` -ne 0 ]; then
+	echo "You need root privileges to run this script"
+	exit 1
+fi
+
+# Make sure jetty is started with system locale
+if [ -r /etc/default/locale ]; then
+	. /etc/default/locale
+	export LANG
+fi
+
+. /lib/lsb/init-functions
+
+if [ -r /etc/default/rcS ]; then
+	. /etc/default/rcS
+fi
+
+
+# The following variables can be overwritten in /etc/default/jetty6
+
+# Whether to start jetty6 (as a daemon) or not
+NO_START=0
+
+# Run Jetty6 as this user ID (default: jetty6)
+# Set this to an empty string to prevent Jetty6 from starting automatically
+JETTY6_USER=jetty6
+            
+# Listen to connections from this network host (leave empty to accept all connections)
+#JETTY6_HOST=$(uname -n)
+JETTY6_HOST=
+
+# The network port used by Jetty6
+JETTY6_PORT=8080
+
+# Additional arguments to pass to Jetty6    
+JETTY6_ARGS=
+
+# Extra options to pass to the JVM         
+# Set java.awt.headless=true if JAVA_OPTIONS is not set so the
+# Xalan XSL transformer can work without X11 display on JDK 1.4+
+# It also sets the maximum heap size to 256M to deal with most cases.
+JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true"
+                                           
+# The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
+# defined in /etc/default/jetty6). Should contain a list of space separated directories.
+JDK_DIRS="
+	  /usr/lib/jvm/default-java \
+	  /usr/lib/jvm/java-6-sun \
+	  /usr/lib/jvm/java-6-openjdk \
+	  /usr/lib/jvm/java-1.5.0-sun \
+	  /usr/lib/jvm/java-gcj \
+	  /usr/lib/j2sdk1.6-sun \
+	  /usr/lib/j2sdk1.5-sun \
+	  /usr/lib/j2sdk1.5-ibm \
+	  /usr/lib/j2sdk1.4-sun \
+	  /usr/lib/j2sdk1.4 \
+	  /usr/lib/j2se/1.4 \
+	  /usr/lib/kaffe/ \
+	 "
+
+# Timeout in seconds for the shutdown of all webapps
+JETTY6_SHUTDOWN=30
+
+# Jetty6 uses a directory to store temporary files like unpacked webapps
+JETTY6_TMP=/var/cache/jetty6
+
+# Jetty6 uses a config file to setup its boot classpath
+JETTY6_START_CONFIG=/etc/jetty6/start.config
+
+# End of variables that can be overwritten in /etc/default/jetty6
+                                                                                
+# overwrite settings from default file
+if [ -f "$DEFAULT" ]; then
+	. "$DEFAULT"
+fi
+
+# Check whether jetty6 is still installed (it might not be if this package was
+# removed and not purged)
+if [ ! -r "$START_JAR" ]; then
+	log_failure_msg "$NAME is not installed"
+	exit 1
+fi
+
+[ -f "$DAEMON" ] || exit 0
+
+# Check whether startup has been disabled
+if [ "$NO_START" != "0" -a "$1" != "stop" ]; then 
+	[ "$VERBOSE" != "no" ] && log_failure_msg "Not starting jetty6 - edit /etc/default/jetty6 and change NO_START to be 0 (or comment it out).";
+	exit 0
+fi
+
+if [ -z "$JETTY6_USER" ]; then
+	log_failure_msg "Not starting/stopping $DESC as configured"
+	log_failure_msg "(JETTY6_USER is empty in /etc/default/jetty6)."
+	exit 0
+fi
+
+# Look for the right JVM to use
+for jdir in $JDK_DIRS; do
+	if [ -d "$jdir" -a -z "${JAVA_HOME}" ]; then
+		JAVA_HOME="$jdir"
+	fi
+done
+export JAVA_HOME
+
+export JAVA="$JAVA_HOME/bin/java"
+
+JAVA_OPTIONS="$JAVA_OPTIONS -Djava.io.tmpdir=$JETTY6_TMP \
+  -Djava.library.path=/usr/lib -DSTART=$JETTY6_START_CONFIG \
+  -Djetty.home=$JETTY6_HOME -Djetty.logs=$LOGDIR \
+  -Djetty.host=$JETTY6_HOST -Djetty.port=$JETTY6_PORT"
+
+# Set the JSP compiler if set in the jetty6.default file
+if [ -n "$JSP_COMPILER" ]; then
+	JAVA_OPTS="$JAVA_OPTS -Dbuild.compiler=$JSP_COMPILER"
+fi
+
+export JAVA_OPTIONS
+                                                                                
+# Define other required variables
+PIDFILE="/var/run/$NAME.pid"
+WEBAPPDIR="$JETTY6_HOME/webapps"
+BOOTSTRAP_CLASS=org.mortbay.jetty.start.daemon.Bootstrap
+JSVC_CLASSPATH="/usr/share/java/commons-daemon.jar:$START_JAR:$START_DAEMON_JAR:$JAVA_HOME/lib/tools.jar"
+ROTATELOGS=/usr/sbin/rotatelogs
+HOSTNAME=$(uname -n)
+
+##################################################
+# Check for JAVA_HOME
+##################################################
+if [ -z "$JAVA_HOME" ]; then
+	log_failure_msg "Could not start $DESC because no Java Development Kit"
+	log_failure_msg "(JDK) was found. Please download and install JDK 1.4 or higher and set"
+	log_failure_msg "JAVA_HOME in /etc/default/jetty6 to the JDK's installation directory."
+	exit 0
+fi
+
+CONFIG_LINES=$(cat /etc/jetty6/jetty.conf | grep -v "^[:space:]*#" | tr "\n" " ")
+
+##################################################
+# Get the list of config.xml files from jetty.conf
+##################################################
+if [ ! -z "${CONFIG_LINES}" ] 
+then
+  for CONF in ${CONFIG_LINES} 
+  do
+    if [ ! -r "$CONF" ] 
+    then
+      log_warning_msg "WARNING: Cannot read '$CONF' specified in '$JETTY6_CONF'" 
+    elif [ -f "$CONF" ] 
+    then
+      # assume it's a configure.xml file
+      CONFIGS="$CONFIGS $CONF" 
+    elif [ -d "$CONF" ] 
+    then
+      # assume it's a directory with configure.xml files
+      # for example: /etc/jetty.d/
+      # sort the files before adding them to the list of CONFIGS
+      XML_FILES=`ls ${CONF}/*.xml | sort | tr "\n" " "` 
+      for FILE in ${XML_FILES} 
+      do
+         if [ -r "$FILE" ] && [ -f "$FILE" ] 
+         then
+            CONFIGS="$CONFIGS $FILE" 
+         else
+           log_warning_msg "WARNING: Cannot read '$FILE' specified in '$JETTY6_CONF'" 
+         fi
+      done
+    else
+      log_warning_msg "WARNING: Don''t know what to do with '$CONF' specified in '$JETTY6_CONF'" 
+    fi
+  done
+fi
+
+#####################################################
+# Run the standard server if there's nothing else to run
+#####################################################
+if [ -z "$CONFIGS" ]
+then
+	CONFIGS="/etc/jetty6/jetty-logging.xml /etc/jetty6/jetty.xml"
+fi
+
+##################################################
+# Do the action
+##################################################
+case "$1" in
+  start)
+	log_daemon_msg "Starting $DESC." "$NAME"
+	if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \
+	                --user "$JETTY6_USER" --startas "$JAVA" > /dev/null; then 
+
+	    if [ -f $PIDFILE ]
+		then
+			log_warning_msg "$PIDFILE exists, but jetty6 was not running. Ignoring $PIDFILE"
+	    fi
+
+	    if [ \! -e "$LOGDIR/out.log" ]; then
+			log_progress_msg "Create log file"
+			sudo -u $JETTY6_USER touch "$LOGDIR/out.log"
+			chown $JETTY6_USER:adm "$LOGDIR/out.log"
+		fi
+		log_progress_msg "Rotate logs"
+		sudo -b -u $JETTY6_USER $ROTATELOGS "$LOGDIR/out.log" 86400 \
+			< "$LOGDIR/out.log"
+
+		# Remove / recreate JETTY6_TMP directory
+		rm -rf "$JETTY6_TMP"
+		mkdir "$JETTY6_TMP" || {
+			log_failure_msg "Could not create $DESC temporary directory at $JETTY6_TMP"
+			exit 1
+		}
+		chown $JETTY6_USER "$JETTY6_TMP"
+
+		# Remove / recreate JVM_TMP directory
+		rm -rf "$JVM_TMP"
+		mkdir "$JVM_TMP" || {
+			log_failure_msg "Could not create JVM temporary directory at $JVM_TMP"
+			exit 1
+		}
+		chown $JETTY6_USER "$JVM_TMP"
+		cd "$JVM_TMP"
+
+		$DAEMON -user "$JETTY6_USER" -cp "$JSVC_CLASSPATH" \
+		    -outfile $LOGDIR/out.log -errfile $LOGDIR/out.log \
+		    -pidfile "$PIDFILE" $JAVA_OPTIONS $BOOTSTRAP_CLASS \
+		    $JETTY6_ARGS $CONFIGS
+
+		log_daemon_msg "$DESC started, reachable on http://$HOSTNAME:$JETTY6_PORT/." "$NAME"
+
+		sleep 5
+		if start-stop-daemon --test --start --pidfile "$PIDFILE" \
+			--user $JETTY6_USER --startas "$JAVA" >/dev/null; then
+			log_end_msg 1
+		else
+			log_end_msg 0
+		fi
+
+	else
+		log_warning_msg "(already running)."
+		log_end_msg 0
+		exit 1
+	fi
+	;;
+
+  stop)
+	log_daemon_msg "Stopping $DESC (was reachable on http://$HOSTNAME:$JETTY6_PORT/)." "$NAME"
+
+	if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \
+		--user "$JETTY6_USER" --startas "$JAVA" > /dev/null; then
+		if [ -x "$PIDFILE" ]; then
+			log_warning_msg "(not running but $PIDFILE exists)."
+		else
+			log_warning_msg "(not running)."
+		fi
+	else
+		start-stop-daemon --quiet --stop \
+			--pidfile "$PIDFILE" --user "$JETTY6_USER" \
+			--startas "$JAVA" > /dev/null
+		while ! start-stop-daemon --quiet --test --start \
+			  --pidfile "$PIDFILE" --user "$JETTY6_USER" \
+			  --startas "$JAVA" > /dev/null; do 
+			sleep 1
+			log_progress_msg "."
+			JETTY6_SHUTDOWN=`expr $JETTY6_SHUTDOWN - 1` || true
+			if [ $JETTY6_SHUTDOWN -ge 0 ]; then
+				start-stop-daemon --oknodo --quiet --stop \
+					--pidfile "$PIDFILE" --user "$JETTY6_USER" \
+					--startas "$JAVA"
+			else
+				log_progress_msg " (killing) "
+				start-stop-daemon --stop --signal 9 --oknodo \
+					--quiet --pidfile "$PIDFILE" \
+					--user "$JETTY6_USER"
+			fi
+		done
+		rm -f "$PIDFILE"
+		rm -rf "$JVM_TMP"
+		rm -rf "$JETTY6_TMP/*"
+		log_daemon_msg "$DESC stopped." "$NAME"
+		log_end_msg 0
+	fi
+	;;
+
+  status)
+	if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \
+		--user "$JETTY6_USER" --startas "$JAVA" > /dev/null; then
+
+		if [ -f "$PIDFILE" ]; then
+		    log_success_msg "$DESC is not running, but pid file exists."
+			exit 1
+		else
+		    log_success_msg "$DESC is not running."
+			exit 3
+		fi
+	else
+		log_success_msg "$DESC is running with pid `cat $PIDFILE`, and is reachable on http://$HOSTNAME:$JETTY6_PORT/"
+	fi
+	;;
+
+  restart|force-reload)
+	if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \
+		--user "$JETTY6_USER" --startas "$JAVA" > /dev/null; then
+		$0 stop $*
+		sleep 1
+	fi
+	$0 start $*
+	;;
+
+  try-restart)
+	if start-stop-daemon --quiet --test --start --pidfile "$PIDFILE" \
+		--user "$JETTY6_USER" --startas "$JAVA" > /dev/null; then
+		$0 start $*
+	fi
+	;;
+
+  check)
+	log_success_msg "Checking arguments for Jetty6: "
+	log_success_msg ""
+	log_success_msg "PIDFILE        =  $PIDFILE"
+	log_success_msg "JAVA_OPTIONS   =  $JAVA_OPTIONS"
+	log_success_msg "JAVA           =  $JAVA"
+	log_success_msg "JETTY6_USER    =  $JETTY6_USER"
+	log_success_msg "JETTY6_HOST    =  $JETTY6_HOST"
+	log_success_msg "JETTY6_PORT    =  $JETTY6_PORT"
+	log_success_msg "ARGUMENTS      =  $ARGUMENTS"
+        
+	if [ -f $PIDFILE ]
+	then
+		log_success_msg "$DESC is running with pid `cat $PIDFILE`, and is reachable on http://$HOSTNAME:$JETTY6_PORT/"
+		exit 0
+	fi
+	exit 1
+	;;
+
+  *)
+	log_success_msg "Usage: $0 {start|stop|restart|force-reload|try-restart|status|check}"
+	exit 1
+	;;
+esac
+
+exit 0

Added: trunk/jetty6/debian/jetty6.install
===================================================================
--- trunk/jetty6/debian/jetty6.install	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.install	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,14 @@
+etc/*                   etc/jetty6
+debian/jetty-shared-webapps.xml etc/jetty6
+webapps/README.TXT      var/lib/jetty6/webapps
+debian/root-webapp/*    var/lib/jetty6/webapps/root
+examples/test-webapp/src/main/webapp/jetty_banner.gif var/lib/jetty6/webapps/root
+contexts                etc/jetty6
+resources               usr/share/jetty6
+README.txt              usr/share/doc/jetty6
+VERSION.txt             usr/share/doc/jetty6
+LICENSES/cla-*          usr/share/doc/jetty6/LICENSES
+LICENSES/ccla-*         usr/share/doc/jetty6/LICENSES
+LICENSES/contrib        usr/share/doc/jetty6/LICENSES
+LICENSES/NOTICE.txt     usr/share/doc/jetty6/LICENSES
+debian/README.Debian    usr/share/doc/jetty6

Added: trunk/jetty6/debian/jetty6.links
===================================================================
--- trunk/jetty6/debian/jetty6.links	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.links	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,5 @@
+var/lib/jetty6/webapps  usr/share/jetty6/webapps
+var/log/jetty6          usr/share/jetty6/logs
+etc/jetty6              usr/share/jetty6/etc
+etc/jetty6/contexts     usr/share/jetty6/contexts
+usr/share/doc/libjetty6-java/api usr/share/jetty6/javadoc

Added: trunk/jetty6/debian/jetty6.postinst
===================================================================
--- trunk/jetty6/debian/jetty6.postinst	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.postinst	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+case "$1" in
+    configure)
+	if ! id jetty6 > /dev/null 2>&1 ; then
+	    adduser --system --home /usr/share/jetty6 --no-create-home \
+		--group --disabled-password --shell /bin/false \
+		jetty6
+	fi
+	chown -R jetty6:adm /var/cache/jetty6 /var/log/jetty6 /var/lib/jetty6
+	chmod 750 /var/log/jetty6
+	chown -Rh jetty6:adm /etc/jetty6/*
+	chmod 640 /etc/jetty6/realm.properties
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+	echo "$0 called with unknown argument \`$1'" >&2
+	exit 1
+    ;;
+esac
+
+#DEBHELPER#

Added: trunk/jetty6/debian/jetty6.postrm
===================================================================
--- trunk/jetty6/debian/jetty6.postrm	                        (rev 0)
+++ trunk/jetty6/debian/jetty6.postrm	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,49 @@
+#!/bin/sh -e
+
+#DEBHELPER#
+
+# Remove cached files
+rm -rf /var/cache/jetty6/*
+rm -rf /tmp/jetty6-temp/*
+
+case "$1" in
+    remove)
+        # Remove ROOT webapp if not modified
+        RWLOC="/var/lib/jetty6/webapps/root"
+        RWFILES="$RWLOC/index.html $RWLOC/jetty_banner.gif"
+        if [ "`(cat $RWFILES | md5sum -) 2>/dev/null | cut -d ' ' -f 1`" \
+                            = "12471c4b3020defb7ebd30ef84c0f9dd" ] ; then
+            rm $RWFILES
+            rmdir --ignore-fail-on-non-empty \
+                /var/lib/jetty6/webapps/root \
+                /var/lib/jetty6/webapps \
+                /var/lib/jetty6 || true
+        fi
+        if [ -d "/var/cache/jetty6" ] ; then
+            rm -rf /var/cache/jetty6
+        fi
+        if [ -d "/tmp/jetty6-temp" ] ; then
+            rm -rf /tmp/jetty6-temp
+        fi
+    ;;
+
+    purge)
+        # Remove user/group and log files (don't remove everything under
+        # /var/lib/jetty6 because there might be user-installed webapps)
+        deluser jetty6 || true
+        rm -rf /var/log/jetty6 /tmp/jetty6-temp
+        if [ -d "/var/lib/jetty6" ] ; then
+            rmdir --ignore-fail-on-non-empty /var/lib/jetty6 || true
+        fi
+        rmdir --ignore-fail-on-non-empty /etc/jetty6/contexts /etc/jetty6 || true
+    ;;
+
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        # Nothing to do here
+    ;;
+
+    *)
+        echo "$0 called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac

Added: trunk/jetty6/debian/libjetty6-extra-java.dirs
===================================================================
--- trunk/jetty6/debian/libjetty6-extra-java.dirs	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-extra-java.dirs	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,5 @@
+usr/share/jetty6/lib/ext
+usr/share/jetty6/lib/management
+usr/share/jetty6/lib/management/mx4j
+usr/share/jetty6/lib/naming
+usr/share/jetty6/lib/jsp-2.1

Added: trunk/jetty6/debian/libjetty6-extra-java.links
===================================================================
--- trunk/jetty6/debian/libjetty6-extra-java.links	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-extra-java.links	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,16 @@
+usr/share/java/mx4j.jar            usr/share/jetty6/lib/management/mx4j/mx4j.jar
+usr/share/java/mx4j-tools.jar      usr/share/jetty6/lib/management/mx4j/mx4j-tools.jar
+usr/share/java/activation.jar      usr/share/jetty6/lib/naming/activation.jar
+usr/share/java/gnumail.jar         usr/share/jetty6/lib/naming/mail.jar
+usr/share/java/ant.jar             usr/share/jetty6/lib/jsp-2.1/ant.jar
+usr/share/java/ant-launcher.jar    usr/share/jetty6/lib/jsp-2.1/ant-launcher.jar
+usr/share/java/jasper.jar          usr/share/jetty6/lib/jsp-2.1/jasper.jar
+usr/share/java/jsp-api-2.1.jar     usr/share/jetty6/lib/jsp-2.1/jsp-api.jar
+usr/share/java/el-api-2.1.jar      usr/share/jetty6/lib/jsp-2.1/el-api.jar
+usr/share/java/jasper-el.jar       usr/share/jetty6/lib/jsp-2.1/commons-el.jar
+usr/share/java/tomcat-juli.jar     usr/share/jetty6/lib/jsp-2.1/tomcat-juli.jar
+usr/share/java/jcl-over-slf4j.jar  usr/share/jetty6/lib/jsp-2.1/jcl-over-slf4j.jar
+usr/share/java/slf4j-api.jar       usr/share/jetty6/lib/jsp-2.1/slf4j-api.jar
+usr/share/java/slf4j-simple.jar    usr/share/jetty6/lib/jsp-2.1/slf4j-simple.jar
+usr/share/java/xercesImpl.jar      usr/share/jetty6/lib/jsp-2.1/xercesImpl.jar
+usr/share/java/xmlParserAPIs.jar   usr/share/jetty6/lib/jsp-2.1/xmlParserAPIs.jar

Added: trunk/jetty6/debian/libjetty6-extra-java.poms
===================================================================
--- trunk/jetty6/debian/libjetty6-extra-java.poms	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-extra-java.poms	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,11 @@
+modules/html/pom.xml
+modules/management/pom.xml
+modules/naming/pom.xml
+extras/servlet-tester/pom.xml
+extras/ajp/pom.xml
+extras/threadpool/pom.xml
+extras/client/pom.xml
+contrib/jetty-rewrite-handler/pom.xml
+extras/setuid/pom.xml
+extras/setuid/modules/java/pom.xml
+

Added: trunk/jetty6/debian/libjetty6-java-doc.doc-base
===================================================================
--- trunk/jetty6/debian/libjetty6-java-doc.doc-base	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-java-doc.doc-base	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,9 @@
+Document: libjetty6-java
+Title: API Javadoc for jetty6
+Author: Mortbay Consulting
+Abstract: This is the API Javadoc provided by Jetty.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjetty6-java/api/index.html
+Files: /usr/share/doc/libjetty6-java/api/*

Added: trunk/jetty6/debian/libjetty6-java-doc.install
===================================================================
--- trunk/jetty6/debian/libjetty6-java-doc.install	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-java-doc.install	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1 @@
+api usr/share/doc/libjetty6-java

Added: trunk/jetty6/debian/libjetty6-java.dirs
===================================================================
--- trunk/jetty6/debian/libjetty6-java.dirs	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-java.dirs	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,4 @@
+usr/share/jetty6
+usr/share/jetty6/lib
+usr/share/jetty6/lib/jre1.5
+usr/share/jetty6/lib/ext

Added: trunk/jetty6/debian/libjetty6-java.links
===================================================================
--- trunk/jetty6/debian/libjetty6-java.links	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-java.links	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,2 @@
+usr/share/java/servlet-api-2.5.jar  usr/share/jetty6/lib/servlet-api-2.5.jar
+

Added: trunk/jetty6/debian/libjetty6-java.poms
===================================================================
--- trunk/jetty6/debian/libjetty6-java.poms	                        (rev 0)
+++ trunk/jetty6/debian/libjetty6-java.poms	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,8 @@
+pom.xml --no-parent
+modules/util/pom.xml
+modules/util5/pom.xml
+modules/jetty/pom.xml
+extras/sslengine/pom.xml
+modules/start/pom.xml
+contrib/start-daemon/pom.xml
+

Added: trunk/jetty6/debian/maven.rules
===================================================================
--- trunk/jetty6/debian/maven.rules	                        (rev 0)
+++ trunk/jetty6/debian/maven.rules	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,4 @@
+junit junit jar s/3\..*/3.x/
+s/ant/org.apache.ant/ * * s/.*/debian/
+org.mortbay.jetty * * s/6\..*/6.x/
+s/org.mortbay.jetty/javax.servlet/ servlet-api jar s/.*/2.5/

Added: trunk/jetty6/debian/module.xml
===================================================================
--- trunk/jetty6/debian/module.xml	                        (rev 0)
+++ trunk/jetty6/debian/module.xml	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,112 @@
+<project name="jetty6 module build" basedir="." default="package">
+  <property name="jar.file" value="${module-name}-${module-version}.jar"/>
+  <property name="javac.excludes" value=""/>
+  <target name="package">
+    <delete dir="${build.dir}"/>
+    <mkdir dir="${build.dir}"/>
+    
+    <echo>generating javadoc for ${module-name}</echo>
+    <javadoc packagenames="org.mortbay.*,javax.servlet.*"
+             destdir="${javadoc.dir}"
+             author="true"
+             version="true"
+             public="false"
+             windowtitle="jetty-${module-version} API"
+             doctitle="${module-name}-${module-version}"
+             encoding="ISO-8859-1"
+             bottom="Copyright &amp;copy; 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.">
+       <classpath>
+         <path refid="classpath"/>
+       </classpath>
+       <sourcepath>
+         <pathelement path="${src.dir}"/>
+       </sourcepath>
+    </javadoc>
+    
+    <echo>compiling ${module-name}</echo>
+    <javac srcdir="${src.dir}"
+           classpathref="classpath"
+           destdir="${build.dir}"
+           deprecation="false"
+           failonerror="true"
+           debug="true"
+           source="1.5"
+           target="1.5"
+           nowarn="true"
+           excludes="${javac.excludes}"
+           listfiles="true"/>
+    
+    <echo>generating ${jar.file}</echo>
+    <available file="${rsrc.dir}" type="dir" property="rsrc.dir.exists"/>
+    <antcall target="generate-jar-with-manifest"/>
+    <antcall target="generate-jar"/>
+    
+    <echo>copying ${jar.file} to ${module-libdir}</echo>
+    <copy file="${target.dir}/${jar.file}" todir="${module-libdir}"/>
+    
+    <available file="${config.dir}" type="dir" property="config.dir.exists"/>
+    <antcall target="copy-to-etc"/>
+  </target>
+  
+  <target name="generate-jar" unless="jar.main.class">
+    <antcall target="jar-with-resources"/>
+    <antcall target="jar"/>
+  </target>
+  
+  <target name="generate-jar-with-manifest" if="jar.main.class">
+    <antcall target="jar-with-manifest-and-resources"/>
+    <antcall target="jar-with-manifest"/>
+  </target>
+  
+  <target name="jar" unless="rsrc.dir.exists">
+    <jar destfile="${target.dir}/${jar.file}">
+      <fileset dir="${build.dir}">
+        <include name="**/*"/>
+      </fileset>
+    </jar>
+  </target>
+  
+  <target name="jar-with-resources" if="rsrc.dir.exists">
+    <jar destfile="${target.dir}/${jar.file}">
+      <fileset dir="${build.dir}">
+        <include name="**/*"/>
+      </fileset>
+      <fileset dir="${rsrc.dir}">
+        <include name="**/*"/>
+      </fileset>
+    </jar>
+  </target>
+
+  <target name="jar-with-manifest" unless="rsrc.dir.exists">
+    <jar destfile="${target.dir}/${jar.file}">
+      <fileset dir="${build.dir}">
+        <include name="**/*"/>
+      </fileset>
+      <manifest>    
+        <attribute name="Main-Class" value="${jar.main.class}"/>
+      </manifest>
+    </jar>
+  </target>
+  
+  <target name="jar-with-manifest-and-resources" if="rsrc.dir.exists">
+    <jar destfile="${target.dir}/${jar.file}">
+      <fileset dir="${build.dir}">
+        <include name="**/*"/>
+      </fileset>
+      <fileset dir="${rsrc.dir}">
+        <include name="**/*"/>
+      </fileset>
+      <manifest>    
+        <attribute name="Main-Class" value="${jar.main.class}"/>
+      </manifest>
+    </jar>
+  </target>
+  
+  <target name="copy-to-etc" if="config.dir.exists">
+    <echo>copying ${config.dir} to ${etc.dir} from ${module-name}</echo>
+    <copy todir="${etc.dir}">
+      <fileset dir="${config.dir}" excludes="**/*.svn"/>
+    </copy>
+  </target>
+</project>
+

Added: trunk/jetty6/debian/orig-tar.sh
===================================================================
--- trunk/jetty6/debian/orig-tar.sh	                        (rev 0)
+++ trunk/jetty6/debian/orig-tar.sh	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+TAR=../jetty6_$2.orig.tar.gz
+DIR=jetty6-$2
+TAG=$(echo jetty-$2 | sed 's,~alpha,-alpha-,')
+
+svn export http://svn.codehaus.org/jetty/jetty/tags/$TAG/ $DIR
+rm -r $DIR/modules/jsp-api-2.0
+rm -r $DIR/extras/win32service
+rm -r $DIR/contrib/cometd
+rm -r $DIR/contrib/rpms
+rm -r $DIR/contrib/debian
+rm -r $DIR/contrib/grizzly
+rm -r $DIR/contrib/maven-beanshell-plugin
+
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir
+  echo "moved $TAR to $origDir"
+fi
+

Added: trunk/jetty6/debian/root-webapp/index.html
===================================================================
--- trunk/jetty6/debian/root-webapp/index.html	                        (rev 0)
+++ trunk/jetty6/debian/root-webapp/index.html	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,25 @@
+<HTML>
+  <HEAD>
+    <TITLE>Welcome to Jetty 6 on Debian</TITLE>
+    <META http-equiv="Pragma" content="no-cache">
+    <META http-equiv="Cache-Control" content="no-cache,no-store">
+  </HEAD>
+<BODY>
+<A HREF="http://jetty.mortbay.org"><IMG SRC="jetty_banner.gif"></A>
+<h1>Welcome to Jetty 6 on Debian</h1>
+
+<P align="justify">
+<b>Jetty</b> is a 100% Java HTTP Server and Servlet Container.  This means
+that you do not need to configure and run a seperate web server (like Apache)
+in order to use java, servlets and JSPs to generate dynamic content. Jetty
+is a fully featured web server for static and dynamic content. Unlike separate
+server/container solutions, this means that your web server and web application
+run in the same process, without interconnection overheads and complications.
+Furthermore, as a pure java component, Jetty can be simply included in your
+application for demonstration, distribution or deployment. Jetty is available
+on all Java supported platforms. &nbsp;</p>
+
+<P align="justify">
+You can also visit Jetty's <a href="javadoc/">Javadoc</a>
+</BODY>
+</HTML>

Added: trunk/jetty6/debian/rules
===================================================================
--- trunk/jetty6/debian/rules	                        (rev 0)
+++ trunk/jetty6/debian/rules	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,60 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME            := /usr/lib/jvm/java-6-openjdk
+ANT_HOME             := /usr/share/ant
+DEB_JARS             := servlet-api-2.5 slf4j-api mx4j mx4j-tools gnumail activation commons-daemon
+DEB_ANT_BUILD_TARGET := package
+DEB_ANT_BUILDFILE    := ./debian/build.xml
+DEB_ANT_ARGS         := -DVERSION=$(VERSION) -Dbuild.sysclasspath=last
+#API_DOCS             := javadoc/
+
+binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6-util modules/util/pom.xml lib/jetty-util-$(VERSION).jar /usr/share/jetty6/lib/jetty-util.jar
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6-util5 modules/util5/pom.xml lib/util5/jetty-util5-$(VERSION).jar /usr/share/jetty6/lib/usr/share/java/servlet-api-2.5.jar  usr/share/jetty6/lib/jre1.5/jetty-util5.jar
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6 modules/jetty/pom.xml lib/jetty-$(VERSION).jar /usr/share/jetty6/lib/jetty.jar
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6-sslengine extras/sslengine/pom.xml lib/sslengine/jetty-sslengine-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-sslengine.jar
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6-start modules/start/pom.xml start.jar /usr/share/jetty6/start.jar
+	mh_installjar -plib$(PACKAGE)-java -l --usj-name=jetty6-start-daemon contrib/start-daemon/pom.xml start-daemon.jar /usr/share/jetty6/start-daemon.jar
+
+binary-post-install/lib$(PACKAGE)-extra-java::
+	mh_installpoms -plib$(PACKAGE)-extra-java
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-html modules/html/pom.xml lib/ext/jetty-html-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-html.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-management modules/management/pom.xml lib/management/jetty-management-$(VERSION).jar /usr/share/jetty6/lib/management/jetty-management.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-naming modules/naming/pom.xml lib/naming/jetty-naming-$(VERSION).jar /usr/share/jetty6/lib/naming/jetty-naming.jar
+	#mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-plus modules/plus/pom.xml lib/plus/jetty-plus-$(VERSION).jar /usr/share/jetty6/lib/plus/jetty-plus.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-servlet-tester extras/servlet-tester/pom.xml lib/ext/jetty-servlet-tester-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-servlet-tester.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-ajp extras/ajp/pom.xml lib/ext/jetty-ajp-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-ajp.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-java5-threadpool extras/threadpool/pom.xml lib/ext/jetty-java5-threadpool-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-java5-threadpool.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-client extras/client/pom.xml lib/ext/jetty-client-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-client.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-rewrite-handler contrib/jetty-rewrite-handler/pom.xml lib/ext/jetty-rewrite-handler-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-rewrite-handler.jar
+	mh_installjar -plib$(PACKAGE)-extra-java -l --usj-name=jetty6-setuid extras/setuid/modules/java/pom.xml lib/ext/jetty-setuid-$(VERSION).jar /usr/share/jetty6/lib/ext/jetty-setuid.jar
+
+extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.c:
+	cd extras/setuid && install -D modules/native/src/main/native/org_mortbay_setuid_SetUID.c modules/native/target/generated/org_mortbay_setuid_SetUID.c
+
+extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.h: extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.c
+	cd extras/setuid && javah -d modules/native/target/generated -classpath ../../lib/ext/jetty-setuid-$(VERSION).jar org.mortbay.setuid.SetUID
+
+lib/ext/libsetuid.so: extras/setuid/modules/native/target/generated/org_mortbay_setuid_SetUID.h
+	cd extras/setuid && gcc -I$(JAVA_HOME)/include/ -I$(JAVA_HOME)/include/linux/  \
+		-shared modules/native/target/generated/org_mortbay_setuid_SetUID.c -fPIC -O \
+		-o ../../lib/ext/libsetuid.so
+
+build/lib$(PACKAGE)-extra:: lib/ext/libsetuid.so
+
+binary-post-install/lib$(PACKAGE)-extra::
+	dh_install -plib$(PACKAGE)-extra --sourcedir=lib/ext libsetuid.so /usr/lib/jetty6
+	dh_link -plib$(PACKAGE)-extra /usr/lib/jetty6/libsetuid.so /usr/share/jetty6/lib/ext/libsetuid.so
+
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+
+# No documentation released yet.
+#binary-post-install/$(PACKAGE)-doc::
+


Property changes on: trunk/jetty6/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/jetty6/debian/start.config
===================================================================
--- trunk/jetty6/debian/start.config	                        (rev 0)
+++ trunk/jetty6/debian/start.config	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,62 @@
+# This file controls what file are to be put on classpath or command line.
+#
+# Format is as follows:
+# Each line contains entry for one JAR file.
+# Format of line:
+#
+#  SUBJECT [ [!] CONDITION [AND|OR] ]*
+# 
+# where SUBJECT: 
+#   ends with ".class" is the Main class to run.
+#   ends with ".xml" is a configuration file for the command line
+#   ends with "/" is a directory from which to add all jar and zip files. 
+#   ends with "/*" is a directory from which to add all unconsidered jar and zip files.
+#   ends with "/**" is a directory from which to recursively add all unconsidered jar and zip files.
+#   Containing = are used to assign system properties.
+#   all other subjects are treated as files to be added to the classpath.
+#
+# Subjects may include system properties with $(propertyname) syntax. 
+#
+# Files starting with "/" are considered absolute, all others are relative to
+# the home directory.
+#
+# CONDITION is one of:
+#   always
+#   never
+#   available classname        # true if class on classpath
+#   property name              # true of set
+#   java OPERATOR version      # java version compared to literal
+#   nargs OPERATOR number      # number of command line args compared to literal
+#   OPERATOR := one of "<",">","<=",">=","==","!="
+#
+# CONDITIONS can be combined with AND OR or !, with AND being the assume
+# operator for a list of CONDITIONS.
+# Classpath operations are evaluated on the fly, so once a class or jar is
+# added to the classpath, subsequent available conditions will see that class.
+#
+
+$(jetty.class.path)                              always
+$(jetty.lib)/**                                  exists $(jetty.lib)
+
+jetty.home=/usr/share/jetty6                     always 
+
+# The main class to run
+org.mortbay.xml.XmlConfiguration.class
+$(start.class).class
+
+# The default configuration files
+$(jetty.home)/etc/jetty.xml                      nargs == 0
+
+/usr/share/java/servlet-api-2.5.jar
+/usr/share/java/slf4j-api.jar
+
+# Optional stuff for libjetty6-extra-java
+/usr/share/java/gnumail.jar
+/usr/share/java/activation.jar
+/usr/share/java/ant.jar
+
+# Set the jetty classpath
+/usr/share/jetty6/lib/**
+
+# Add a resources directory if it is there
+$(jetty.home)/resources/

Added: trunk/jetty6/debian/watch
===================================================================
--- trunk/jetty6/debian/watch	                        (rev 0)
+++ trunk/jetty6/debian/watch	2009-08-05 11:00:48 UTC (rev 9642)
@@ -0,0 +1,3 @@
+version=3
+http://svn.codehaus.org/jetty/jetty/tags/ \
+  jetty-(6.*)/ debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list