[lucene2] 29/104: Updated README.Debian for tomcat5.5

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Wed Mar 23 16:27:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

seamlik-guest pushed a commit to branch master
in repository lucene2.

commit b63e707035fa4636c6e0a436a485631f29f396fe
Author: Jan-Pascal van Best <janpascal at vanbest.org>
Date:   Wed Aug 1 20:31:54 2007 +0000

    Updated README.Debian for tomcat5.5
---
 debian/README.Debian      | 46 +++++++++++++++++++++++-----------------------
 debian/get-orig-source.sh | 13 ++++++-------
 2 files changed, 29 insertions(+), 30 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 0b26ed8..199926d 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -8,7 +8,6 @@ There are two binary packages:
   docs, and example applications
 
 Not all contrib libraries are included:
-- ant depends on jtidy, which is not (yet) in Debian
 - db/bdb-je depends on je-2.0.90 from www.sleepycat.com, not
   in Debian
 - gdata-server depends on many libraries, of which at least the 
@@ -24,14 +23,6 @@ and run the demonstration command-line applications for Lucene, see
 the following documentation and source code walkthrough:
 
  /usr/share/doc/liblucene2-java-doc/docs/demo.html
- /usr/share/doc/liblucene2-java-doc/docs/demo2.html
-
-For information on configuring the Lucene web application to be run in
-a Java(TM) web container such as Tomcat, see the following
-documentation and source code walkthrough:
-
- /usr/share/doc/liblucene2-java-doc/docs/demo3.html
- /usr/share/doc/liblucene2-java-doc/docs/demo4.html
 
 Several modifications are required if you wish to run the Lucene web
 application on a stock Debian tomcat5.5 configuration. Note that Debian's
@@ -40,20 +31,29 @@ were written.
 
 1) The Lucene web application looks for Lucene index data in
    /opt/lucene/index, although we may change this location in a 
-   future version of the Debian package. 
-
-2) You will need to add the following permissions to the
-   grant {...} section of /etc/tomcat4/policy.d/04webapps.policy.
-   Debian's default tomcat configuration
-
-// Allows luceneweb demo to work
-permission java.util.PropertyPermission "disableLuceneLocks", "read";
-permission java.util.PropertyPermission "java.io.tmpdir", "read";
-permission java.util.PropertyPermission "org.apache.lucene.*", "read";
-permission java.io.FilePermission "/opt/lucene/index", "read";
-permission java.io.FilePermission "/opt/lucene/index/*", "read";
-permission java.io.FilePermission "/var/lib/tomcat4/temp", "read,write,delete";
-permission java.io.FilePermission "/var/lib/tomcat4/temp/*", "read,write,delete";
+   future version of the Debian package. When calling IndexHTML,
+   make sure the index files are stored there.
+
+2) Install the Lucene demo application by decompressing
+   /usr/share/doc/liblucene2-java-doc/demo/luceneweb.war.gz
+   and copying the resulting luceneweb.war file to 
+   /var/lib/tomcat5.5/webapps:
+   gzip -cd /usr/share/doc/liblucene2-java-doc/demo/luceneweb.war.gz  > /var/lib/tomcat5.5/webapps/luceneweb.war 
+
+3) You will need to add a file (e.g., named 60lucenedemo.policy)
+   to /etc/tomcat5.5/policy.d/ to allow the Lucene demo web application
+   to access a number of files and settings:
+
+      // Allows luceneweb demo to work
+      grant codeBase "file:${catalina.base}/webapps/luceneweb/-" {
+	      permission java.util.PropertyPermission "disableLuceneLocks", "read";
+	      permission java.util.PropertyPermission "java.io.tmpdir", "read";
+	      permission java.util.PropertyPermission "org.apache.lucene.*", "read";
+	      permission java.io.FilePermission "/opt/lucene/index", "read,write";
+	      permission java.io.FilePermission "/opt/lucene/index/*", "read,write";
+	      permission java.io.FilePermission "/var/lib/tomcat5.5/temp", "read,write,delete";
+	      permission java.io.FilePermission "/var/lib/tomcat5.5/temp/*", "read,write,delete";
+      };
 
  -- Barry Hawkins <barryh at case.internal.alltc.org>, Fri,  5 May 2006 23:53:38 -0400
     Jan-Pascal van Best <janpascal at vanbest.org>, Thu, 12 Jul 2007 07:57:20 +0200
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index 8d9eb6c..218408d 100755
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -6,17 +6,16 @@ URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -`
 VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -`
 
 DESTDIR=$PWD/..
-PRISTINE_SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz
+SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz
 SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc
 SOURCETAR=$DESTDIR/lucene2_$VERSION.orig.tar
-SOURCETARGZ=$DESTDIR/lucene2_$VERSION.orig.tar.gz
 
 KEYURL="http://www.apache.org/dist/lucene/java/KEYS"
 KEYFILE="debian/KEYS"
 KEYRING="debian/lucene-keyring.gpg"
 
 # Download source tarball and signature file
-wget "$URL" -O $PRISTINE_SOURCEFILE
+wget "$URL" -O $SOURCEFILE
 wget "$URL.asc" -O $SIGFILE
 
 # If necessary, recreate keyring used for signing
@@ -31,20 +30,20 @@ if [ ! -r $KEYRING ]; then
 fi
 
 # Check signature
-gpgv --quiet --keyring $KEYRING $SIGFILE $PRISTINCE_SOURCEFILE
+gpgv --quiet --keyring $KEYRING $SIGFILE $SOURCEFILE
 
 echo "Check whether the archive has been signed by Michael Busch (Lucene Committer) <buschmi at apache.org>, key ID 6BD872A0"
 
 # Repackage upstream source file without the third party jars
 TEMPDIR=`mktemp -d`
 echo "Unpacking into tempdir $TEMPDIR..."
-tar xzf $PRISTINE_SOURCEFILE -C $TEMPDIR
+tar xzf $SOURCEFILE -C $TEMPDIR
 
 echo "Removing third party jars..."
 find $TEMPDIR -name \*.jar -exec rm {} \;
 
-echo "Packing new orig source tarball $SOURCEFILE..."
-rm -f $SOURCETAR $SOURCETARGZ
+echo "Packing new orig source tarball $SOURCETAR..."
+rm -f $SOURCETAR $SOURCETAR.gz
 cd $TEMPDIR
 tar cf $SOURCETAR *
 gzip -9 $SOURCETAR

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/lucene2.git



More information about the pkg-java-commits mailing list