--- lucene2-2.4.0+ds1.orig/debian/liblucene2-java.manpages +++ lucene2-2.4.0+ds1/debian/liblucene2-java.manpages @@ -0,0 +1 @@ +debian/lucli.1 --- lucene2-2.4.0+ds1.orig/debian/copyright +++ lucene2-2.4.0+ds1/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Jan-Pascal van Best on +Thu, 12 Jul 2007 08:21:19 +0200 + +It was downloaded from +http://www.apache.org/dist/lucene/java/lucene-2.2.0-src.tar.gz + +The lucene2_2.2.0.orig.tar.gz tarball was created by removing all +third party jars from the above upstream source. Use the script +debian/get-orig-source.sh to download the upstream source and +create lucene2_2.2.0.orig.tar.gz + +Copyright Holders: Doug Cutting , Erik Hatcher +, Otis Gospodnetic et.al. + +Lucene is licensed under the Apache License, version 2.0. On Debian +systems, the complete text of the Apache License, version 2.0, can +be found in `/usr/share/common-licenses/Apache-2.0'. + +The Debian packaging (the files under debian/) is +Copyright 2007,2008 Jan-Pascal van Best . It is +also licensed under the terms of the Apache License, version 2.0. --- lucene2-2.4.0+ds1.orig/debian/rules +++ lucene2-2.4.0+ds1/debian/rules @@ -0,0 +1,105 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk +include /usr/share/cdbs/1/class/ant.mk + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_INSTALL_CHANGELOGS_liblucene2-java := CHANGES.txt + +# Build with OpenJDK +JAVA_HOME := /usr/lib/jvm/java-6-openjdk + +DEB_ANT_BUILD_TARGET := javacc jar-core build-contrib war-demo javadocs +DEB_ANT_CHECK_TARGET := test +DEB_ANT_CLEAN_TARGET := clean + +# Needed for running javacc and the unit tests +DEB_JARS = ant-nodeps ant-junit junit + +# Upstream Lucene name +UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*") +UPSTREAM_BASENAME := lucene-$(UPSTREAM_VERSION) +CHANGESFILE = ../lucene2_$(DEB_VERSION)_$(DEB_BUILD_ARCH).changes + +clean:: + # 'ant test' in contrib/db leaves some stuff behind... + rm -rf $(CURDIR)/contrib/db/bdb/index + # Same for 'ant test' in contrib/benchmark + rm -rf $(CURDIR)/contrib/benchmark/temp + rm -rf $(CURDIR)/contrib/benchmark/work/index + rm -rf $(CURDIR)/contrib/benchmark/work/reuters + rm -rf $(CURDIR)/contrib/benchmark/work/reuters-out + # remove keyring, since it is a binary file + rm -f debian/lucene-keyring.gpg + rm -f debian/KEYS + # remove all javacc-generated files from src and contrib, except those + # that are not regenerated properly + fgrep -Rl "Generated By:JavaCC:" $(CURDIR)/src/ $(CURDIR)/contrib/ | grep -v analysis/standard/ParseException.java\\\|precedence\\\|surround | xargs rm -f + +install/liblucene2-java:: + # Install the libraries into the liblucene2-java package + + # Install the core library + install -m 0644 build/lucene-core-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java + ln -s lucene-core-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-core.jar + + # Install contrib libraries + CONTRIB_JARS=`find build/contrib/ -name \*-$(UPSTREAM_VERSION).jar` ; \ + for jarfile in $$CONTRIB_JARS; do \ + install -m 0644 "$$jarfile" $(CURDIR)/debian/liblucene2-java/usr/share/java ; \ + CONTRIB=`echo $$jarfile | sed "s/.*\\/lucene-\\([-a-z]*\\)-.*\\.jar/\\1/"` ; \ + ln -s lucene-$$CONTRIB-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-$$CONTRIB.jar ; \ + done + install -d $(CURDIR)/debian/liblucene2-java/usr/bin/ + install contrib/lucli/run.sh $(CURDIR)/debian/liblucene2-java/usr/bin/lucli + + # Install javascript example files as docfiles + install -d $(CURDIR)/debian/liblucene2-java/usr/share/doc/liblucene2-java + cp -a contrib/javascript $(CURDIR)/debian/liblucene2-java/usr/share/doc/liblucene2-java/ + +install/liblucene2-java-doc:: + # Install the documentation into the liblucene2-java-doc package + + mkdir -p $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/ + cp -r docs $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/ + cp -r build/docs/* $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/ + # Remove empty directories + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/css + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/scripts + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/translations + install -d $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo + install -m 644 build/lucene-demos-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/ + install -m 644 build/luceneweb.war $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/ + +remove-source: + rm -f build.xml + rm -f common-build.xml + rm -f *.txt + rm -f *stamp + rm -rf debian/patched + rm -rf build dist docs example lib src contrib + +restore-from-source: remove-source + tar xzf ../lucene2_$(DEB_UPSTREAM_VERSION).orig.tar.gz + mv $(UPSTREAM_BASENAME)/* . + rmdir $(UPSTREAM_BASENAME) + +get-orig-source: + debian/get-orig-source.sh + +check: + lintian -i $(CHANGESFILE) + linda -i $(CHANGESFILE) + zgrep "^---" ../lucene2_$(DEB_VERSION).diff.gz | grep -v debian ; [ $$? != 0 ] + ( for p in $(DEB_ALL_PACKAGES); do \ + dpkg --contents ../$${p}_$(DEB_VERSION)_all.deb ; \ + done ) | less + +upload: + dupload -t mentors $(CHANGESFILE) + +.PHONY: patched build clean binary-indep binary-arch binary install install-indep install-arch configure --- lucene2-2.4.0+ds1.orig/debian/changelog +++ lucene2-2.4.0+ds1/debian/changelog @@ -0,0 +1,166 @@ +lucene2 (2.4.0+ds1-2ubuntu1) jaunty; urgency=low + + * Merge from debian unstable. (LP: #300540) + * Remaining Ubuntu changes: + - debian/patches + * 00list - Remove Debian's patch 81_prevent-network-access.dpatch. Not + needed anymore. + - debian/control + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Onkar Shinde Sat, 22 Nov 2008 05:22:42 +0530 + +lucene2 (2.4.0+ds1-2) unstable; urgency=low + + * switch to libdb4.6-java as we need the armel binary of it since OOo/armel + needs us + * add myself to Uploaders: + + -- Rene Engelhard Mon, 24 Nov 2008 00:18:01 +0100 + +lucene2 (2.4.0+ds1-1) unstable; urgency=low + + * New upstream version (2 patches patched) + * Add DM-Upload-Allowed: Yes to debian/control + + -- Jan-Pascal van Best Sat, 11 Oct 2008 22:46:02 +0200 + +lucene2 (2.3.2+ds1-1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/control + * Add w3c-dtd-xhtml as build dependency to fix FTBFS. + - debian/patches + * 82_fix_xhtml_dtd_access.dpatch - Patch for fixing contrib unit tests. + Fixes FTBFS on buildd. + * 00list - Updated to include above patch and remove Debian's patch + 81_prevent-network-access.dpatch + + -- Chris Cheney Thu, 25 Sep 2008 19:38:57 -0500 + +lucene2 (2.3.2+ds1-1) unstable; urgency=low + + * New upstream release + * Use openjdk to build lucene2, move to main (Closes: #488895) + * Update TODO.Debian to reflect move to openjdk + * Update README.Debian to reflect inclusion of bdb-je (in 2.3.0+ds1-1) + * Bump Standards-Version to 3.8.0 + * Update debian/copyright to refer to the text of the Apache license in + /usr/share/common-licenses/ + * Clean up some cruft (failed-unittest-log.txt, KEYS, rules-backup) per + suggestion of Jeff Breidenbach + + -- Jan-Pascal van Best Mon, 28 Jul 2008 21:57:05 +0200 + +lucene2 (2.3.1+ds1-1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable. (LP: #227038) + * Remaining Ubuntu changes: + - debian/control + * Use openjdk-6-jdk as build dependency and openjdk-6-jre package as + runtime dependency. + * Add w3c-dtd-xhtml as build dependency to fix FTBFS. + * Modify Maintainer value to match the DebianMaintainerField + specification. + - debian/patches + * 82_fix_xhtml_dtd_access.dpatch - Patch for fixing contrib unit tests. + Fixes FTBFS on buildd. + * 00list - Updated to include above patch and remove Debian's patch + 81_prevent-network-access.dpatch + - debian/rules + * Set JAVA_HOME corresponding to openjdk. + + -- Onkar Shinde Tue, 06 May 2008 01:21:49 +0530 + +lucene2 (2.3.1+ds1-1) unstable; urgency=low + + [ Michael Koch ] + * Updated watch file to work with repackaged version number. + + [ Jan-Pascal van Best ] + * New upstream release + + -- Jan-Pascal van Best Thu, 27 Mar 2008 06:47:48 +0100 + +lucene2 (2.3.0+ds1-1) unstable; urgency=low + + [ Varun Hiremath ] + * New upstream release + * Enable bdb-je integration (Closes: #450569) + * debian/patches: + - Remove 55_disable-db-jre-compilation.dpatch + + Add 55_fix-contrib-db-je-libs.dpatch to enable bdb-je integration + * Move the following patches to old dir as they are no longer applicable: + + old/20_remove-gdata-server.dpatch + + old/81_fix-javadocs-links.dpatch + + old/82_fix-javadoc-external-link-for-gcj.dpatch + + old/80_fix-javadocs-classpath.dpatch + * debian/control: + + Add libdb-je-java to Build-Depends-Indep + + Add Homepage header and replace XS-Vcs with Vcs + + Bump debhelper compat to 6 + + Bump Standards-Version to 3.7.3 + + [ Jan-Pascal van Best ] + * Removed generated (javacc) files from orig.tar.gz. + * Updated Debian version to x.y.z+ds1-1, since it is a repackaged source + * Install the class documentation into the -doc package instead of into the + main package + * Added Debian packaging copyright information + * Added missing descriptions to patch files + * Prevent the test run to download anything, which would not work for + autobuilders + + -- Jan-Pascal van Best Fri, 01 Feb 2008 14:18:11 +0100 + +lucene2 (2.2.0-2ubuntu2) hardy; urgency=low + + * Build and Depend on openjdk-6 instead of icedtea (LP: #203636) + - debian/rules: s/icedtea-java7/openjdk-6/g + - debian/control: adjust JAVA_HOME + + -- Daniel Hahler Wed, 19 Mar 2008 00:50:09 +0100 + +lucene2 (2.2.0-2ubuntu1) hardy; urgency=low + + * debian/control + - Add w3c-dtd-xhtml as build dependency. Needed to fix build failure. + - Use icedtea-java7-jdk build dependency. (LP: #185917) + - Modify Maintainer value to match the DebianMaintainerField + specification. + - Add 'Homepage' field and remove links from description. + - Update standards version to 3.7.3. + * debian/patches + - 82_fix_xhtml_dtd_access.dpatch - Patch for fixing contrib unit tests. + Fixes FTBFS on buildd. (LP: #189602) + - 00list - Updated to include above patch + * debian/rules + - Set JAVA_HOME corresponding to icedtea. + + -- Onkar Shinde Tue, 15 Jan 2008 19:09:15 +0530 + +lucene2 (2.2.0-2) unstable; urgency=low + + * Use libdb4.5-java instead of libdb4.3-java, which is removed from Debian. + * Move to cdbs + * Expanded man page a little + + -- Jan-Pascal van Best Tue, 04 Sep 2007 21:02:06 +0200 + +lucene2 (2.2.0-1) unstable; urgency=low + + * New upstream release (2.2.0) + * Repackaged source tarball, removing third party jars + * Added links in lucene javadocs to locally installed ant and regexp javadocs + * Updated README.Debian for running the example webapp with tomcat5.5 + + -- Jan-Pascal van Best Sat, 14 Jul 2007 12:42:29 +0200 + +lucene2 (2.1.0-1) unstable; urgency=low + + * New upstream release (2.1.0) + * Fixes compilation of lucli, dbd, dbd-je, regex contrib jar files + + -- Jan-Pascal van Best Tue, 10 Apr 2007 14:23:52 +0200 + --- lucene2-2.4.0+ds1.orig/debian/lucli.1 +++ lucene2-2.4.0+ds1/debian/lucli.1 @@ -0,0 +1,63 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH LUCLI 1 "September 4, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +lucli \- command line interface to the Lucene full-text indexing library +.SH SYNOPSIS +.B lucli +.SH DESCRIPTION +\fBlucli\fP is a program that allows you to work directly with Lucene indexes. +Once inside +.B lucli +you can use the following commands: +.TP +\fBcount\fP +Return the number of hits for a search. Example: count foo +.TP +\fBexplain\fP +Explanation that describes how the document scored against query. Example: explain foo +.TP +\fBhelp\fP +Display help about commands +.TP +\fBindex\fP +Choose a different lucene index. Example index my_index +.TP +\fBinfo\fP +Display info about the current Lucene index. Example: info +.TP +\fBoptimize\fP +Optimize the current index +.TP +\fBquit\fP +Quit/exit the program +.TP +\fBsearch\fP +Search the current index. Example: search foo +.TP +\fBterms\fP +Show the first 100 terms in this index. Supply a field name to only show terms in a specific field. Example: terms +.TP +\fBtokens\fP +Does a search and shows the top 10 tokens for each document. Verbose! Example: tokens foo +.br +.SH AUTHOR +lucli was written as a part of Lucene, the Java full-text indexing library. +See http://lucene.apache.org for more information. +.PP +This manual page was written by Jan-Pascal van Best , +for the Debian project (but may be used by others). --- lucene2-2.4.0+ds1.orig/debian/TODO.Debian +++ lucene2-2.4.0+ds1/debian/TODO.Debian @@ -0,0 +1,7 @@ +TODO +---- + +Stuff to do regarding packaging of lucene-2.x.x: + +- Split into -core and -contrib package (maybe even further split up -contrib). + --- lucene2-2.4.0+ds1.orig/debian/uscan-upstream-version.xslt +++ lucene2-2.4.0+ds1/debian/uscan-upstream-version.xslt @@ -0,0 +1,10 @@ + + + + + + + + + + --- lucene2-2.4.0+ds1.orig/debian/ant.properties +++ lucene2-2.4.0+ds1/debian/ant.properties @@ -0,0 +1,17 @@ +# Ant properties file for Debian lucene source package + +# Version number for upstream source; errors in the +# upstream source require that it be overridden. +version=2.4.0 + +# javacc settings used by Lucene build +javacc.home=/usr/share/java +javacc.jar=/usr/share/java/javacc.jar + +# javac settings used by Lucene compilation +javac.debug=on +javac.verbose=yes +# build.rmic=kaffe +build.compiler=javac1.5 +compile.debug=on +compile.optimize=on --- lucene2-2.4.0+ds1.orig/debian/docs +++ lucene2-2.4.0+ds1/debian/docs @@ -0,0 +1,4 @@ +BUILD.txt +CHANGES.txt +NOTICE.txt +README.txt --- lucene2-2.4.0+ds1.orig/debian/compat +++ lucene2-2.4.0+ds1/debian/compat @@ -0,0 +1 @@ +6 --- lucene2-2.4.0+ds1.orig/debian/get-orig-source.sh +++ lucene2-2.4.0+ds1/debian/get-orig-source.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +DEHS=`( uscan --dehs )` + +URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -` +VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -` +DEBIAN_SOURCE_VERSION="$VERSION+ds1" + +DESTDIR=$PWD/.. +SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz +SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc +SOURCETAR=$DESTDIR/lucene2_$DEBIAN_SOURCE_VERSION.orig.tar + +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 $SOURCEFILE +wget "$URL.asc" -O $SIGFILE + +# If necessary, recreate keyring used for signing +# Only do this if the keyring is not yet downloaded +if [ ! -r $KEYFILE ]; then + wget "$KEYURL" -O "$KEYFILE" +fi + +if [ ! -r $KEYRING ]; then + touch $KEYRING + gpg --no-default-keyring --primary-keyring $KEYRING --import $KEYFILE +fi + +# Check signature +gpgv --quiet --keyring $KEYRING $SIGFILE $SOURCEFILE + +echo "Check whether the archive has been signed by Michael McCandless (CODE SIGNING KEY) , key ID 6E68DA61" + +# Repackage upstream source file without the third party jars +TEMPDIR=`mktemp -d` +echo "Unpacking into tempdir $TEMPDIR..." +tar xzf $SOURCEFILE -C $TEMPDIR + +echo "Removing third party jars..." +find $TEMPDIR -name \*.jar -exec rm {} \; + +echo "Removing pre-generated javacc output files..." +# Some generated files are excepted because they are not properly generated by +# the build system +fgrep -lR "Generated By:JavaCC:" $TEMPDIR | grep -v "analysis/standard/ParseException.java\|precedence\|surround" | xargs -n5 rm + +echo "Packing new orig source tarball $SOURCETAR..." +rm -f $SOURCETAR $SOURCETAR.gz +cd $TEMPDIR +tar cf $SOURCETAR * +gzip -9 $SOURCETAR +cd $DESTDIR + +echo "Removing tempdir..." +rm -rf "$TEMPDIR" + --- lucene2-2.4.0+ds1.orig/debian/uscan-url.xslt +++ lucene2-2.4.0+ds1/debian/uscan-url.xslt @@ -0,0 +1,10 @@ + + + + + + + + + + --- lucene2-2.4.0+ds1.orig/debian/control +++ lucene2-2.4.0+ds1/debian/control @@ -0,0 +1,56 @@ +Source: lucene2 +Section: text +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Java Maintainers +Uploaders: Jan-Pascal van Best , Barry Hawkins , + Jeff Breidenbach , Michael Koch , Rene Engelhard +DM-Upload-Allowed: yes +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/lucene2/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/lucene2/ +Homepage: http://lucene.apache.org/java/ +Build-Depends: cdbs (>= 0.4.49), debhelper (>= 6), dpatch (>= 2.0), + openjdk-6-jdk, + ant-optional, javacc, junit +Build-Depends-Indep: libjtidy-java (>= 7), + libjline-java (>= 0.9.5), + libcommons-digester-java (>= 1.7), + libregexp-java (>= 1.4), + libdb4.6-java, + libdb-je-java (>= 3.2.68), + libcommons-collections3-java (>= 3.1), + libcommons-logging-java (>= 1.0.4), + libcommons-beanutils-java (>= 1.7.0) +Standards-Version: 3.8.0 + +Package: liblucene2-java +Architecture: all +Depends: openjdk-6-jre | java5-runtime, + libjtidy-java (>= 7), + libjline-java (>= 0.9.5), + libcommons-digester-java (>= 1.7), + libregexp-java (>= 1.4), + libdb4.6-java, + libdb-je-java (>= 3.2.68), + libcommons-collections3-java (>= 3.1), + libcommons-logging-java (>= 1.0.4), + libcommons-beanutils-java (>= 1.7.0) +Description: Full-text search engine library for Java(TM) + Lucene is a full-text search engine for the Java(TM) programming language. + Lucene is not a complete application, but rather a code library and API + that can easily be used to add search capabilities to applications. + . + In addition to the Lucene core library, the following contributions are + also included: analyzers ant bdb bdb-je benchmark highlighter lucli + memory misc queries regex similarity snowball spellchecker surround swing + wikipedia wordnet xml-query-parser + +Package: liblucene2-java-doc +Architecture: all +Section: doc +Depends: libregexp-java (>= 1.4), ant-doc +Description: Documentation for Lucene + Lucene is a full-text search engine for the Java(TM) programming language. + Lucene is not a complete application, but rather a code library and API + that can easily be used to add search capabilities to applications. + This package contains class API documentation for Lucene. --- lucene2-2.4.0+ds1.orig/debian/dirs +++ lucene2-2.4.0+ds1/debian/dirs @@ -0,0 +1,2 @@ +usr/share/java + --- lucene2-2.4.0+ds1.orig/debian/watch +++ lucene2-2.4.0+ds1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\+ds\d// \ +http://www.apache.org/dist/lucene/java/lucene-(.*)-src\.tar\.gz --- lucene2-2.4.0+ds1.orig/debian/README.Debian +++ lucene2-2.4.0+ds1/debian/README.Debian @@ -0,0 +1,58 @@ +Debian notes for Lucene-2.2.0 +----------------------------- + +There are two binary packages: +- liblucene2-java contains the core lucene library and most + contrib libraries +- liblucene2-java-doc contains Lucene documentation, API + docs, and example applications + +Not all contrib libraries are included: +- gdata-server depends on many libraries, of which at least the + Google Data API (com.google.gdata) packages are not in Debian + +The Javadoc(TM) for Lucene are included in the liblucene2-java-doc +package, in /usr/share/doc/liblucene2-java-doc/docs/api + +The Lucene demo applications are included in the liblucene2-java-doc +package, in /usr/share/doc/liblucene2-java-doc/demo. The demonstration +applications require additional configuration to be used. To configure +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 + +Several modifications are required if you wish to run the Lucene web +application on a stock Debian tomcat5.5 configuration. Note that Debian's +default Tomcat configuration may have changed since these instructions +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. 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 , Fri, 5 May 2006 23:53:38 -0400 + Jan-Pascal van Best , Thu, 12 Jul 2007 07:57:20 +0200 + --- lucene2-2.4.0+ds1.orig/debian/patches/70_fix-contrib-regex-libs.dpatch +++ lucene2-2.4.0+ds1/debian/patches/70_fix-contrib-regex-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 70_fix-contrib-regex-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/regex to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/regex/build.xml trunk/contrib/regex/build.xml +--- trunk~/contrib/regex/build.xml 2007-06-04 06:02:22.000000000 +0200 ++++ trunk/contrib/regex/build.xml 2007-06-05 13:58:54.000000000 +0200 +@@ -24,7 +24,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix the lucli run.sh script to use the jar files in the +## DP: standard locations. + +@DPATCH@ +diff -urNad trunk~/contrib/lucli/run.sh trunk/contrib/lucli/run.sh +--- trunk~/contrib/lucli/run.sh 2007-06-17 07:21:04.000000000 +0200 ++++ trunk/contrib/lucli/run.sh 2007-07-12 07:33:09.000000000 +0200 +@@ -1,6 +1,7 @@ +-LUCLI=. ++#!/bin/sh ++ ++LUCLI=/usr/share/java + LUCLI_MEMORY=128M +-#JAVA_HOME=/home/dror/j2sdk1.4.1_03/ +-CLASSPATH=${CLASSPATH}:$LUCLI/lib/jline.jar:$LUCLI/lib/lucene.jar:$LUCLI/dist/lucli-dev.jar ++CLASSPATH=${CLASSPATH}:$LUCLI/jline.jar:$LUCLI/lucene-core.jar:$LUCLI/lucene-lucli.jar + export CLASSPATH +-$JAVA_HOME/bin/java -Xmx${LUCLI_MEMORY} lucli.Lucli ++java -Xmx${LUCLI_MEMORY} lucli.Lucli --- lucene2-2.4.0+ds1.orig/debian/patches/40_fix-contrib-benchmark-libs.dpatch +++ lucene2-2.4.0+ds1/debian/patches/40_fix-contrib-benchmark-libs.dpatch @@ -0,0 +1,47 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 40_fix-contrib-benchmark-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/benchmark to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad lucene2-2.3.0~/contrib/benchmark/build.xml lucene2-2.3.0/contrib/benchmark/build.xml +--- lucene2-2.3.0~/contrib/benchmark/build.xml 2008-01-26 15:45:55.000000000 +0530 ++++ lucene2-2.3.0/contrib/benchmark/build.xml 2008-01-26 15:55:12.000000000 +0530 +@@ -100,23 +100,23 @@ + + + +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ + + + + + +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ + + + --- lucene2-2.4.0+ds1.orig/debian/patches/30_fix-contrib-ant-libs.dpatch +++ lucene2-2.4.0+ds1/debian/patches/30_fix-contrib-ant-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 30_fix-contrib-ant-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/ant to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/ant/build.xml trunk/contrib/ant/build.xml +--- trunk~/contrib/ant/build.xml 2007-06-04 06:02:05.000000000 +0200 ++++ trunk/contrib/ant/build.xml 2007-06-05 13:30:58.000000000 +0200 +@@ -25,7 +25,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/db/bdb-je to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad lucene2-2.2.0~/contrib/db/bdb-je/build.xml lucene2-2.2.0/contrib/db/bdb-je/build.xml +--- lucene2-2.2.0~/contrib/db/bdb-je/build.xml 2007-06-17 10:50:55.000000000 +0530 ++++ lucene2-2.2.0/contrib/db/bdb-je/build.xml 2008-01-26 15:14:11.000000000 +0530 +@@ -5,10 +5,8 @@ + Lucene Berkeley DB Java Edition integration + + +- +- + +- ++ + + + +@@ -23,17 +21,5 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- ++ + --- lucene2-2.4.0+ds1.orig/debian/patches/50_fix-contrib-db-libs.dpatch +++ lucene2-2.4.0+ds1/debian/patches/50_fix-contrib-db-libs.dpatch @@ -0,0 +1,45 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 50_fix-contrib-db-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/db/bdb to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad 2.2.0~/contrib/db/bdb/build.xml 2.2.0/contrib/db/bdb/build.xml +--- 2.2.0~/contrib/db/bdb/build.xml 2007-06-17 07:20:55.000000000 +0200 ++++ 2.2.0/contrib/db/bdb/build.xml 2007-09-04 11:28:03.000000000 +0200 +@@ -5,10 +5,8 @@ + Lucene Berkeley DB integration + + +- +- + +- ++ + + + +@@ -23,12 +21,6 @@ + + + +- +- +- +- +- + + + + +- +- ++ + + --- lucene2-2.4.0+ds1.orig/debian/patches/01_remove_all_jarfiles.dpatch +++ lucene2-2.4.0+ds1/debian/patches/01_remove_all_jarfiles.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh +## 01_remove_all_jarfiles.dpatch -- Jan-Pascal van Best +## +## DP: We want to be use we do not build using jar files contained +## DP: in the Lucene distribution tarball, so we start by removing +## DP: all jar files. + +OPERATION="$1" +DIRECTORY="$2" + +if [ -z "$OPERATION" ]; then + echo "Illegal arguments" + exit 1 +fi + +if [ -z "$DIRECTORY" ]; then + DIRECTORY="." +fi + +case "$OPERATION" in + -patch) + echo "Removing all jar files under $DIRECTORY" + find $DIRECTORY -name \*.jar -exec rm {} \; + ;; + -unpatch) + echo "Unable to magic back jar files..." + ;; + *) + echo "Illegal command line $1 $2" + exit 1 + ;; +esac + --- lucene2-2.4.0+ds1.orig/debian/patches/80_prevent-downloading-data-files.dpatch +++ lucene2-2.4.0+ds1/debian/patches/80_prevent-downloading-data-files.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 80_prevent-downloading-data-files.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Disable running the tests for contrib/benchmark, since it requires +## DP: downloading test data which may not be possible during automated builds + +@DPATCH@ +diff -urNad lucene2~/contrib/benchmark/build.xml lucene2/contrib/benchmark/build.xml +--- lucene2~/contrib/benchmark/build.xml 2008-02-01 10:11:32.000000000 +0100 ++++ lucene2/contrib/benchmark/build.xml 2008-02-01 10:12:47.000000000 +0100 +@@ -167,9 +167,8 @@ + + + +- +- +- ++ ++ + + + --- lucene2-2.4.0+ds1.orig/debian/patches/81_prevent-network-access.dpatch +++ lucene2-2.4.0+ds1/debian/patches/81_prevent-network-access.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 81_prevent-network-access.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Disable one of the tests in contrib/highlighter. It seems the XML parser +## DP: resolves the DTD or xmlns address, causing network access which can cause +## DP: trouble when running automated builds. + +@DPATCH@ +diff -urNad lucene2~/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java lucene2/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java +--- lucene2~/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2008-09-18 19:03:28.000000000 +0200 ++++ lucene2/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2008-09-23 17:31:55.000000000 +0200 +@@ -975,6 +975,8 @@ + * + * @throws Exception + */ ++ ++ /* Disabled for Debian packaging, causes network access during builds + public void testEncoding() throws Exception { + + String rawDocContent = "\"Smith & sons' prices < 3 and >4\" claims article"; +@@ -1014,6 +1016,7 @@ + String decodedSnippet = h2.getFirstChild().getNodeValue(); + assertEquals("XHTML Encoding should have worked:", rawDocContent, decodedSnippet); + } ++ */ + + public void testMultiSearcher() throws Exception { + // setup index 1 --- lucene2-2.4.0+ds1.orig/debian/patches/60_fix-contrib-lucli-libs.dpatch +++ lucene2-2.4.0+ds1/debian/patches/60_fix-contrib-lucli-libs.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 60_fix-contrib-lucli-libs.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link contrib/lucli to the libraries from /usr/share/java instead of +## DP: to the (removed) libraries from lib/ + +@DPATCH@ +diff -urNad trunk~/contrib/lucli/build.xml trunk/contrib/lucli/build.xml +--- trunk~/contrib/lucli/build.xml 2007-06-04 06:02:20.000000000 +0200 ++++ trunk/contrib/lucli/build.xml 2007-06-05 13:52:51.000000000 +0200 +@@ -25,7 +25,7 @@ + + + +- ++ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix lucene's build configuration to find javacc + +@DPATCH@ +diff -urNad lucene2-2.3.0~/common-build.xml lucene2-2.3.0/common-build.xml +--- lucene2-2.3.0~/common-build.xml 2008-01-26 15:39:14.000000000 +0530 ++++ lucene2-2.3.0/common-build.xml 2008-01-26 15:42:13.000000000 +0530 +@@ -69,7 +69,8 @@ + + + +- ++ ++ + + + +@@ -101,7 +102,7 @@ + + + +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add depencies to the Javadoc classpath to avoid warnings during +## DP: generation of the apidocs. + +@DPATCH@ +diff -urNad trunk~/build.xml trunk/build.xml +--- trunk~/build.xml 2007-07-13 09:35:18.000000000 +0200 ++++ trunk/build.xml 2007-07-13 09:35:42.000000000 +0200 +@@ -41,6 +41,11 @@ + + + ++ ++ ++ ++ ++ + + + --- lucene2-2.4.0+ds1.orig/debian/patches/old/81_fix-javadocs-links.dpatch +++ lucene2-2.4.0+ds1/debian/patches/old/81_fix-javadocs-links.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 81_fix-javadocs-links.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad trunk~/build.xml trunk/build.xml +--- trunk~/build.xml 2007-07-13 10:09:09.000000000 +0200 ++++ trunk/build.xml 2007-07-13 10:09:36.000000000 +0200 +@@ -595,6 +595,8 @@ + + + ++ ++ + + + --- lucene2-2.4.0+ds1.orig/debian/patches/old/82_fix-javadoc-external-link-for-gcj.dpatch +++ lucene2-2.4.0+ds1/debian/patches/old/82_fix-javadoc-external-link-for-gcj.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 82_fix-javadoc-external-link-for-gcj.dpatch by Jan-Pascal van Best +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: It seems the html doclet included with gcj cannot handle the http +## DP: redirect sent by the Sun web server + +@DPATCH@ +diff -urNad lucene2~/build.xml lucene2/build.xml +--- lucene2~/build.xml 2007-08-08 14:27:26.000000000 +0200 ++++ lucene2/build.xml 2007-08-08 14:27:46.000000000 +0200 +@@ -27,7 +27,7 @@ + + + +- ++ + + +