summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Knight <tomk@gentoo.org>2006-12-05 22:28:42 +0000
committerTom Knight <tomk@gentoo.org>2006-12-05 22:28:42 +0000
commitd32d689fc07d8f00a5d8d0e630bb36d53cbbc787 (patch)
treea94d11246b46d4059dc2b128e4f802516dcbb0f7 /mail-filter
parentStable for HPPA (bug #156872). (diff)
downloadhistorical-d32d689fc07d8f00a5d8d0e630bb36d53cbbc787.tar.gz
historical-d32d689fc07d8f00a5d8d0e630bb36d53cbbc787.tar.bz2
historical-d32d689fc07d8f00a5d8d0e630bb36d53cbbc787.zip
Initial import. Fixes bug #154392
Package-Manager: portage-2.1.1-r1
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamassassin-fuzzyocr/ChangeLog10
-rw-r--r--mail-filter/spamassassin-fuzzyocr/Manifest16
-rw-r--r--mail-filter/spamassassin-fuzzyocr/files/digest-spamassassin-fuzzyocr-2.3b3
-rw-r--r--mail-filter/spamassassin-fuzzyocr/metadata.xml15
-rw-r--r--mail-filter/spamassassin-fuzzyocr/spamassassin-fuzzyocr-2.3b.ebuild68
5 files changed, 112 insertions, 0 deletions
diff --git a/mail-filter/spamassassin-fuzzyocr/ChangeLog b/mail-filter/spamassassin-fuzzyocr/ChangeLog
new file mode 100644
index 000000000000..bdf2a968196f
--- /dev/null
+++ b/mail-filter/spamassassin-fuzzyocr/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for mail-filter/spamassassin-fuzzyocr
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin-fuzzyocr/ChangeLog,v 1.1 2006/12/05 22:28:42 tomk Exp $
+
+*spamassassin-fuzzyocr-2.3b (05 Dec 2006)
+
+ 05 Dec 2006; Tom Knight <tomk@gentoo.org> +metadata.xml,
+ +spamassassin-fuzzyocr-2.3b.ebuild:
+ Initial import. Fixes bug #154392
+
diff --git a/mail-filter/spamassassin-fuzzyocr/Manifest b/mail-filter/spamassassin-fuzzyocr/Manifest
new file mode 100644
index 000000000000..611982b19172
--- /dev/null
+++ b/mail-filter/spamassassin-fuzzyocr/Manifest
@@ -0,0 +1,16 @@
+DIST fuzzyocr-2.3b.tar.gz 76411 RMD160 36b77add4645b462a7eb52540aba1212d55cd3f0 SHA1 e897ed9bcdfe313af78c6d89d09726dd5fb96ae5 SHA256 10db14b33a42249de40e347a8ad26cff150c2a6f6580246bce8689d8f1dc0a82
+EBUILD spamassassin-fuzzyocr-2.3b.ebuild 1954 RMD160 e54eae64a25d3b68ad19d18703940cf6570b768d SHA1 21ab0382f69df53a3496c44b4f12e9cb6f421bd5 SHA256 fd0b2d90e1bf3de08498a30dbffc9ee49e85ba9f3b376713d62e2617aff7c6a7
+MD5 e87a8dcd16da6c6ba55f207a842c0a4d spamassassin-fuzzyocr-2.3b.ebuild 1954
+RMD160 e54eae64a25d3b68ad19d18703940cf6570b768d spamassassin-fuzzyocr-2.3b.ebuild 1954
+SHA256 fd0b2d90e1bf3de08498a30dbffc9ee49e85ba9f3b376713d62e2617aff7c6a7 spamassassin-fuzzyocr-2.3b.ebuild 1954
+MISC ChangeLog 414 RMD160 ab9d22fb03523b784a189f2809c4bcd1497cd1ff SHA1 c1ea68cdf5df7113fc53ab0ca3adf3d8ac0ac501 SHA256 3482673d7505c40117c2c57a5170f6793a794c326843ec8df4f1306654425bcb
+MD5 4d919d6fb64d15edf1ce3f8af4166d2a ChangeLog 414
+RMD160 ab9d22fb03523b784a189f2809c4bcd1497cd1ff ChangeLog 414
+SHA256 3482673d7505c40117c2c57a5170f6793a794c326843ec8df4f1306654425bcb ChangeLog 414
+MISC metadata.xml 628 RMD160 e413f05f56f644b9368a0cc26acb6cc1dbc37997 SHA1 54e1b7f0ae5f3fe42d469641f218d8b2eef73044 SHA256 fd1e71019db347f1924ed0c39c8e648c9b13bd22bedc9513c5e5a103cffeeafa
+MD5 6d85521867dc06847dda245e9abfdf6b metadata.xml 628
+RMD160 e413f05f56f644b9368a0cc26acb6cc1dbc37997 metadata.xml 628
+SHA256 fd1e71019db347f1924ed0c39c8e648c9b13bd22bedc9513c5e5a103cffeeafa metadata.xml 628
+MD5 ef2b51883c013055c460f71ab2cda785 files/digest-spamassassin-fuzzyocr-2.3b 238
+RMD160 ff580dd45e0096b3b945863e42c37c2dc62f4a20 files/digest-spamassassin-fuzzyocr-2.3b 238
+SHA256 8f570404c99302a9e5db522fd3262907566e2ef0ab6ede71ed582dfa52ec1252 files/digest-spamassassin-fuzzyocr-2.3b 238
diff --git a/mail-filter/spamassassin-fuzzyocr/files/digest-spamassassin-fuzzyocr-2.3b b/mail-filter/spamassassin-fuzzyocr/files/digest-spamassassin-fuzzyocr-2.3b
new file mode 100644
index 000000000000..a3ac2d21fb8f
--- /dev/null
+++ b/mail-filter/spamassassin-fuzzyocr/files/digest-spamassassin-fuzzyocr-2.3b
@@ -0,0 +1,3 @@
+MD5 51edf3fa63a4438ce26b2fc15f28ff00 fuzzyocr-2.3b.tar.gz 76411
+RMD160 36b77add4645b462a7eb52540aba1212d55cd3f0 fuzzyocr-2.3b.tar.gz 76411
+SHA256 10db14b33a42249de40e347a8ad26cff150c2a6f6580246bce8689d8f1dc0a82 fuzzyocr-2.3b.tar.gz 76411
diff --git a/mail-filter/spamassassin-fuzzyocr/metadata.xml b/mail-filter/spamassassin-fuzzyocr/metadata.xml
new file mode 100644
index 000000000000..f8ba390cd1f8
--- /dev/null
+++ b/mail-filter/spamassassin-fuzzyocr/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>tomk@gentoo.org</email>
+ <name>Tom Knight</name>
+ </maintainer>
+ <longdescription>This 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. The mail itself only random text and
+ random html, without any URL's or identifiable information.</longdescription>
+</pkgmetadata>
diff --git a/mail-filter/spamassassin-fuzzyocr/spamassassin-fuzzyocr-2.3b.ebuild b/mail-filter/spamassassin-fuzzyocr/spamassassin-fuzzyocr-2.3b.ebuild
new file mode 100644
index 000000000000..c6bfb8f588f1
--- /dev/null
+++ b/mail-filter/spamassassin-fuzzyocr/spamassassin-fuzzyocr-2.3b.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin-fuzzyocr/spamassassin-fuzzyocr-2.3b.ebuild,v 1.1 2006/12/05 22:28:42 tomk Exp $
+
+inherit perl-module
+
+MY_P="fuzzyocr-${PV}"
+DESCRIPTION="SpamAssassin plugin for performing Optical Character Recognition (OCR) on attached images"
+HOMEPAGE="http://fuzzyocr.own-hero.net/"
+SRC_URI="http://users.own-hero.net/~decoder/fuzzyocr/${MY_P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+DEPEND="dev-lang/perl
+ >=mail-filter/spamassassin-3.0.0"
+RDEPEND="${DEPEND}
+ media-libs/netpbm
+ media-gfx/imagemagick
+ media-libs/giflib
+ app-text/gocr
+ dev-perl/String-Approx
+ virtual/perl-Digest-MD5"
+
+S="${WORKDIR}/FuzzyOcr-${PV}"
+
+src_install() {
+ # called to get ${VENDOR_LIB}
+ perlinfo
+
+ local plugin_dir=${VENDOR_LIB}/Mail/SpamAssassin/Plugin
+
+ insinto ${plugin_dir}
+ doins FuzzyOcr.pm
+
+ insinto /etc/mail/spamassassin/
+
+ # Replace location of .pm file in config
+ sed -ie "s:FuzzyOcr.pm:${plugin_dir}/FuzzyOcr.pm:" FuzzyOcr.cf
+
+ # disable logging
+ sed -ie "s:^#focr_verbose 1:focr_verbose 0.0:" FuzzyOcr.cf
+
+ # if we're using spamassassin < 3.1.4 we need to set this variable
+ if has_version '<mail-filter/spamassassin-3.1.4'; then
+ sed -ie "s:^#focr_pre314 0.0:focr_pre314 1:" FuzzyOcr.cf
+ fi
+
+ doins FuzzyOcr.cf
+
+ newins FuzzyOcr.words.sample FuzzyOcr.words
+
+ dodoc FAQ
+ docinto samples
+ dodoc samples/*
+}
+
+
+pkg_postinst() {
+ einfo "You need to restart spamassassin (as root) before this plugin will work:"
+ einfo "/etc/init.d/spamd restart"
+ echo
+ ewarn "Certain images can cause giftext and gocr to segfault, patches are available"
+ ewarn "for both packages in bugzilla and should eventually find their way either"
+ ewarn "upstream or into the ebuilds. The patches can be found here:"
+ ewarn "gocr: https://bugs.gentoo.org/157138"
+ ewarn "giftext: https://bugs.gentoo.org/157142"
+}