[pkg-java] r3938 - in trunk/lucene2: . debian debian/patches
janpascal-guest at alioth.debian.org
janpascal-guest at alioth.debian.org
Wed Aug 1 20:29:23 UTC 2007
Author: janpascal-guest
Date: 2007-08-01 20:29:23 +0000 (Wed, 01 Aug 2007)
New Revision: 3938
Added:
trunk/lucene2/debian/
trunk/lucene2/debian/README.Debian
trunk/lucene2/debian/ant.properties
trunk/lucene2/debian/changelog
trunk/lucene2/debian/compat
trunk/lucene2/debian/control
trunk/lucene2/debian/copyright
trunk/lucene2/debian/dirs
trunk/lucene2/debian/docs
trunk/lucene2/debian/liblucene2-java.manpages
trunk/lucene2/debian/lucli
trunk/lucene2/debian/lucli.1
trunk/lucene2/debian/patches/
trunk/lucene2/debian/patches/patchfile
trunk/lucene2/debian/rules
trunk/lucene2/debian/watch
Log:
Initial upload
Added: trunk/lucene2/debian/README.Debian
===================================================================
--- trunk/lucene2/debian/README.Debian (rev 0)
+++ trunk/lucene2/debian/README.Debian 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,61 @@
+Debian notes for Lucene-2.1.0
+-----------------------------
+
+Lucene 2.1.0 is packaged separately from Lucene 1.4.3, because of
+API changes between the two versions.
+
+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:
+- ant does not build
+- db/bdb-je, db/bdb and gdata-server need external libraries
+
+The Javadoc(TM) for Lucene are included in the liblucene2-java-doc
+package, in /usr/share/doc/liblucene2-java-doc/docs/api FIXME
+
+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/liblucene-java-doc/docs/demo.html
+ /usr/share/doc/liblucene-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/liblucene-java-doc/docs/demo3.html
+ /usr/share/doc/liblucene-java-doc/docs/demo4.html
+
+Several modifications are required if you wish to run the Lucene web
+application on a stock Debian tomcat4 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.
+
+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";
+
+ -- Barry Hawkins <barryh at case.internal.alltc.org>, Fri, 5 May 2006 23:53:38 -0400
+
Added: trunk/lucene2/debian/ant.properties
===================================================================
--- trunk/lucene2/debian/ant.properties (rev 0)
+++ trunk/lucene2/debian/ant.properties 2007-08-01 20:29:23 UTC (rev 3938)
@@ -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.1.0
+
+# javacc settings used by Lucene build
+javacc.jar.dir=/usr/share/java
+
+# javac settings used by Lucene compilation
+javac.debug=on
+javac.nowarn=off
+javac.verbose=yes
+# build.rmic=kaffe
+build.compiler=javac1.5
+compile.debug=on
+compile.optimize=on
Added: trunk/lucene2/debian/changelog
===================================================================
--- trunk/lucene2/debian/changelog (rev 0)
+++ trunk/lucene2/debian/changelog 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,7 @@
+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 <janpascal at vanbest.org> Tue, 10 Apr 2007 14:23:52 +0200
+
Added: trunk/lucene2/debian/compat
===================================================================
--- trunk/lucene2/debian/compat (rev 0)
+++ trunk/lucene2/debian/compat 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1 @@
+4
Added: trunk/lucene2/debian/control
===================================================================
--- trunk/lucene2/debian/control (rev 0)
+++ trunk/lucene2/debian/control 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,29 @@
+Source: lucene2
+Section: contrib/text
+Priority: optional
+Maintainer: Jan-Pascal van Best <janpascal at vanbest.org>
+Build-Depends: debhelper (>= 4.0.0), sun-java5-jre, sun-java5-jdk, ant,
+ ant-optional, javacc, junit, libxalan2-java
+Build-Depends-Indep: libjline-java, libcommons-digester-java, libregexp-java,
+ libdb4.3-java, libdb4.3-java-dev
+Standards-Version: 3.7.2
+
+Package: liblucene2-java
+Architecture: all
+Depends: ${misc:Depends},
+ sun-java5-jre | sun-java6-jre,
+ libjline-java, libcommons-digester-java, libregexp-java, libdb4.3-java
+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.
+
+Package: liblucene2-java-doc
+Architecture: all
+Section: contrib/doc
+Depends: ${misc:Depends}
+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.
Added: trunk/lucene2/debian/copyright
===================================================================
--- trunk/lucene2/debian/copyright (rev 0)
+++ trunk/lucene2/debian/copyright 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,212 @@
+This package was debianized by Jan-Pascal van Best <janpascal at vanbest.org> on
+Wed, 11 Apr 2007 14:00:46 +0200.
+
+It was downloaded from
+http://www.apache.org/dist/lucene/java/lucene-2.1.0-src.tar.gz
+
+Copyright Holder: Doug Cutting <cutting at apache.org>, Erik Hatcher
+<ehatcher at apacher.org>, Otis Gospodnetic <otis at apache.org> et.al.
+
+License:
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
Added: trunk/lucene2/debian/dirs
===================================================================
--- trunk/lucene2/debian/dirs (rev 0)
+++ trunk/lucene2/debian/dirs 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,2 @@
+usr/share/java
+
Added: trunk/lucene2/debian/docs
===================================================================
--- trunk/lucene2/debian/docs (rev 0)
+++ trunk/lucene2/debian/docs 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,4 @@
+BUILD.txt
+CHANGES.txt
+NOTICE.txt
+README.txt
Added: trunk/lucene2/debian/liblucene2-java.manpages
===================================================================
--- trunk/lucene2/debian/liblucene2-java.manpages (rev 0)
+++ trunk/lucene2/debian/liblucene2-java.manpages 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1 @@
+debian/lucli.1
Added: trunk/lucene2/debian/lucli
===================================================================
--- trunk/lucene2/debian/lucli (rev 0)
+++ trunk/lucene2/debian/lucli 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+LUCLI=/usr/share/java
+LUCLI_MEMORY=128M
+CLASSPATH=${CLASSPATH}:$LUCLI/jline.jar:$LUCLI/lucene-core.jar:$LUCLI/lucene-lucli.jar
+export CLASSPATH
+java -Xmx${LUCLI_MEMORY} lucli.Lucli
Added: trunk/lucene2/debian/lucli.1
===================================================================
--- trunk/lucene2/debian/lucli.1 (rev 0)
+++ trunk/lucene2/debian/lucli.1 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,42 @@
+.\" 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 "April 11, 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 <n> 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
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B lucli
+command.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBlucli\fP is a program that allows you to work directly with Lucene indexes.
+.br
+Type "help" once inside
+.B lucli
+for more information.
+.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 <janpascal at vanbest.org>,
+for the Debian project (but may be used by others).
Added: trunk/lucene2/debian/patches/patchfile
===================================================================
--- trunk/lucene2/debian/patches/patchfile (rev 0)
+++ trunk/lucene2/debian/patches/patchfile 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,116 @@
+--- lucene2-2.1.0.orig/contrib/db/bdb/build.xml
++++ lucene2-2.1.0/contrib/db/bdb/build.xml
+@@ -8,7 +8,7 @@
+ <property name="db.version" value="4.3.29" />
+
+ <path id="db.jar">
+- <pathelement location="lib/db-${db.version}.jar" />
++ <pathelement location="/usr/share/java/libdb4.3-java.jar" />
+ </path>
+
+ <available classname="com.sleepycat.db.internal.Db" property="db.jar.exists">
+@@ -19,6 +19,7 @@
+
+ <property name="build.dir" location="../../../build/contrib/db/bdb" />
+ <property name="dist.dir" location="../../../dist/contrib/db/bdb" />
++ <property name="java.library.path" location="/usr/lib/libdb_java.so" />
+
+ <import file="../../contrib-build.xml" />
+
+--- lucene2-2.1.0.orig/contrib/lucli/build.xml
++++ lucene2-2.1.0/contrib/lucli/build.xml
+@@ -8,7 +8,7 @@
+
+
+ <path id="additional.dependencies">
+- <pathelement location="lib/jline.jar"/>
++ <pathelement location="/usr/share/java/jline.jar"/>
+ </path>
+
+ <pathconvert property="project.classpath"
+--- lucene2-2.1.0.orig/contrib/regex/build.xml
++++ lucene2-2.1.0/contrib/regex/build.xml
+@@ -7,7 +7,8 @@
+ </description>
+
+ <path id="additional.dependencies">
+- <fileset dir="lib" includes="*-oro-*.jar,*-regexp-*.jar"/>
++ <fileset dir="/usr/share/java" includes="regexp-*.jar"/>
++ <!--<fileset dir="/usr/share/java" includes="*-oro-*.jar,*-regexp-*.jar"/> -->
+ </path>
+
+ <pathconvert property="project.classpath"
+--- lucene2-2.1.0.orig/contrib/contrib-build.xml
++++ lucene2-2.1.0/contrib/contrib-build.xml
+@@ -19,6 +19,7 @@
+ <path id="test.classpath">
+ <path refid="classpath"/>
+ <pathelement location="${junit.jar}"/>
++ <pathelement location="../../build/classes/test"/>
+ <pathelement location="${build.dir}/classes/java"/>
+ </path>
+
+--- lucene2-2.1.0.orig/build.xml
++++ lucene2-2.1.0/build.xml
+@@ -386,7 +386,7 @@
+ <packageset dir="src/demo"/>
+
+ <packageset dir="contrib/analyzers/src/java"/>
+- <packageset dir="contrib/ant/src/java"/>
++ <!-- debian-ignore <packageset dir="contrib/ant/src/java"/> -->
+ <packageset dir="contrib/highlighter/src/java"/>
+ <packageset dir="contrib/lucli/src/java"/>
+ <packageset dir="contrib/memory/src/java"/>
+@@ -400,9 +400,9 @@
+ <packageset dir="contrib/wordnet/src/java"/>
+ <packageset dir="contrib/benchmark/src/java"/>
+
+- <packageset refid="gdata-server-core" />
+- <packageset refid="gdata-server-gom" />
+- <packageset refid="gdata-server-hivemind" />
++ <!-- debian-ignore <packageset refid="gdata-server-core" /> -->
++ <!-- debian-ignore <packageset refid="gdata-server-gom" /> -->
++ <!-- debian-ignore <packageset refid="gdata-server-hivemind" /> -->
+
+ <group title="Core" packages="org.apache.*:org.apache.lucene.analysis:org.apache.lucene.analysis.standard*"/>
+
+@@ -425,6 +425,9 @@
+ <group title="contrib: Swing" packages="org.apache.lucene.swing*"/>
+ <group title="contrib: WordNet" packages="org.apache.lucene.wordnet*"/>
+
++ <link href="http://jline.sourceforge.net/apidocs/"/>
++ <link href="http://jakarta.apache.org/regexp/apidocs/"/>
++ <link href="http://jakarta.apache.org/commons/digester/commons-digester-1.7/docs/api/"/>
+
+ </javadoc>
+ </sequential>
+--- lucene2-2.1.0.orig/common-build.xml
++++ lucene2-2.1.0/common-build.xml
+@@ -22,7 +22,7 @@
+
+ <property name="name" value="${ant.project.name}"/>
+ <property name="Name" value="Lucene"/>
+- <property name="version" value="2.1.1-dev"/>
++ <property name="version" value="2.1.0"/>
+ <property name="year" value="2000-${current.year}"/>
+ <property name="final.name" value="lucene-${name}-${version}"/>
+
+@@ -38,7 +38,8 @@
+ <property name="build.dir" location="build"/>
+ <property name="dist.dir" location="dist"/>
+
+- <property name="javacc.home" location="${common.dir}"/>
++ <property name="javacc.home" location="/usr/share/java"/>
++ <property name="javacc.jar" location="/usr/share/java/javacc.jar"/>
+
+ <property name="junit.output.dir" location="${build.dir}/test"/>
+ <property name="junit.reports" location="${build.dir}/test/reports"/>
+@@ -64,7 +65,7 @@
+ <available
+ property="javacc.present"
+ classname="org.javacc.parser.Main"
+- classpath="${javacc.home}/bin/lib/javacc.jar"
++ classpath="/usr/share/java/javacc.jar"
+ />
+
+ <available
Added: trunk/lucene2/debian/rules
===================================================================
--- trunk/lucene2/debian/rules (rev 0)
+++ trunk/lucene2/debian/rules 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,192 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# Upstream Lucene version
+LUCENE_VERSION = 2.1.0
+
+# Stuff from contrib we include
+# We do not include:
+# - ant does not build
+# - benchmark does not build
+# - db/bdb-je, db/bdb and gdata-server need external libraries
+# - contrib/javascript, is installed under doc
+LUCENE_CONTRIBS = analyzers db/bdb highlighter memory lucli misc queries regex similarity snowball spellchecker surround swing wordnet xml-query-parser
+
+# Explicitly build with sun-java5-jdk
+export JAVA_HOME = /usr/lib/jvm/java-1.5.0-sun
+export JAVA = $(JAVA_HOME)/bin/java
+export JAVAC = $(JAVA_HOME)/bin/javac
+
+# Class path: Ant requires a JAXP-compatible XML parser
+# You need to set CLASSPATH here (even if your build.xml assembles its own
+# class path) to ensure the same build results in all cases
+JAVA_LIB=/usr/share/java
+ANT_HOME=/usr/share/ant
+ANT_CLASSPATH=$(JAVA_LIB)/junit.jar:$(JAVA_LIB)/xalan2.jar
+
+# Set path to Ant properties file
+ANT_PROPS=$(CURDIR)/debian/ant.properties
+
+# Universal Ant invocation for reliable builds;
+# place '-verbose' before -propertyfile to
+# obtain detailed build output.
+ANT=ant -propertyfile $(ANT_PROPS)
+
+# Include dpatch stuff per the documentation
+include /usr/share/dpatch/dpatch.make
+
+configure: patch configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+
+ touch configure-stamp
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp
+
+ # Add here commands to compile the arch part of the package.
+ #$(MAKE)
+ touch build-arch-stamp
+
+build-indep: build-indep-stamp
+build-indep-stamp: configure-stamp
+
+ dh_testdir
+
+ $(ANT) javacc
+ $(ANT) jar-core
+ $(ANT) build-contrib
+ $(ANT) war-demo
+ $(ANT) test
+ export LD_LIBRARY_PATH=/usr/lib ; \
+ for contrib in $(LUCENE_CONTRIBS); do \
+ cd $(CURDIR)/contrib/$$contrib ; \
+ $(ANT) test ; \
+ done
+ $(ANT) javadocs
+
+ touch build-indep-stamp
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+ # Add here commands to clean up after the build process.
+ # -$(MAKE) clean
+ $(ANT) clean
+
+ # 'ant test' in contrib/db leave some stuff behind...
+ rm -rf $(CURDIR)/contrib/db/bdb/index
+
+ dh_clean
+
+install: install-indep install-arch
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+
+ # Add here commands to install the indep part of the package into
+ # debian/<package>-doc.
+ #INSTALLDOC#
+
+ install -m 0644 build/lucene-core-$(LUCENE_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java
+ ln -s lucene-core-$(LUCENE_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-core.jar
+
+ # build contrib
+ for contrib in $(LUCENE_CONTRIBS); do \
+ for jarfile in "build/contrib/$$contrib"/*.jar; do \
+ install -m 0644 "$$jarfile" $(CURDIR)/debian/liblucene2-java/usr/share/java ; \
+ CONTRIB=`echo $$jarfile | sed "s/.*\\/lucene-\\(.*\\)-.*.jar/\\1/"` ; \
+ ln -s lucene-$$CONTRIB-$(LUCENE_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-$$CONTRIB.jar ; \
+ done ; \
+ done
+ install -d $(CURDIR)/debian/liblucene2-java/usr/bin/
+ install debian/lucli $(CURDIR)/debian/liblucene2-java/usr/bin/
+
+ install -d $(CURDIR)/debian/liblucene2-java/usr/share/doc/liblucene2-java
+ cp -a contrib/javascript $(CURDIR)/debian/liblucene2-java/usr/share/doc/liblucene2-java/
+
+
+ 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/
+ install -d $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java/demo
+ install -m 644 build/lucene-demos-$(LUCENE_VERSION).jar $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java/demo/
+ install -m 644 build/luceneweb.war $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java/demo/
+
+ dh_install -i
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+
+ # Add here commands to install the arch part of the package into
+ # debian/tmp.
+ # $(MAKE) install DESTDIR=$(CURDIR)/debian/lucene
+
+ dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs CHANGES.txt
+ dh_installdocs
+ dh_installexamples
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary: binary-indep
+
+binary-arch:
+ # empty
+
+.PHONY: patched build clean binary-indep binary-arch binary install install-indep install-arch configure
Property changes on: trunk/lucene2/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/lucene2/debian/watch
===================================================================
--- trunk/lucene2/debian/watch (rev 0)
+++ trunk/lucene2/debian/watch 2007-08-01 20:29:23 UTC (rev 3938)
@@ -0,0 +1,4 @@
+version=3
+
+http://www.apache.org/dist/lucene/java/lucene-(.*)-src\.tar\.gz
+
More information about the pkg-java-commits
mailing list