diff options
author | Daniel Gryniewicz <dang@gentoo.org> | 2006-11-03 15:53:05 +0000 |
---|---|---|
committer | Daniel Gryniewicz <dang@gentoo.org> | 2006-11-03 15:53:05 +0000 |
commit | ccdfd52c00699968a4ce1f682c06501ba9c47121 (patch) | |
tree | 1aff9dc16c32c4220f81e86b10c01fca854a55a8 /mail-filter | |
parent | Add init-race fix for gstreamer from ubuntu (diff) | |
download | user-ccdfd52c00699968a4ce1f682c06501ba9c47121.tar.gz user-ccdfd52c00699968a4ce1f682c06501ba9c47121.tar.bz2 user-ccdfd52c00699968a4ce1f682c06501ba9c47121.zip |
Fix cores on token ' id '
svn path=/user/; revision=7
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/bogofilter/Manifest | 12 | ||||
-rw-r--r-- | mail-filter/bogofilter/bogofilter-1.1.1.ebuild | 73 | ||||
-rw-r--r-- | mail-filter/bogofilter/files/bogofilter-1.1.1-id-core.patch | 13 | ||||
-rw-r--r-- | mail-filter/bogofilter/files/digest-bogofilter-1.1.1 | 3 |
4 files changed, 101 insertions, 0 deletions
diff --git a/mail-filter/bogofilter/Manifest b/mail-filter/bogofilter/Manifest new file mode 100644 index 0000000..d227bf1 --- /dev/null +++ b/mail-filter/bogofilter/Manifest @@ -0,0 +1,12 @@ +AUX bogofilter-1.1.1-id-core.patch 449 RMD160 4f4d6a8981e6e4023f655eba2c473a97494e45d7 SHA1 152cd2d931a30aac328efb6d7b68d5fdd498b09f SHA256 b5828daf347d888d6b3da1575ef87d0bfe4b12ff61492d0b8ceb52ad0042675b +MD5 51f91f774884bc0a89b64d0cceddc39a files/bogofilter-1.1.1-id-core.patch 449 +RMD160 4f4d6a8981e6e4023f655eba2c473a97494e45d7 files/bogofilter-1.1.1-id-core.patch 449 +SHA256 b5828daf347d888d6b3da1575ef87d0bfe4b12ff61492d0b8ceb52ad0042675b files/bogofilter-1.1.1-id-core.patch 449 +DIST bogofilter-1.1.1.tar.bz2 790929 RMD160 0510317b5cac1197dc99e837b0fc67471422c9d3 SHA1 5c88e00f0b8415eb6a9b4274f5a4a335639a40b9 SHA256 98684dd687139af5c04ed73c3c64016f7ec9e951da8d435d9666a9a036099fa5 +EBUILD bogofilter-1.1.1.ebuild 2247 RMD160 38aa09424c3f81b9407e1b5a4ae34874b001ab87 SHA1 b060a5cce1b6b317dd21c524f8200981595a8f2e SHA256 247026bb4fb5bd53a2736b5bfc680e47fd5d2ea6f5a916c7656722bc5ec7b752 +MD5 1ee091ba2e54ee8e1f1f4e75b74ee2c4 bogofilter-1.1.1.ebuild 2247 +RMD160 38aa09424c3f81b9407e1b5a4ae34874b001ab87 bogofilter-1.1.1.ebuild 2247 +SHA256 247026bb4fb5bd53a2736b5bfc680e47fd5d2ea6f5a916c7656722bc5ec7b752 bogofilter-1.1.1.ebuild 2247 +MD5 b8e0e6cb411b297e2d338fe300ee9bbe files/digest-bogofilter-1.1.1 253 +RMD160 97fecdec25faf7c29fd7fb8761b27a54d00313e3 files/digest-bogofilter-1.1.1 253 +SHA256 60de5207a6505e04638e479ab398b93193f89a134d006d538d76fb4f9a383dc0 files/digest-bogofilter-1.1.1 253 diff --git a/mail-filter/bogofilter/bogofilter-1.1.1.ebuild b/mail-filter/bogofilter/bogofilter-1.1.1.ebuild new file mode 100644 index 0000000..5e62182 --- /dev/null +++ b/mail-filter/bogofilter/bogofilter-1.1.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/bogofilter/bogofilter-1.1.1.ebuild,v 1.5 2006/11/01 22:30:19 kloeri Exp $ + +inherit eutils + +DESCRIPTION="Bayesian spam filter designed with fast algorithms, and tuned for speed." +HOMEPAGE="http://bogofilter.sourceforge.net/" +SRC_URI="mirror://sourceforge/bogofilter/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ia64 ppc ppc64 sparc ~x86" +#KEYWORDS="${KEYWORDS} ~arm ~mips" # missing, see bug #74046 +IUSE="gsl berkdb sqlite" + +DEPEND="virtual/libiconv + berkdb? ( >=sys-libs/db-3.2 ) + !berkdb? ( + sqlite? ( >=dev-db/sqlite-3.2.6 ) + !sqlite? ( >=sys-libs/db-3.2 ) ) + gsl? ( sci-libs/gsl )" +# app-arch/pax" # only needed for bf_tar + +src_compile() { + epatch ${FILESDIR}/${P}-id-core.patch + + local myconf="" + myconf="$(use_with !gsl included-gsl)" + + # determine backend: berkdb *is* default + if use berkdb && use sqlite ; then + einfo "Both berkdb and sqlite are in USE." + einfo "Choosing berkdb as default database backend." + elif use sqlite ; then + myconf="${myconf} --with-database=sqlite" + elif ! use berkdb ; then + einfo "Using berkdb as database backend." + fi + + econf ${myconf} || die "configure failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + exeinto /usr/share/${PN}/contrib + doexe contrib/{bogofilter-qfe,parmtest,randomtrain}.sh \ + contrib/{bfproxy,bogominitrain,mime.get.rfc822,printmaildir}.pl \ + contrib/{spamitarium,stripsearch}.pl || die "doexec failed" + + insinto /usr/share/${PN}/contrib + doins contrib/{README.*,dot-qmail-bogofilter-default} \ + contrib/{bogogrep.c,bogo.R,bogofilter-milter.pl,*.example} \ + contrib/vm-bogofilter.el \ + contrib/{trainbogo,scramble}.sh || die "doins failed" + + dodoc AUTHORS NEWS README RELEASE.NOTES* TODO GETTING.STARTED \ + doc/integrating-with-* doc/README.{db,sqlite} || die "dodoc failed" + + dohtml doc/*.html + + dodir /usr/share/doc/${PF}/samples + mv "${D}"/etc/bogofilter.cf.example "${D}"/usr/share/doc/${PF}/samples/ + rmdir "${D}"/etc +} + +pkg_postinst() { + echo + einfo "If you need ${ROOT}usr/bin/bf_tar please install app-arch/pax." + echo +} diff --git a/mail-filter/bogofilter/files/bogofilter-1.1.1-id-core.patch b/mail-filter/bogofilter/files/bogofilter-1.1.1-id-core.patch new file mode 100644 index 0000000..33d3239 --- /dev/null +++ b/mail-filter/bogofilter/files/bogofilter-1.1.1-id-core.patch @@ -0,0 +1,13 @@ +diff --exclude-from=/home/dang/.diffrc -up -ruN bogofilter-1.1.1.orig/src/token.c bogofilter-1.1.1/src/token.c +--- bogofilter-1.1.1.orig/src/token.c 2006-08-10 21:43:59.000000000 -0400 ++++ bogofilter-1.1.1/src/token.c 2006-11-03 10:42:23.000000000 -0500 +@@ -352,6 +352,9 @@ token_t parse_new_token(word_t *token) + text += 1; + leng -= 1; + } ++ if (leng == 0) { ++ continue; ++ } + if (text[leng-1] == '>') { + leng -= 1; + } diff --git a/mail-filter/bogofilter/files/digest-bogofilter-1.1.1 b/mail-filter/bogofilter/files/digest-bogofilter-1.1.1 new file mode 100644 index 0000000..424c90e --- /dev/null +++ b/mail-filter/bogofilter/files/digest-bogofilter-1.1.1 @@ -0,0 +1,3 @@ +MD5 e7f236002daf22d732cad0433adac2ff bogofilter-1.1.1.tar.bz2 790929 +RMD160 0510317b5cac1197dc99e837b0fc67471422c9d3 bogofilter-1.1.1.tar.bz2 790929 +SHA256 98684dd687139af5c04ed73c3c64016f7ec9e951da8d435d9666a9a036099fa5 bogofilter-1.1.1.tar.bz2 790929 |