packages: spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian....
blues
blues at pld-linux.org
Tue Apr 6 16:51:56 CEST 2010
Author: blues Date: Tue Apr 6 14:51:56 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- update debian patch
---- Files affected:
packages/spamassassin-plugin-fuzzyocr:
spamassassin-plugin-fuzzyocr-debian.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch
diff -u packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch:1.1 packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch:1.2
--- packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch:1.1 Tue May 19 20:01:10 2009
+++ packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch Tue Apr 6 16:51:51 2010
@@ -1,7 +1,3 @@
---- fuzzyocr-3.5.1+svn135.orig/debian/compat
-+++ fuzzyocr-3.5.1+svn135/debian/compat
-@@ -0,0 +1 @@
-+5
--- fuzzyocr-3.5.1+svn135.orig/debian/rules
+++ fuzzyocr-3.5.1+svn135/debian/rules
@@ -0,0 +1,90 @@
@@ -95,72 +91,51 @@
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
---- fuzzyocr-3.5.1+svn135.orig/debian/fuzzyocr.postinst
-+++ fuzzyocr-3.5.1+svn135/debian/fuzzyocr.postinst
-@@ -0,0 +1,12 @@
+--- fuzzyocr-3.5.1+svn135.orig/debian/postinst
++++ fuzzyocr-3.5.1+svn135/debian/postinst
+@@ -0,0 +1,42 @@
+#!/bin/sh
++# postinst script for fuzzyocr
++#
++# see: dh_installdeb(1)
++
+set -e
+
-+if [ -x "/etc/init.d/spamassassin" ]; then
-+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-+ invoke-rc.d spamassassin restart || exit $?
-+ else
-+ /etc/init.d/spamassassin restart || exit $?
++# summary of how this script can be called:
++# * <postinst> `configure' <most-recently-configured-version>
++# * <old-postinst> `abort-upgrade' <new version>
++# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
++# <new-version>
++# * <postinst> `abort-remove'
++# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
++# <failed-install-package> <version> `removing'
++# <conflicting-package> <version>
++# for details, see http://www.debian.org/doc/debian-policy/ or
++# the debian-policy package
++
++
++case "$1" in
++ configure)
++ if [ -x "/etc/init.d/spamassassin" ]; then
++ invoke-rc.d spamassassin start || exit $?
+ fi
-+fi
++ ;;
+
-+#DEBHELPER#
---- fuzzyocr-3.5.1+svn135.orig/debian/copyright
-+++ fuzzyocr-3.5.1+svn135/debian/copyright
-@@ -0,0 +1,21 @@
-+This package was debianized by A Mennucc1 <mennucc1 at debian.org> on
-+Thu, 30 Nov 2006 11:13:32 +0100.
++ abort-upgrade|abort-remove|abort-deconfigure)
++ ;;
+
-+It was downloaded from the SVN repository https://svn.own-hero.net/fuzzyocr
-+see also http://wiki.apache.org/spamassassin/FuzzyOcrPlugin
-+or http://fuzzyocr.own-hero.net/
-+
-+Upstream Author: Christian Holler <decoder at own-hero.net>
-+
-+Copyright: Christian Holler and Jorge Valdes
++ *)
++ echo "postinst called with unknown argument \`$1'" >&2
++ exit 1
++ ;;
++esac
+
-+The Debian packaging is (C) 2006-2008, A Mennucc <mennucc1 at debian.org> and
-+is licensed under the GPL, see `/usr/share/common-licenlses/GPL'.
++# dh_installdeb will replace this with shell code automatically
++# generated by other debhelper scripts.
+
++#DEBHELPER#
+
-+The fuzzyocr license is the
-+ Apache License
-+ Version 2.0, January 2004
-+ http://www.apache.org/licenses/
-+See /usr/share/common-licenses/Apache-2.0 for the full text.
-+
---- fuzzyocr-3.5.1+svn135.orig/debian/control
-+++ fuzzyocr-3.5.1+svn135/debian/control
-@@ -0,0 +1,24 @@
-+Source: fuzzyocr
-+Section: mail
-+Priority: extra
-+Maintainer: A Mennucc1 <mennucc1 at debian.org>
-+Build-Depends: debhelper (>= 5), quilt
-+Standards-Version: 3.8.0.0
-+
-+Package: fuzzyocr
-+Architecture: all
-+Depends: spamassassin (>= 3), tesseract-ocr-eng | gocr | ocrad, netpbm, libungif-bin (>= 4), gifsicle, libstring-approx-perl, libdigest-md5-perl, libmldbm-sync-perl, libtie-cache-perl, libdbd-mysql-perl
-+Conflicts: fuzzyocr3
-+Description: spamassassin plugin to check image attachments
-+ This Spamassassin plugin checks for specific keywords in image/gif,
-+ image/jpeg or image/png attachments, using gocr (an optical character
-+ recognition program). This plugin can be used to detect spam that
-+ puts all the real spam content in an attached image, while the mail
-+ itself is only random text and random html, without any URL's or
-+ identifiable information. Additionally to the normal OcrPlugin, it
-+ can do approximate matches on words, so errors in recognition or
-+ attempts to obfuscate the text inside the image will not cause the
-+ detection to fail.
-+ .
-+ This is a development version from SVN. Currently, this SVN
-+ version is the only one that works with spamassassin 3.2.
++exit 0
--- fuzzyocr-3.5.1+svn135.orig/debian/README.Debian
+++ fuzzyocr-3.5.1+svn135/debian/README.Debian
@@ -0,0 +1,73 @@
@@ -237,24 +212,89 @@
+ the third party tools
+ o Context based word sets instead of simple lists to prevent
+ false positives (planned for 3.5)
---- fuzzyocr-3.5.1+svn135.orig/debian/fuzzyocr.postrm
-+++ fuzzyocr-3.5.1+svn135/debian/fuzzyocr.postrm
-@@ -0,0 +1,12 @@
+--- fuzzyocr-3.5.1+svn135.orig/debian/postrm
++++ fuzzyocr-3.5.1+svn135/debian/postrm
+@@ -0,0 +1,43 @@
+#!/bin/sh
++# postrm script for fuzzyocr
++#
++# see: dh_installdeb(1)
++
+set -e
+
-+if [ -x "/etc/init.d/spamassassin" ]; then
-+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-+ invoke-rc.d spamassassin restart || exit $?
-+ else
-+ /etc/init.d/spamassassin restart || exit $?
++# summary of how this script can be called:
++# * <postrm> `remove'
++# * <postrm> `purge'
++# * <old-postrm> `upgrade' <new-version>
++# * <new-postrm> `failed-upgrade' <old-version>
++# * <new-postrm> `abort-install'
++# * <new-postrm> `abort-install' <old-version>
++# * <new-postrm> `abort-upgrade' <old-version>
++# * <disappearer's-postrm> `disappear' <overwriter>
++# <overwriter-version>
++# for details, see http://www.debian.org/doc/debian-policy/ or
++# the debian-policy package
++
++
++case "$1" in
++ purge|remove)
++ if [ -x "/etc/init.d/spamassassin" ]; then
++ invoke-rc.d spamassassin restart || exit $?
+ fi
-+fi
++ ;;
++
++ upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
++ ;;
++
++ *)
++ echo "postrm called with unknown argument \`$1'" >&2
++ exit 1
++ ;;
++esac
++
++# dh_installdeb will replace this with shell code automatically
++# generated by other debhelper scripts.
+
+#DEBHELPER#
++
++exit 0
+--- fuzzyocr-3.5.1+svn135.orig/debian/copyright
++++ fuzzyocr-3.5.1+svn135/debian/copyright
+@@ -0,0 +1,31 @@
++This package was debianized by A Mennucc1 <mennucc1 at debian.org> on
++Thu, 30 Nov 2006 11:13:32 +0100.
++
++It was downloaded from the SVN repository https://svn.own-hero.net/fuzzyocr
++see also http://wiki.apache.org/spamassassin/FuzzyOcrPlugin
++or http://fuzzyocr.own-hero.net/
++
++Upstream Author: Christian Holler <decoder at own-hero.net>
++
++Copyright: 2006-2008 Christian Holler and Jorge Valdes
++
++ Licensed to the Apache Software Foundation (ASF) under one or more
++ contributor license agreements. See the NOTICE file distributed with
++ this work for additional information regarding copyright ownership.
++ The ASF licenses this file to you 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.
++
++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 is copyright 2006-2008, A Mennucc <mennucc1 at debian.org>
++and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- fuzzyocr-3.5.1+svn135.orig/debian/watch
+++ fuzzyocr-3.5.1+svn135/debian/watch
-@@ -0,0 +1,11 @@
+@@ -0,0 +1,12 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
@@ -265,10 +305,109 @@
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
-+http://fuzzyocr.own-hero.net/wiki/Downloads http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-(.*)\.tar\.gz
++opts=uversionmangle=s/([0-9.]+)(-devel)?/$1/,dversionmangle=s/\+svn[0-9]+$// \
++ http://fuzzyocr.own-hero.net/wiki/Downloads http://users.own-hero.net/~decoder/fuzzyocr/fuzzyocr-(.*)\.tar\.gz
+--- fuzzyocr-3.5.1+svn135.orig/debian/compat
++++ fuzzyocr-3.5.1+svn135/debian/compat
+@@ -0,0 +1 @@
++5
+--- fuzzyocr-3.5.1+svn135.orig/debian/preinst
++++ fuzzyocr-3.5.1+svn135/debian/preinst
+@@ -0,0 +1,38 @@
++#!/bin/sh
++# preinst script for fuzzyocr
++#
++# see: dh_installdeb(1)
++
++set -e
++
++# summary of how this script can be called:
++# * <new-preinst> `install'
++# * <new-preinst> `install' <old-version>
++# * <new-preinst> `upgrade' <old-version>
++# * <old-preinst> `abort-upgrade' <new-version>
++# for details, see http://www.debian.org/doc/debian-policy/ or
++# the debian-policy package
++
++
++case "$1" in
++ install|upgrade)
++ if [ -x "/etc/init.d/spamassassin" ]; then
++ invoke-rc.d spamassassin stop || exit $?
++ fi
++ ;;
++
++ abort-upgrade)
++ ;;
++
++ *)
++ echo "preinst called with unknown argument \`$1'" >&2
++ exit 1
++ ;;
++esac
++
++# dh_installdeb will replace this with shell code automatically
++# generated by other debhelper scripts.
++
++#DEBHELPER#
++
++exit 0
+--- fuzzyocr-3.5.1+svn135.orig/debian/control
++++ fuzzyocr-3.5.1+svn135/debian/control
+@@ -0,0 +1,25 @@
++Source: fuzzyocr
++Section: mail
++Priority: extra
++Maintainer: A Mennucc1 <mennucc1 at debian.org>
++Build-Depends: debhelper (>= 5), quilt
++Standards-Version: 3.8.1
++Homepage: http://fuzzyocr.own-hero.net/
++
++Package: fuzzyocr
++Architecture: all
++Depends: spamassassin (>= 3), tesseract-ocr-eng | gocr | ocrad, netpbm, giflib-tools, gifsicle, libstring-approx-perl, libdigest-md5-perl, libmldbm-sync-perl, libtie-cache-perl, libdbd-mysql-perl
++Conflicts: fuzzyocr3
++Description: spamassassin plugin to check image attachments
++ This Spamassassin plugin checks for specific keywords in image/gif,
++ image/jpeg or image/png attachments, using gocr (an optical character
++ recognition program). This plugin can be used to detect spam that
++ puts all the real spam content in an attached image, while the mail
++ itself is only random text and random html, without any URL's or
++ identifiable information. Additionally to the normal OcrPlugin, it
++ can do approximate matches on words, so errors in recognition or
++ attempts to obfuscate the text inside the image will not cause the
++ detection to fail.
++ .
++ This is a development version from SVN. Currently, this SVN
++ version is the only one that works with spamassassin 3.2.
--- fuzzyocr-3.5.1+svn135.orig/debian/changelog
+++ fuzzyocr-3.5.1+svn135/debian/changelog
-@@ -0,0 +1,56 @@
+@@ -0,0 +1,81 @@
++fuzzyocr (3.5.1+svn135-1.2) unstable; urgency=low
++
++ * Non-maintainer upload.
++ * giflib provided a transitional package for libungif-bin and
++ reduced it to a simple provides now. As versioned dependencies
++ on provided packages do not work, move the dependency over to
++ giflib-tools. (Closes: #540459)
++
++ -- Philipp Kern <pkern at debian.org> Sat, 22 Aug 2009 14:28:36 +0200
++
++fuzzyocr (3.5.1+svn135-1.1) unstable; urgency=low
++
++ * Non-maintainer upload.
++ * Fix perl warning causing problems in FuzzyOcr preprocessor
++ (closes: #522285, #525413)
++ * Redo maintainer scripts from debhelper templates and split the
++ postinst into a preinst and a postinst (closes: #500950)
++
++ * Add homepage field in debian/control
++ * Bump Standards-Version up to 3.8.1
++ * Cleanup debian/copyright to fix lintian warnings
++ * Fix watch file to demangle upstream and debian versions
++
++ -- Francois Marier <francois at debian.org> Fri, 08 May 2009 12:46:29 +1200
++
+fuzzyocr (3.5.1+svn135-1) unstable; urgency=low
+
+ * This version works with spamassassin 3.2 (Closes: #500426)
@@ -325,6 +464,132 @@
+
+ -- A Mennucc1 <mennucc1 at debian.org> Thu, 30 Nov 2006 11:13:32 +0100
+
+--- fuzzyocr-3.5.1+svn135.orig/debian/patches/enable-tesseract
++++ fuzzyocr-3.5.1+svn135/debian/patches/enable-tesseract
+@@ -0,0 +1,25 @@
++Index: fuzzyocr-3+svn135/FuzzyOcr.scansets
++===================================================================
++--- fuzzyocr-3+svn135.orig/FuzzyOcr.scansets 2008-09-28 11:16:06.000000000 +0200
+++++ fuzzyocr-3+svn135/FuzzyOcr.scansets 2008-09-28 11:16:13.000000000 +0200
++@@ -44,13 +44,13 @@
++ args = -l 180 -d 2 -i $input
++ }
++
++-# An example Scanset how to use tesseract (disabled by default)
++-#scanset tesseract {
++-# preprocessors = maketiff
++-# command = $tesseract
++-# args = $input $output
++-# force_output_in = $output.txt
++-#}
+++# An example Scanset how to use tesseract
+++scanset tesseract {
+++ preprocessors = maketiff
+++ command = $tesseract
+++ args = $input $output
+++ force_output_in = $output.txt
+++}
++
++ # Another example, this basically does the same as the inverted Ocrad Scanset
++ # Only listed here to serve as example, ocrad-invert does this already
+--- fuzzyocr-3.5.1+svn135.orig/debian/patches/series
++++ fuzzyocr-3.5.1+svn135/debian/patches/series
+@@ -0,0 +1,5 @@
++general
++netpbm-DFSG
++fix_tesseract_
++enable-tesseract
++silence_log
+--- fuzzyocr-3.5.1+svn135.orig/debian/patches/netpbm-DFSG
++++ fuzzyocr-3.5.1+svn135/debian/patches/netpbm-DFSG
+@@ -0,0 +1,51 @@
++--- fuzzyocr-svn-135.orig/FuzzyOcr.cf
+++++ fuzzyocr-svn-135/FuzzyOcr.cf
++@@ -99,7 +99,8 @@ priority FUZZY_OCR 900
++
++ # Include additional scanner/preprocessor commands here:
++ #
++-focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
+++focr_bin_helper pnmnorm, pnminvert, ppmtopgm
+++#not available in Debian: pamthreshold,pamtopnm
++ focr_bin_helper tesseract
++
++ # These helpers must be defined before enabling PDF scanning
++--- fuzzyocr-svn-135.orig/FuzzyOcr.preps
+++++ fuzzyocr-svn-135/FuzzyOcr.preps
++@@ -16,17 +16,6 @@ preprocessor ppmtopgm {
++ command = ppmtopgm
++ }
++
++-# Converts PAM to PNM
++-preprocessor pamtopnm {
++- command = pamtopnm
++-}
++-
++-# Uses thresholding on the PAM file
++-preprocessor pamthreshold {
++- command = pamthreshold
++- args = -simple -threshold 0.5
++-}
++-
++ # converts PNM to TIFF (this is used for tesseract)
++ preprocessor maketiff {
++ command = pnmtotiff
++--- fuzzyocr-svn-135.orig/FuzzyOcr.scansets 2008-09-26 17:08:02.000000000 +0200
+++++ fuzzyocr-svn-135/FuzzyOcr.scansets 2008-09-26 17:13:31.000000000 +0200
++@@ -20,14 +20,14 @@
++
++ # Inverted Ocrad scanset with decolorization
++ scanset ocrad-decolorize-invert {
++- preprocessors = ppmtopgm, pamthreshold, pamtopnm
+++ preprocessors = ppmtopgm
++ command = $ocrad
++ args = -s5 -i $input
++ }
++
++ # Ocrad scanset with decolorization
++ scanset ocrad-decolorize {
++- preprocessors = ppmtopgm, pamthreshold, pamtopnm
+++ preprocessors = ppmtopgm
++ command = $ocrad
++ args = -s5 $input
++ }
+--- fuzzyocr-3.5.1+svn135.orig/debian/patches/fix_tesseract_
++++ fuzzyocr-3.5.1+svn135/debian/patches/fix_tesseract_
+@@ -0,0 +1,33 @@
++Index: fuzzyocr-3+svn135/FuzzyOcr/Preprocessor.pm
++===================================================================
++--- fuzzyocr-3+svn135.orig/FuzzyOcr/Preprocessor.pm 2008-09-28 11:12:08.000000000 +0200
+++++ fuzzyocr-3+svn135/FuzzyOcr/Preprocessor.pm 2008-09-28 11:18:12.000000000 +0200
++@@ -32,6 +32,10 @@
++ my $tmpdir = FuzzyOcr::Config::get_tmpdir();
++ my $label = $self->{label};
++ my $output = "$tmpdir/prep.$label.out";
+++
+++ if ($label eq "maketiff") {
+++ $output = "$tmpdir/prep.$label.tif";
+++ }
++ my $stderr = ">$tmpdir/prep.$label.err";
++
++ my $stdin = undef;
++Index: fuzzyocr-3+svn135/FuzzyOcr/Scanset.pm
++===================================================================
++--- fuzzyocr-3+svn135.orig/FuzzyOcr/Scanset.pm 2008-09-28 11:15:30.000000000 +0200
+++++ fuzzyocr-3+svn135/FuzzyOcr/Scanset.pm 2008-09-28 11:19:07.000000000 +0200
++@@ -80,7 +80,12 @@
++ return ($retcode, at result);
++ }
++ # Input of next processor is output of last
++- $input = "$tmpdir/prep.$plabel.out";
+++ # Output name of maketiff is special!
+++ if ($plabel eq "maketiff") {
+++ $input = "$tmpdir/prep.$plabel.tif";
+++ } else {
+++ $input = "$tmpdir/prep.$plabel.out";
+++ }
++ }
++ }
++
--- fuzzyocr-3.5.1+svn135.orig/debian/patches/general
+++ fuzzyocr-3.5.1+svn135/debian/patches/general
@@ -0,0 +1,88 @@
@@ -416,14 +681,6 @@
+ buy
+ price::0.2
+ trade
---- fuzzyocr-3.5.1+svn135.orig/debian/patches/series
-+++ fuzzyocr-3.5.1+svn135/debian/patches/series
-@@ -0,0 +1,5 @@
-+general
-+netpbm-DFSG
-+fix_tesseract_
-+enable-tesseract
-+silence_log
--- fuzzyocr-3.5.1+svn135.orig/debian/patches/silence_log
+++ fuzzyocr-3.5.1+svn135/debian/patches/silence_log
@@ -0,0 +1,12 @@
@@ -439,124 +696,3 @@
+ }
+ }
+ }
---- fuzzyocr-3.5.1+svn135.orig/debian/patches/netpbm-DFSG
-+++ fuzzyocr-3.5.1+svn135/debian/patches/netpbm-DFSG
-@@ -0,0 +1,51 @@
-+--- fuzzyocr-svn-135.orig/FuzzyOcr.cf
-++++ fuzzyocr-svn-135/FuzzyOcr.cf
-+@@ -99,7 +99,8 @@ priority FUZZY_OCR 900
-+
-+ # Include additional scanner/preprocessor commands here:
-+ #
-+-focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
-++focr_bin_helper pnmnorm, pnminvert, ppmtopgm
-++#not available in Debian: pamthreshold,pamtopnm
-+ focr_bin_helper tesseract
-+
-+ # These helpers must be defined before enabling PDF scanning
-+--- fuzzyocr-svn-135.orig/FuzzyOcr.preps
-++++ fuzzyocr-svn-135/FuzzyOcr.preps
-+@@ -16,17 +16,6 @@ preprocessor ppmtopgm {
-+ command = ppmtopgm
-+ }
-+
-+-# Converts PAM to PNM
-+-preprocessor pamtopnm {
-+- command = pamtopnm
-+-}
-+-
-+-# Uses thresholding on the PAM file
-+-preprocessor pamthreshold {
-+- command = pamthreshold
-+- args = -simple -threshold 0.5
-+-}
-+-
-+ # converts PNM to TIFF (this is used for tesseract)
-+ preprocessor maketiff {
-+ command = pnmtotiff
-+--- fuzzyocr-svn-135.orig/FuzzyOcr.scansets 2008-09-26 17:08:02.000000000 +0200
-++++ fuzzyocr-svn-135/FuzzyOcr.scansets 2008-09-26 17:13:31.000000000 +0200
-+@@ -20,14 +20,14 @@
-+
-+ # Inverted Ocrad scanset with decolorization
-+ scanset ocrad-decolorize-invert {
-+- preprocessors = ppmtopgm, pamthreshold, pamtopnm
-++ preprocessors = ppmtopgm
-+ command = $ocrad
-+ args = -s5 -i $input
-+ }
-+
-+ # Ocrad scanset with decolorization
-+ scanset ocrad-decolorize {
-+- preprocessors = ppmtopgm, pamthreshold, pamtopnm
-++ preprocessors = ppmtopgm
-+ command = $ocrad
-+ args = -s5 $input
-+ }
---- fuzzyocr-3.5.1+svn135.orig/debian/patches/enable-tesseract
-+++ fuzzyocr-3.5.1+svn135/debian/patches/enable-tesseract
-@@ -0,0 +1,25 @@
-+Index: fuzzyocr-3+svn135/FuzzyOcr.scansets
-+===================================================================
-+--- fuzzyocr-3+svn135.orig/FuzzyOcr.scansets 2008-09-28 11:16:06.000000000 +0200
-++++ fuzzyocr-3+svn135/FuzzyOcr.scansets 2008-09-28 11:16:13.000000000 +0200
-+@@ -44,13 +44,13 @@
-+ args = -l 180 -d 2 -i $input
-+ }
-+
-+-# An example Scanset how to use tesseract (disabled by default)
-+-#scanset tesseract {
-+-# preprocessors = maketiff
-+-# command = $tesseract
-+-# args = $input $output
-+-# force_output_in = $output.txt
-+-#}
-++# An example Scanset how to use tesseract
-++scanset tesseract {
-++ preprocessors = maketiff
-++ command = $tesseract
-++ args = $input $output
-++ force_output_in = $output.txt
-++}
-+
-+ # Another example, this basically does the same as the inverted Ocrad Scanset
-+ # Only listed here to serve as example, ocrad-invert does this already
---- fuzzyocr-3.5.1+svn135.orig/debian/patches/fix_tesseract_
-+++ fuzzyocr-3.5.1+svn135/debian/patches/fix_tesseract_
-@@ -0,0 +1,36 @@
-+Index: fuzzyocr-3+svn135/FuzzyOcr/Preprocessor.pm
-+===================================================================
-+--- fuzzyocr-3+svn135.orig/FuzzyOcr/Preprocessor.pm 2008-09-28 11:12:08.000000000 +0200
-++++ fuzzyocr-3+svn135/FuzzyOcr/Preprocessor.pm 2008-09-28 11:18:12.000000000 +0200
-+@@ -31,7 +31,12 @@
-+ my ($self, $input) = @_;
-+ my $tmpdir = FuzzyOcr::Config::get_tmpdir();
-+ my $label = $self->{label};
-+- my $output = "$tmpdir/prep.$label.out";
-++
-++ if ($label eq "maketiff") {
-++ $output = "$tmpdir/prep.$label.tif";
-++ } else {
-++ my $output = "$tmpdir/prep.$label.out";
-++ }
-+ my $stderr = ">$tmpdir/prep.$label.err";
-+
-+ my $stdin = undef;
-+Index: fuzzyocr-3+svn135/FuzzyOcr/Scanset.pm
-+===================================================================
-+--- fuzzyocr-3+svn135.orig/FuzzyOcr/Scanset.pm 2008-09-28 11:15:30.000000000 +0200
-++++ fuzzyocr-3+svn135/FuzzyOcr/Scanset.pm 2008-09-28 11:19:07.000000000 +0200
-+@@ -80,7 +80,12 @@
-+ return ($retcode, at result);
-+ }
-+ # Input of next processor is output of last
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/spamassassin-plugin-fuzzyocr/spamassassin-plugin-fuzzyocr-debian.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list