--- swish-e-2.4.5.orig/conf/example9.pl +++ swish-e-2.4.5/conf/example9.pl @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl -w +#!/usr/bin/perl -w use strict; # This is a short example that basically does the same --- swish-e-2.4.5.orig/perl/Makefile.PL +++ swish-e-2.4.5/perl/Makefile.PL @@ -224,7 +224,7 @@ my %config; $config{VERSION} = backtick( "$binary --version" ); - $config{LIBS} = backtick( "$binary --libs" ); + $config{LIBS} = "-L../src/.libs/ -lxml2 ". backtick( "$binary --libs" ) ; $config{INC} = backtick( "$binary --cflags" ); $config{BINDIR } = dirname( $binary ); --- swish-e-2.4.5.orig/perl/Makefile.PL.deb +++ swish-e-2.4.5/perl/Makefile.PL.deb @@ -0,0 +1,296 @@ +#!/usr/bin/perl -w + +use strict; +use ExtUtils::MakeMaker; +use Config; # for path separator +use File::Spec; # for catpath +use File::Basename; # for locating swish-e binary based on location of swish-config + +# $Id: Makefile.PL,v 1.16 2004/11/18 21:26:19 whmoseley Exp $ + +#---------------------------------------------------------------------------------- +# Default settings + +my %make_maker_opts = ( + NAME => 'SWISH::API', + VERSION_FROM => 'API.pm', + AUTHOR => 'Bill Moseley', + ABSTRACT => 'Perl interface to the swish-e search library', + + # Set LIBS and INC from swish-confg + + NORECURS => 1, # keep it from recursing into subdirectories + DIR => [], + XSPROTOARG => '-noprototypes', + PREREQ_PM => { + 'File::Spec' => '0.8', + }, + test => { + TESTS => 't/*.t', + }, + clean => { + FILES => join( ' ', qw( + t/index.swish-e + t/index.swish-e.prop + )), + }, +); + +#return; # DEBIAN: interactive compile forbidden ! + +my $SWISH_BINARY = '../src/swish-e'; +my $SWISH_CONFIG = '../swish-config'; +my $MIN_VERSION = '2.4.3'; + + +my @valid_params = qw/ SWISHBINDIR SWISHHELP SWISHIGNOREVER SWISHSKIPTEST /; + + + + +my $help = <catdir( dirname( $swish_config_path), $SWISH_BINARY ); + create_index( $swish_binary ); + +} else { + $config{test}{TESTS} = 't/dummy.t'; +} + + + + +WriteMakefile( %make_maker_opts, %config ); + + +#---------------------------------------------------------------------------------- +# Test the swish-e version +#---------------------------------------------------------------------------------- +sub test_version { + my %versions; + my %split_vers; + + return 1 if exists $ENV{SWISHIGNOREVER}; + + my @tags = qw/ running_swish_version required_version /; + my @versions = qw/ major minor release /; + + @versions{@tags} = @_; + + + for ( @tags ) { + die "Failed to find version for $_\n" unless $versions{$_}; + die "Failed to parse version ($versions{$_}) for $_\n" + unless $versions{$_} =~ /(\d+)\.(\d+)\.(\d+)/; + + @{$split_vers{$_}}{@versions} = ( $1, $2, $3 ); + } + + for ( @versions ) { + return 1 if $split_vers{running_swish_version}{$_} > $split_vers{required_version}{$_}; + return 0 if $split_vers{running_swish_version}{$_} < $split_vers{required_version}{$_}; + } + return 1; # same version. +} + + + +#---------------------------------------------------------------------------------- +# Reads swish-config and returns hash of values +#---------------------------------------------------------------------------------- +sub find_swish_config { + my $prog = shift; + + my $binary = find_program( $prog ); + + if ( $ENV{SWISHBINDIR} ) { + + die "SWISHBINDIR [$ENV{SWISHBINDIR}] is not a directory\n" + unless -d $ENV{SWISHBINDIR}; + + my $p = find_program( $prog, $ENV{SWISHBINDIR} ); + die "Failed to find [$prog] in directory $ENV{SWISHBINDIR}: $!" unless $p; + + print "Using config program [$p], but also noticed you have $binary available in \$PATH\n" + if $binary; + + $binary = $p; + } + + + die "Failed to find [$prog] in PATH\n" unless $binary; + + print "Using swish-config found at [$binary]\n"; + return $binary; +} + +#---------------------------------------------------------------------------------- +# Reads swish-config and returns hash of values +#---------------------------------------------------------------------------------- +sub read_swish_config { + my $binary = shift; + + my %config; + $config{VERSION} = backtick( "$binary --version" ); + $config{LIBS} = backtick( "$binary --libs" ); + $config{INC} = backtick( "$binary --cflags" ); + + return %config; +} + + +#---------------------------------------------------------------------------------- +# Sub to fetch parameters form command line. +# Sets $ENV for SWISH options, otherwise returns them +#---------------------------------------------------------------------------------- + +sub load_command_line { + my %valid = map { $_, 1 } @_; + + my %config; + while( $_ = shift @ARGV ) { + if ( $_ eq 'SWISHHELP' ) { + $ENV{SWISHHELP} = 'y'; + last; + } + + my ( $param, $value ) = split /=/, $_, 2; + + if ( $param =~ /^SWISH/ ) { + die "Invalid option '$param'\n" unless $valid{$param}; + $ENV{$param} = $value || ''; + } else { + $config{$param} = $value || ''; + } + } + + return %config; +} + + + +#---------------------------------------------------------------------------------- +# Find a program in either $PATH or path/directory passed in. +#---------------------------------------------------------------------------------- +sub find_program { + my ( $name, $search_path ) = @_; + + $search_path ||= $ENV{PATH} || ''; + + for my $dir ( split /$Config{path_sep}/, $search_path ) { + my $path = File::Spec->catfile( $dir, $name ); + + for my $extension ( '', '.exe' ) { + my $file = $path . $extension; + return $file if -x $file && !-d _; + } + } + return; +} + + +#---------------------------------------------------------------------------------- +# Run a program with backtics, checking for errors +#---------------------------------------------------------------------------------- + +sub backtick { + my ( $command ) = @_; + + my $output = `$command`; + + my $status = $? == 0 + ? '' + : $? == -1 + ? "Failed to execute: $!" + : $? & 127 + ? sprintf("Child died with signal %d, %s corefile", ($? & 127), ($? & 128) ? 'with' : 'without' ) + : sprintf("chiled exited with value %d", $? >> 8); + + die "Failed to run program [$command]: $status\n" if $status; + + chomp $output; + return $output; +} + + + +sub create_index { + my ($swish) = @_; + + die "Failed to find swish-e binary [$swish]: $!\n" unless -e $swish; + die "Cannot execute swish-e binary [$swish]: $!\n" unless -x $swish; + + my $index = 't/index.swish-e'; + my $conf = 't/test.conf'; + + + unlink $index if -e $index; + + my @command = ( $swish, '-c', $conf, '-f', $index, '-v','0' ); + + + print "Creating index...'@command'\n\n"; + + system(@command); + + die "Failed to create index file '$index'" unless -r $index; +} --- swish-e-2.4.5.orig/debian/po/templates.pot +++ swish-e-2.4.5/debian/po/templates.pot @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "" --- swish-e-2.4.5.orig/debian/po/de.po +++ swish-e-2.4.5/debian/po/de.po @@ -0,0 +1,37 @@ +# Translation of swish-e debconf templates to German +# Copyright (C) Helge Kreutzmann , 2007. +# This file is distributed under the same license as the swish-e package. +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e 2.4.3-7\n" +"Report-Msgid-Bugs-To: absurd@debian.org\n" +"POT-Creation-Date: 2007-01-13 20:19+0100\n" +"PO-Revision-Date: 2007-02-18 16:14+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Neues, inkompatibles Index-Format" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 verwendet ein neues Format für seine Indexe, die inkompatibel " +"zu älteren Veröffentlichungen (2.4.3, 2.2, 2.0, ...) ist" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Sie müssen Ihre Dateien reindexieren" --- swish-e-2.4.5.orig/debian/po/cs.po +++ swish-e-2.4.5/debian/po/cs.po @@ -0,0 +1,46 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2005-02-09 18:38+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Nový, nekompatibilní formát indexu" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 pou¾ívá pro své indexy nový formát, který je nekompatibilní s " +"pøedchozími verzemi (2.4.3, 2.2, 2.0, ...)" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Budete muset pøeindexovat své soubory." --- swish-e-2.4.5.orig/debian/po/fr.po +++ swish-e-2.4.5/debian/po/fr.po @@ -0,0 +1,48 @@ +# translation of fr.po to French +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# Initial translator : Ludovic Drolez +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2005-11-15 22:05+0100\n" +"Last-Translator: Sylvain Archenault \n" +"Language-Team: French >\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Nouveau format d'index incompatible" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 utilise un nouveau format pour ses index. Ce format est " +"incompatible avec les versions précédentes (2.4.3, 2.2, 2.0, ...)." + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Vous devez réindexer vos fichiers." --- swish-e-2.4.5.orig/debian/po/nl.po +++ swish-e-2.4.5/debian/po/nl.po @@ -0,0 +1,50 @@ +# Translation of swish-e_2.4.3-4_templates.po to Debian l10n Dutch +# This file is distributed under the same license as the swish-e package. +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +# Kurt De Bree , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e_2.4.3-4_templates\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2006-07-23 19:00+0200\n" +"Last-Translator: Kurt De Bree \n" +"Language-Team: Debian l10n Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.10.2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Nieuwe niet-compatibele indexindeling" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 gebruikt een nieuwe indeling voor de indexen welke niet " +"compatibel zijn met de vorige versies (2.4.3, 2.2, 2.0, ...)" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Uw bestanden moeten opnieuw worden geïndexeerd." --- swish-e-2.4.5.orig/debian/po/pt.po +++ swish-e-2.4.5/debian/po/pt.po @@ -0,0 +1,37 @@ +# Portuguese translation for swish-e's debconf messages. +# Released under the same license as the swish-e package. +# Luísa Lourenço , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2006-08-03 14:18+0000\n" +"Last-Translator: Luísa Lourenço \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Novo formato de índice incompatível" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 usa um novo formato para os seus indices que é incompatível " +"com os lançamentos anteriores (2.4.3, 2.2, 2.0, ...)" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Terá que reindexar os seus ficheiros." --- swish-e-2.4.5.orig/debian/po/sv.po +++ swish-e-2.4.5/debian/po/sv.po @@ -0,0 +1,45 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e 2.4.3-1\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2005-09-28 23:46-0700\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Nytt inkompatibelt indexformat" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Swish-e 2.4.5 använder ett nytt format för dess index som inte är " +"kompatibelt med tidigare versioner (2.4.3, 2.2, 2.0 ...)" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Du måste indexera om dina filer." --- swish-e-2.4.5.orig/debian/po/vi.po +++ swish-e-2.4.5/debian/po/vi.po @@ -0,0 +1,39 @@ +# Vietnamese translation for swish-e. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: swish-e 2.4.3-1\n" +"Report-Msgid-Bugs-To: ldrolez@debian.org\n" +"POT-Creation-Date: 2007-04-10 16:36+0200\n" +"PO-Revision-Date: 2005-07-25 15:54+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" +"X-Generator: LocFactoryEditor 1.2.2\n" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "New incompatible index format" +msgstr "Äịnh dạng chỉ mục không tÆ°Æ¡ng thích má»›i" + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "" +"Swish-e 2.4.5 uses a new format for its indexes which is incompatible with " +"previous releases (2.4.3, 2.2, 2.0, ...)" +msgstr "" +"Trình switch-e phiên bản 2.4.5 dùng định dạng má»›i cho các chỉ mục của nó, mà " +"không tÆ°Æ¡ng thích vá»›i phiên bản trÆ°á»›c (2.4.3, 2.2, 2.0, ...)." + +#. Type: note +#. Description +#: ../swish-e.templates:1001 +msgid "You will have to re-index your files." +msgstr "Vì vậy bạn sẽ cần phải chỉ mục lại các tập tin của bạn." --- swish-e-2.4.5.orig/debian/po/POTFILES.in +++ swish-e-2.4.5/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] swish-e.templates --- swish-e-2.4.5.orig/debian/swish-e.manpages +++ swish-e-2.4.5/debian/swish-e.manpages @@ -0,0 +1,2 @@ +swish.cgi.7 +search.cgi.7 --- swish-e-2.4.5.orig/debian/control +++ swish-e-2.4.5/debian/control @@ -1,18 +1,42 @@ Source: swish-e Section: web Priority: optional -Maintainer: Bill Moseley -Standards-Version: 3.5.8 -Build-Depends: debhelper (>= 4.0.1), zlib1g-dev, perl, libxml2-dev (>= 2.4.19) +Maintainer: Ludovic Drolez +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 4.1.16), zlib1g-dev, perl, libxml2-dev (>= 2.4.3), libpcre3-dev (>= 3.4) Package: swish-e Architecture: any -Depends: ${shlibs:Depends} -Recommends: libmime-types-perl, libhtml-parser-perl, libwww-perl -Description: Simple Web Indexing System for Humans +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: ${perl:Depends}, libmime-types-perl, libtemplate-perl, libdate-calc-perl +Suggests: libwww-perl, libhtml-parser-perl, xpdf-utils, libmp3-tag-perl, hypermail, wv, catdoc +Description: Simple Web Indexing System for Humans - Enhanced SWISH-Enhanced is a fast, powerful, flexible, and easy to use system - for indexing collections of HTML Web pages, XML or other text files. Key - features include the ability to limit searches to certain HTML tags - (META, TITLE, comments, etc.). + for indexing collections of HTML Web pages, or any XML or text files like + Open Office Documents, Open Document files, emails, and so on. . - See the Swish-e Website for details: http://swish-e.org + Key features: + * Quickly index a large number of text, HTML, and XML documents + * Use filters to index any type of files such as PDF, OpenOffice, DOC, XLS, + PPT, MP3. + * Includes a web spider for indexing remote documents over HTTP + * Can use an external program to supply documents including + records from a relational database. + * Word stemming, soundex, metaphone, and double-metaphone indexing for + fuzzy searching + * Powerful Regular Expressions to select documents for indexing or exclusion + * Limit searches to parts of documents such as certain HTML tags or to + XML elements. + * Index file is portable between platforms. + * A Swish-e library is provided to allow embedding Swish-e into your + applications for very fast searching. + . + You'll find ready to use examples for indexing the Debian documentation, PDF, + OpenOffice and MSOffice files, whole Maildir, and more. + +Package: swish-e-dev +Architecture: any +Depends: ${shlibs:Depends}, swish-e (= ${Source-Version}) +Description: Simple Web Indexing System for Humans - Enhanced + Static libraries and headers for developing application with SWISH-Enhanced, + a fast, powerful, flexible, and easy to use system indexing engine. --- swish-e-2.4.5.orig/debian/prerm +++ swish-e-2.4.5/debian/prerm @@ -0,0 +1,4 @@ +#!/bin/sh + +#DEBHELPER# + --- swish-e-2.4.5.orig/debian/rules +++ swish-e-2.4.5/debian/rules @@ -1,106 +1,95 @@ #!/usr/bin/make -f -# Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - - -CFLAGS = -Wall -g +# +# Debian build makefile +# +export CFLAGS := -Wall -g -fPIC ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 + CFLAGS += -O0 else - CFLAGS += -O2 + CFLAGS += -O2 endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s +DH_STRIP=dh_strip +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + DH_STRIP=true endif -config.status: configure - dh_testdir - # Add here commands to configure the package. - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info - - -build: build-stamp - -build-stamp: config.status - dh_testdir - - # Add here commands to compile the package. - $(MAKE) - #/usr/bin/docbook-to-man debian/swish-e.sgml > swish-e.1 +ifndef PERL + PERL = /usr/bin/perl +endif - touch build-stamp +DEST=$(CURDIR)/debian/swish-e +DOCDIR=$(DEST)/usr/share/doc/swish-e clean: dh_testdir dh_testroot - rm -f build-stamp + dh_clean build.stamp + -( cd perl; $(MAKE) realclean) + -[ ! -f Makefile ] || $(MAKE) distclean + rm -f perl/t/index.swish-e* perl/Makefile.old + rm -f doc/swish-e.1 doc/swish-search.1 *.cgi.7 + rm -f src/acconfig.h doc/bin/toc_file config.log + rm -f html/search.cgi debian/files - # Add here commands to clean up after the build process. - -$(MAKE) distclean -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - - - dh_clean - -install: build +build: build.stamp +build.stamp: dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/swish-e. - $(MAKE) install DESTDIR=$(CURDIR)/debian/swish-e - + env CC=gcc CFLAGS="$(CFLAGS)" ./configure --mandir=\$${prefix}/share/man --with-libxml2 --with-pcre --prefix=/usr + $(MAKE) + #$(MAKE) docs + #(cd doc;$(MAKE) man) + (chmod 755 swish-config;cd perl; env PATH=..:$$PATH SWISHSKIPTEST=1 SWISHIGNOREVER=1 $(PERL) Makefile.PL INSTALLDIRS=vendor < /dev/null \ + && $(MAKE) OPTIMIZE="$(CFLAGS) -I../src/" CC=gcc LD=gcc LD_RUN_PATH=) + > $@ -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +binary: binary-arch binary-indep -# Build architecture-dependent files here. -binary-arch: build install +binary-arch: build dh_testdir dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit -# dh_installcron -# dh_installinfo + dh_clean + dh_installdirs + # bin + make install DESTDIR=$(DEST) + # perl + (cd perl;$(MAKE) install PREFIX=$(DEST)/usr) + # docs + (cd example;pod2man -s 7 swish.cgi >../swish.cgi.7 ;pod2man -s 7 search.cgi >../search.cgi.7) dh_installman - dh_link - dh_strip - dh_compress + dh_installdocs README* + dh_installexamples example/* conf filter-bin prog-bin + # swish-search symlinks + (cd $(DEST)/usr/bin; ln -s swish-e swish-search) + (cd $(DEST)/usr/share/man/man1; ln -s swish-e.1 swish-search.1) + # let's make lintian happy + mv $(DEST)/usr/bin/swish-filter-test $(DOCDIR)/examples/ + find $(DOCDIR)/examples -name '*' -exec chmod 644 {} \; + find $(DOCDIR)/examples -name '*.in' -exec rm {} \; + find $(DEST)/usr/lib/swish-e/perl -name '*.pm' -exec chmod 644 {} \; + cp -f debian/swish_filter.pl $(DOCDIR)/examples/filter-bin/ + chmod 755 $(DOCDIR)/examples/filter-bin/*.pl + chmod 755 $(DOCDIR)/examples/filter-bin/*.sh + rm -f $(DOCDIR)/README.cvs $(DOCDIR)/INSTALL + rm -f $(DOCDIR)/examples/prog-bin/*.in $(DOCDIR)/examples/prog-bin/Make* + rm -f $(DOCDIR)/examples/*.in $(DOCDIR)/examples/Make* + rm -f $(DOCDIR)/filter-bin/Make* $(DOCDIR)/conf/Make* + #rm -rf $(DESTDIR)/usr/share/swish-e + # + dh_movefiles --sourcedir=debian/swish-e + dh_installchangelogs + $(DH_STRIP) + dh_compress -Xexamples + dh_installdebconf dh_fixperms -# dh_perl -# dh_python - dh_makeshlibs dh_installdeb - dh_shlibdeps -ldebian/swish-e/usr/lib - dh_gencontrol + dh_perl + dh_makeshlibs + dh_shlibdeps -l$(DEST)/usr/lib/ + dh_gencontrol -a dh_md5sums dh_builddeb -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +binary-indep: build + +.PHONY: clean build binary binary-arch binary-indep --- swish-e-2.4.5.orig/debian/watch +++ swish-e-2.4.5/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.swish-e.org/download/index.html .*/swish-e-([0-9\.]+)\.tar\.gz debian uupdate --- swish-e-2.4.5.orig/debian/swish-e.dirs +++ swish-e-2.4.5/debian/swish-e.dirs @@ -0,0 +1,2 @@ +usr/lib/swish-e +var/cache/swish-e --- swish-e-2.4.5.orig/debian/changelog +++ swish-e-2.4.5/debian/changelog @@ -1,6 +1,183 @@ -swish-e (2.4.0-0) unstable; urgency=low +swish-e (2.4.5-2) unstable; urgency=low - * Addition of Debian build system into swish-e + * added wv and catdoc in sugests (.doc .xls and .ppt filters) + * added libdate-calc-perl in recommends (needed for swish.cgi) + * sample config file added with lots of filters: swish.config - -- Bill Moseley Thu, 15 May 2003 12:06:51 -0700 + -- Ludovic Drolez Thu, 30 Aug 2007 17:19:06 +0200 +swish-e (2.4.5-1) unstable; urgency=low + + * New upstream release. + * Added a German debconf translation. Closes: #411381 + + -- Ludovic Drolez Fri, 30 Mar 2007 10:04:30 +0200 + +swish-e (2.4.3-7) unstable; urgency=high + + * The last patch in filter.c could segfault. + + -- Ludovic Drolez Wed, 18 Oct 2006 17:58:35 +0200 + +swish-e (2.4.3-6) unstable; urgency=medium + + * Really fixed #357239, by adding quoting in filter.c + * Since quoting is now done by swish, removed it from _pdf2html.pl and README.Debian + + -- Ludovic Drolez Thu, 5 Oct 2006 20:41:24 +0200 + +swish-e (2.4.3-5) unstable; urgency=low + + * Added Open Document support in the example shown in README.Debian + * Added files to index and search the Debian documentation: search-debiandoc, swish-debiandoc + * Added quotes to the _pdf2html.pl filter. Closes: #357239 + * Added new debconf templates translations. Closes: #381853, #381676 + * Added swish-mail for improved Maildir indexing. Depends on hypermail. + * Added the man pages for swish.cgi and search.cgi + + -- Ludovic Drolez Mon, 11 Sep 2006 17:32:11 +0200 + +swish-e (2.4.3-4) unstable; urgency=medium + + * urgency=medium because of a FTBFS + * FTBFS: do not delete /usr/share/swish-e. Closes: #359819 + * Modified Makefile.PL to search for libs in ../src/.libs + Closes: #359901, #360084 + + -- Ludovic Drolez Fri, 7 Apr 2006 17:24:58 +0200 + +swish-e (2.4.3-3) unstable; urgency=low + + * Fixed a build problem. Closes: #339343. + * Updated debconf translations. Closes: #340580, #330615, #319843. + * Suggests: xpdf-utils for indexing pdf, wv for MS Doc. + * Added instructions for filters in README.Debian + * Fixed swish-filter.pl + + -- Ludovic Drolez Fri, 16 Dec 2005 16:29:59 +0100 + +swish-e (2.4.3-2) unstable; urgency=low + + * Added misc:Depends in debian/control. Closes: #332109. + + -- Ludovic Drolez Mon, 14 Nov 2005 13:56:05 +0100 + +swish-e (2.4.3-1) unstable; urgency=low + + * New upstream release + * cs.po added. Closes: #294782 + * updated watch file. + + -- Ludovic Drolez Mon, 14 Feb 2005 12:29:36 +0100 + +swish-e (2.4.2-1) unstable; urgency=low + + * New upstream release + * Corrected the man typo. Closes: #237768 + + -- Ludovic Drolez Tue, 13 Jul 2004 09:05:12 +0200 + +swish-e (2.4.1-3) unstable; urgency=low + + * Oops ! A comment was not removed to disable interactive compilation. + Closes: Bug#237332 + + -- Ludovic Drolez Thu, 11 Mar 2004 08:41:07 +0100 + +swish-e (2.4.1-2) unstable; urgency=low + + * Added a warning: new imcompatible index format. (With French translation) + Closes: Bug#227662. + * Added the swish-search symlink. Closes: Bug#235339. + + -- Ludovic Drolez Thu, 26 Feb 2004 23:16:20 +0100 + +swish-e (2.4.1-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Drolez Fri, 19 Dec 2003 09:26:00 +0100 + +swish-e (2.2.3-4) unstable; urgency=low + + * added -fPIC to CFLAGS to fix a serious bug on alpha. Closes: #216292 + + -- Ludovic Drolez Sat, 18 Oct 2003 20:29:42 +0200 + +swish-e (2.2.3-3) unstable; urgency=low + + * SWISHE.pm added. thanks to Dagfinn Ilmari Mannsker. Closes: Bug#203397 + * debian/watch added + + -- Ludovic Drolez Sun, 5 Oct 2003 12:01:18 +0200 + +swish-e (2.2.3-2) unstable; urgency=low + + * Improved package description + * Suggests 'perl' but do not depend on it + * Standards-Version: 3.5.10 + + -- Ludovic Drolez Wed, 25 Jun 2003 23:08:24 +0200 + +swish-e (2.2.3-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Drolez Thu, 8 May 2003 20:53:41 +0200 + +swish-e (2.2.2-1) unstable; urgency=low + + * New upstream release + * Standards-Version: 3.5.7 + + -- Ludovic Drolez Fri, 29 Nov 2002 22:08:21 +0100 + +swish-e (2.2.1-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Drolez Sun, 6 Oct 2002 16:10:57 +0200 + +swish-e (2.1.0.dev.26.2002.08.28-1) unstable; urgency=low + + * New upstream release + + -- Ludovic Drolez Wed, 28 Aug 2002 23:22:02 +0200 + +swish-e (2.0.5-3) unstable; urgency=low + + * Swishspider perl script added to allow direct http indexing + + -- Ludovic Drolez Fri, 8 Mar 2002 23:16:24 +0100 + +swish-e (2.0.5-2) unstable; urgency=low + + * Package adopted. Closes: #88975. + * Added a man page (based on doc/swish-e.txt). + * Conforms to Standards version 3.5.6. + + -- Ludovic Drolez Mon, 27 Aug 2001 22:19:26 +0200 + +swish-e (2.0.5-1) unstable; urgency=low + + * New upstream version. Closes: #78060. + * Package is orphaned (see #88975); maintainer set to Debian QA Group. + * Converted to debhelper. Closes: #91055, #91669. + * Conforms to Standards version 3.5.2: + * Added build dependencies. + * debian/rules: Support the `debug' build option. + * debian/copyright: Updated the location of the GPL. + * debian/copyright: Updated upstream URL. + * debian/README.debian: Contained only duplicate information; removed. + + -- Matej Vela Sat, 31 Mar 2001 06:17:31 +0200 + +swish-e (1.1-1) unstable; urgency=low + + * Initial Release. + + -- Jim Pick Fri, 13 Mar 1998 20:57:01 -0800 + +Local variables: +mode: debian-changelog +End: --- swish-e-2.4.5.orig/debian/swish_filter.pl +++ swish-e-2.4.5/debian/swish_filter.pl @@ -0,0 +1,67 @@ +#!/usr/bin/perl -w +use strict; + +# This is set to where Swish-e's "make install" installed the helper modules. +use lib qw( /usr/lib/swish-e/perl ); + + +use SWISH::Filter; + + +=pod + +This is an example of how to use the SWISH::Filter module to filter +documents using Swish-e's C feature. This will filter any +number of document types, depending on what filter modules are installed. + +This program should typically only be used for the -S fs indexing method. +For -S http the F program calls SWISH::Filter directly. And -S +prog programs written in Perl can also make use of SWISH::Filter directly. + +In general, you will not want to filter with this program if you have a lot +of files to filter. Running a perl program for many documents will be slow +(due to the compiliation of the perl program). If you have many documents +to convert with the -S fs method of indexing then consider using -S prog +with F and use the SWISH::Filter module (see +F). + +Swish-e configuration: + + FileFilter .pdf /path/to/swish_filter.pl + FileFilter .doc /path/to/swish_filter.pl + FileFilter .mp3 /path/to/swish_filter.pl + IndexContents HTML2 .pdf .mp3 + IndexContents TXT2 .doc + +Then when indexing those type of documents this program will attempt to filter (convert) +them into a text format. + +See SWISH-CONFIG documentation on Filtering for more information. + +=cut + + + my ( $work_path, $real_path ) = @ARGV; + my $filter = SWISH::Filter->new; + + if ( ! $real_path ) { $real_path = "" }; + + my $doc = $filter->convert( + document => $work_path, + name => $real_path, + content_type => $real_path, # use the real path to lookup the content type + ); + + return unless $doc; # empty doc, zero size, or no filters installed + + # Was the document converted by a filter? + my $was_filtered = $doc->was_filtered; + + print STDERR $was_filtered ? " - Filtered: $real_path\n" : " - Not filtered: $real_path ($work_path)\n"; + + # Skip if the file is not text + return if $doc->is_binary; + + # Print out the doc + my $doc_ref = $doc->fetch_doc; + print $$doc_ref; --- swish-e-2.4.5.orig/debian/swish-e.config +++ swish-e-2.4.5/debian/swish-e.config @@ -0,0 +1,13 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_version 2.0 + +#if [ ! -f /etc/backuppc/htpasswd ]; then +db_input high "swish-e/configuration-note" || true +db_go +#fi + +db_stop +exit 0 --- swish-e-2.4.5.orig/debian/swish-e.examples +++ swish-e-2.4.5/debian/swish-e.examples @@ -0,0 +1,5 @@ +debian/swish-debiandoc.config +debian/search-debiandoc +debian/swish-debiandoc +debian/swish-mail +debian/swish.config --- swish-e-2.4.5.orig/debian/postinst +++ swish-e-2.4.5/debian/postinst @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 + +# Cache library +if [ "$1" = "configure" ] +then + ldconfig +fi + +db_stop + +#DEBHELPER# + --- swish-e-2.4.5.orig/debian/swish.config +++ swish-e-2.4.5/debian/swish.config @@ -0,0 +1,200 @@ +# Swish-e Debian sample configuration file +################################################### +# DIRECTIVES COMMON to HTTP and FILESYSTEM METHODS +################################################### + +IndexFile ./index.swish-e +IndexDir /mydir +IndexName "Sample index with all filters" +IndexDescription "---" + +DefaultContents HTML2 + +# For the FileSystem Method: +# This is a space-separated list of files and +# directories you want indexed. You can specify +# more than one of these directives. +# +# For the HTTP Method: +# Use the URL's from which you want the spidering +# to begin. +# NOTE: use hmtl files rather than directories +# for this method. + +# IndexFile /home/ghill/swishRon/dir1/myindex1 +# This is what the generated index file will be. + + +#IndexName "Improvement index" +#IndexDescription "This is an index to test bug fixes in swish." +#IndexPointer "http://sunsite/~ghill/swish/index.html" +IndexAdmin "me@nobody.com" +# Extra information you can include in the index file. + +MetaNames first author swishdocpath swishtitle +# List of all the meta names used in the file to index, must be on one line. +# If no metanames DO NOT deleted the line. +# New in 2.0 -> automatic option will extract metanames dinamically +# eg: +# MetaNames automatic + +IndexReport 3 +# This is how detailed you want reporting. You can specify numbers +# 0 to 3 - 0 is totally silent, 3 is the most verbose. + +FollowSymLinks yes +# Put "yes" to follow symbolic links in indexing, else "no". + +#UseStemming no +# Put yes to apply word stemming algorithm during indexing, +# else no. See the manual for info about stemming. Default is +# no. + +#PropertyNames author +# List of meta tags names that can be retrieved with the -p option. +# Index size increases as by the formula in the manual. +# Comment out if no PropertyNames. Case insensitive + +IgnoreTotalWordCountWhenRanking yes +# Put yes to ignore the total number of words in the file +# when calculating ranking. Often better with merges and +# small files. Default is no. + +ReplaceRules remove "/mnt/eicidoc" +#ReplaceRules replace "[a-z_0-9]*_m.*\.html" "index.html" +#ReplaceRules replace "/ghill" "moreghillmore" +# ReplaceRules allow you to make changes to file pathnames +# before they're indexed. This directive uses C library +# regex.h regular expressions. +# NOTE: do not use replace "" to remove a string, +# use remove instead - you might get a core dump otherwise. + +#MinWordLimit 5 +# Set the minimum length of an indexable word. Every shorter word +# will not be indexed. +# Commenting out the line will give the defaults + +#MaxWordLimit 5 +# Set the maximum length of an indexable word. Every longer word +# will not be indexed. +# Commenting out the line will give the defaults + +#WordCharacters abcdefghijklmnopqrstuvwxyz\&#;0123456789.@|,-'"[](~!@$%^{}_+? +# WORDCHARS is a string of characters which SWISH permits to +# be in words. Any strings which do not include these characters +# will not be indexed. You can choose from any character in +# the following string: +# +# abcdefghijklmnopqrstuvwxyz0123456789_\|/-+=?!@$%^'"`~,.[]{}() +# +# Note that if you omit "0123456789&#;" you will not be able to +# index HTML entities. DO NOT use the asterisk (*), lesser than +# and greater than signs (<), (>), or colon (:). +# +# Including any of these four characters may cause funny things to happen. +# NOTE: Do not escape \ nor " and they cannot be the first letter in the string +# Commenting out the line will give the defaults + +#BeginCharacters m" +# Of the characters that you decide can go into words, this is +# a list of characters that words can begin with. It should be +# a subset of (or equal to) WordCharacters +# Same rule of syntax as for WordCharacters + +#EndCharacters \"\ +# Of the characters that you decide can go into words, this is +# a list of characters that words can begin with. It should be +# a subset of (or equal to) WordCharacters +# Same rule of syntax as for WordCharacters + +#IgnoreLastChar +# Array that contains the char that, if considered valid in the middle of +# a word need to be disreguarded when at the end. It is important to also +# set the given char's in the ENDCHARS array, otherwise the word will not +# be indexed because considered invalid. +# Commenting out the line will give the defaults +# NOTE: if " is the first char in the string it needs to be escaped with \ +# Do not escape otherwise + +#IgnoreFirstChar +# Array that contains the char that, if considered valid in the middle of +# a word need to be disreguarded when at the beginning. This was to solve +# the problem of parenthesis when there is no space between ( and the +# beginning of the word. +# Remember to add the char's to the BEGINCHARS list also. +# Commenting out the line will give the defaults +# NOTE: if " is the first char in the string it needs to be escaped with \ +# Do not escape otherwise + +#IgnoreLimit 50 1000 +# This automatically omits words that appear too often in the files +# (these words are called stopwords). Specify a whole percentage +# and a number, such as "80 256". This omits words that occur in +# over 80% of the files and appear in over 256 files. Comment out +# to turn of auto-stopwording. + +IgnoreWords File: /usr/share/doc/swish-e/examples/conf/stopwords/english.txt +# The IgnoreWords option allows you to specify words to ignore. +# Comment out for no stopwords; the word "SwishDefault" will +# include a list of default stopwords. Words should be separated by spaces +# and may span multiple directives. +# New in 2.0. File option reads stopwords from an external file +# eg: +# IgnoreWords File:filename + +IndexComments 0 +# This option allows the user decide if to index the comments in the files +# default is 1. Set to 0 if comment indexing is not required. + +#TranslateCharacters string1 string2 +# This option allows to index the characters in string1 to be indexed +# as the characteres in string2. +# This is done after htnl entities are converted +# This option is useful in languages like spanish, french, ... +# eg: +# TranslateCharacters _á -a +# This will index a_b as a-b and ámo as amo + +################################## +# DIRECTIVES for FILESYSTEMS ONLY +# Comment out if using HTTP +################################### + +IndexOnly .html .xml .txt .pdf .doc .xls .ppt .vsd .mpp .jpg .gif .zip .tar .gz +# Only files with these suffixes will be indexed. + +#NoContents .gif .xbm .au .mov .mpg .png .ps .rpm .deb .tgz .gz .tar .bz2 .zip .ppt .xls .z ,ST +IndexContents TXT .xls .txt .vsd .ppt .mpp .jpg .gif .zip .tar .gz +NoContents .jpg .gif .zip .tar .gz +#TruncateDocSize 100000 + +FileRules filename contains # % ~ .bak .orig .old old. .gif +#FileRules title contains construction example pointers +#FileRules filename is index +# Files matching the above criteria will *not* be indexed. +# The patter matching uses the C library regex.h + +StoreDescription TXT 15000 +StoreDescription HTML2 15000 +StoreDescription XML 15000 + +FilterDir /usr/share/doc/swish-e/examples/filter-bin +#FileFilter .pdf _pdf2html.pl "'%p'" +#FileFilter .pdf /usr/bin/pdftotext "'%p' -" +#Filefilter .gz gzip-filter.sh +Filefilter .pdf swish_filter.pl %p +Filefilter .doc swish_filter.pl %p +Filefilter .xls /usr/bin/xls2csv %p +Filefilter .ppt /usr/bin/catppt %p +Filefilter .vsd /usr/bin/wvSummary %p +Filefilter .mpp /usr/bin/wvSummary %p +Filefilter .jpg /bin/echo %p +Filefilter .gif /bin/echo %p +Filefilter .zip /bin/echo %p +Filefilter .tar /bin/echo %p +Filefilter .gz /bin/echo %p +#Filefilter .dot wword-filter.sh +#Filefilter .ps ghostscript-filter.sh +FileFilterMatch "/usr/bin/unzip" "-p %p content.xml" /\.(sxw|sxc|sxg|sxi|odt)$/i +# filter for mails +FileFilterMatch "/user/ludo/bin/swish-mail" %p /\,S$/ --- swish-e-2.4.5.orig/debian/swish-e-dev.files +++ swish-e-2.4.5/debian/swish-e-dev.files @@ -0,0 +1,6 @@ +usr/include +usr/lib/libswish-e.so +usr/lib/libswish-e.la +usr/lib/libswish-e.a +usr/bin/swish-config + \ No newline at end of file --- swish-e-2.4.5.orig/debian/swish-e.templates +++ swish-e-2.4.5/debian/swish-e.templates @@ -0,0 +1,7 @@ +Template: swish-e/configuration-note +Type: note +_Description: New incompatible index format + Swish-e 2.4.5 uses a new format for its indexes which is incompatible with + previous releases (2.4.3, 2.2, 2.0, ...) + . + You will have to re-index your files. --- swish-e-2.4.5.orig/debian/swish-debiandoc +++ swish-e-2.4.5/debian/swish-debiandoc @@ -0,0 +1,3 @@ +#!/bin/sh + +swish-e -c /usr/share/doc/swish-e/examples/swish-debiandoc.config --- swish-e-2.4.5.orig/debian/swish-debiandoc.config +++ swish-e-2.4.5/debian/swish-debiandoc.config @@ -0,0 +1,42 @@ +# ----- Example 1 - limit by extension ------------- +# +# Please see the swish-e documentation for +# information on configuration directives. +# Documentation is included with the swish-e +# distribution, and also can be found on-line +# at http://swish-e.org +# +# +# This example demonstrates how to limit +# indexing to just .htm and .html files. +# +#--------------------------------------------------- + +# By default, swish creates an index file in the current directory +# called "index.swish-e" (and swish uses this name by default when +# searching. This is convenient, but not always desired. + +IndexFile /var/cache/swish-e/debiandocs.index +IndexDir /usr/share/doc +IndexName "Debian documentation index" +IndexDescription "This is an index to test the Debian documentation indexation" +IndexReport 3 + +DefaultContents HTML2 + +IndexOnly .htm .html README.Debian README FAQ .txt .xml .htm.gz .html.gz README.Debian.gz README.gz FAQ.gz .txt.gz + +StoreDescription TXT 150 +StoreDescription HTML2 150 +StoreDescription XML 150 + +# If you wish to follow symbolic links use the following. +# Note that the default is "no". I you are indexing many +# files, and you do not have any symbolic links, you may +# still want to set this to "yes". This will avoid an extra +# lstat system call for every file while indexing. + +FollowSymLinks yes + +Filefilter .gz gzip "-dc '%p'" +# end of example --- swish-e-2.4.5.orig/debian/README.Debian +++ swish-e-2.4.5/debian/README.Debian @@ -1,6 +1,44 @@ swish-e for Debian ------------------- +================== -This package does not include the SWISH::API Perl module described in the documenation. +For users: +---------- + +To add a few filters to swish-e, add the following lines to your Swish +configuration file (you'll need to install xpdf-utils, wv and libmp3-tag-perl): + + FilterDir /usr/share/doc/swish-e/examples/filter-bin + Filefilter .pdf swish_filter.pl %p + Filefilter .doc swish_filter.pl %p + Filefilter .xls /usr/bin/xls2csv %p + Filefilter .ppt /usr/bin/catppt %p + Filefilter .vsd /usr/bin/wvSummary %p + Filefilter .mpp /usr/bin/wvSummary %p + Filefilter .mp3 swish_filter.pl %p + # Open Office filter + FileFilterMatch "/usr/bin/unzip" "-p %p content.xml" /\.(sxw|sxc|sxg|sxi|odt)$/i + # Simple Maildir filter + FileFilterMatch "sed" "-n 1,/base64/p < %p" /\,S$/ + # Improved Maildir filter which needs the 'hypermail' package + # FileFilterMatch "/usr/share/doc/swish-e/examples/swish-mail" %p /\,S$/ + +You can find even more filter in the sample configuration file: +/usr/share/doc/swish-e/examples/swish.config + +Indexing the Debian documentation: + +In the examples directory, 'swish-debiandoc' indexes the whole Debian +documentation, and 'search-debiandoc' searches the index created in +/var/cache/swish-e/. + +Web interface: + +If you need a WEB interface start with 'swish.cgi'. It's very simple to set-up +and use. + +For developers: +--------------- + +If you need headers and static swish-e libraries, please install the +swish-e-dev package. - -- Bill Moseley , Thu, 15 May 2003 12:06:51 -0700 --- swish-e-2.4.5.orig/debian/postrm +++ swish-e-2.4.5/debian/postrm @@ -0,0 +1,4 @@ +#!/bin/sh + +#DEBHELPER# + --- swish-e-2.4.5.orig/debian/search-debiandoc +++ swish-e-2.4.5/debian/search-debiandoc @@ -0,0 +1,4 @@ +#!/bin/sh + +swish-e -f /var/cache/swish-e/debiandocs.index -p swishdescription -w $@ + --- swish-e-2.4.5.orig/debian/copyright +++ swish-e-2.4.5/debian/copyright @@ -1,10 +1,14 @@ -This package was debianized by Bill Moseley on -Thu, 15 May 2003 12:06:51 -0700. +This package was debianized by Jim Pick jim@jimpick.com on +Fri, 13 Mar 1998 20:57:01 -0800. It was downloaded from http://swish-e.org/ -Copyright: +Upstream author: Bill Moseley -SWISH is Copyright (c) 2003, 2002 Free Software Foundation, Inc. +Copyright, License : + +SWISH is Copyright (c) 1989, 1991 Free Software Foundation, Inc. SWISH-E is distributed with no warranty under the terms of the -GNU Public License. See /usr/share/common-licenses/GPL. +GNU Public License. + +See /usr/share/common-licenses/GPL. --- swish-e-2.4.5.orig/debian/swish-mail +++ swish-e-2.4.5/debian/swish-mail @@ -0,0 +1,7 @@ +#!/bin/bash + +DIR=/tmp/swish$RANDOM + +hypermail -i -d $DIR < $1 +cat $DIR/0000.html +rm -rf $DIR