summaryrefslogtreecommitdiff
path: root/mail-filter/bogofilter
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-04-16 13:07:24 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-04-16 13:07:24 +0100
commit0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch)
tree464c922e949c7e4d5d891fb2cdda5daee5612537 /mail-filter/bogofilter
parente68d405c5d712af4387159df07e226217bdda049 (diff)
gentoo resync : 16.04.2022
Diffstat (limited to 'mail-filter/bogofilter')
-rw-r--r--mail-filter/bogofilter/Manifest3
-rw-r--r--mail-filter/bogofilter/bogofilter-1.2.4-r4.ebuild131
-rw-r--r--mail-filter/bogofilter/files/bogofilter-1.2.4-test-env.patch11
3 files changed, 0 insertions, 145 deletions
diff --git a/mail-filter/bogofilter/Manifest b/mail-filter/bogofilter/Manifest
index fe6cdb5587ff..91a3e0ebdcc8 100644
--- a/mail-filter/bogofilter/Manifest
+++ b/mail-filter/bogofilter/Manifest
@@ -1,6 +1,3 @@
-AUX bogofilter-1.2.4-test-env.patch 392 BLAKE2B a72f6e0c08ca9f100188fff9da98ca41b45c87b42abbc6f68432eef597eb691609130d57f8723a800da6eaabbf87b87e4eed79539a5cf6f88539803d8f9bc4fb SHA512 c9f08a1af44d3281aff119a821423adbb9533cd49d87986a13d817db8d9446bc48a195b964527940aa0e41f5106bd4d7b2a9684c6c725bafed95adb8d3e87e96
-DIST bogofilter-1.2.4.tar.bz2 887848 BLAKE2B 4ed5c15a44f5a166e3858581ccc59b36ebde2fe1eb402cc0471378600b555b2452f4eae04d7d37dcb7638568db0c196da2d2504a3a569d7571c4aacd7e0ceea7 SHA512 e8c0b6bcc14f12fbbb2752e697a6d9065e17abfca3f70045ce9fe668d01c1cfad4adaa35c81546ecdd3639b0c28f3f4776bb5ed4699f21e9e2a5b19ca33479db
DIST bogofilter-1.2.5.tar.xz 801240 BLAKE2B 90fc5f0ab258ada722ca2fb79d17279b621eb089f646eade2ab41b78c44deea7f3fd8f219053e09ce5b4c64f5fc81f43a17c20b84261b22d5529c06106e80b3c SHA512 3a7280485cfe5802dd3e9721c153f88ccf28bff7a6a24590e985e860d1f1e0ddea7bde8a8e5ad1ff643e94c9fd7b26b2a5ed5a9fb991cee3fd5b0ce67ce9abfe
-EBUILD bogofilter-1.2.4-r4.ebuild 3776 BLAKE2B e0bffa62baae01db3dfef701d5a90390d3e015b55f2afb46cbda633159fe487d1c73ab5beee0dd3c40f79d4f13fd9656f4badff3fbd33a360029b306ac3be7a7 SHA512 dea7dc0104cf55cba814ebb0294e6e1992e3c7cece64700b1ea2362a1f964b93573cf6b65b5565b39acbe44bec132e98d4543feef0b0a7b94bb1708ee91b9bc3
EBUILD bogofilter-1.2.5-r1.ebuild 3736 BLAKE2B 2be17450d94894fed151bd137be49fbb71230b81b3c24b05d49147f8bffffaf89d39d3a967d0d79d312f1f46f65f23c75ea3e726ad7e5d484b803e123a8eb36c SHA512 36edae8fc51a25e4c5b5319a7d73010d3cff697785f027954d18c8bf1bf98d272e3e7c7d66967b5b9973cc6dbf0a482dd47a675f19aa975b7111bdc0fadddce8
MISC metadata.xml 604 BLAKE2B d67129c25f986ca450dd263215cf6f88b5ee0b16ebb3e11aff7d3a8fccf9152ecf78d29b2c02d893e042534b81e603c7aed866f802808be8b9a5aa96ed6b10c9 SHA512 5042ce7da18ccf0327e38b092e0602fa477d646413fd07bd9e58b66883179039c3d4e85d3644f1e9e696b1241447a460eab44aa3ef87470f41a2f32757be5258
diff --git a/mail-filter/bogofilter/bogofilter-1.2.4-r4.ebuild b/mail-filter/bogofilter/bogofilter-1.2.4-r4.ebuild
deleted file mode 100644
index b44ae36e1abe..000000000000
--- a/mail-filter/bogofilter/bogofilter-1.2.4-r4.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools db-use flag-o-matic toolchain-funcs
-
-DESCRIPTION="Bayesian spam filter designed with fast algorithms, and tuned for speed"
-HOMEPAGE="https://bogofilter.sourceforge.io/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
-IUSE="berkdb +sqlite tokyocabinet"
-
-# pax needed for bf_tar
-DEPEND="
- app-arch/pax
- sci-libs/gsl:=
- virtual/libiconv
- berkdb? ( >=sys-libs/db-3.2:* )
- !berkdb? (
- sqlite? ( >=dev-db/sqlite-3.6.22 )
- !sqlite? (
- tokyocabinet? ( dev-db/tokyocabinet )
- !tokyocabinet? ( >=sys-libs/db-3.2:* )
- )
- )
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${P}-test-env.patch" )
-
-pkg_setup() {
- has_version mail-filter/bogofilter || return 0
- if ( use berkdb && ! has_version 'mail-filter/bogofilter[berkdb]' ) || \
- ( ! use berkdb && has_version 'mail-filter/bogofilter[berkdb]' ) || \
- ( use sqlite && ! has_version 'mail-filter/bogofilter[sqlite]' ) || \
- ( ! use sqlite && has_version 'mail-filter/bogofilter[sqlite]' ) || \
- ( has_version '>=mail-filter/bogofilter-1.2.1-r1' && \
- ( use tokyocabinet && ! has_version 'mail-filter/bogofilter[tokyocabinet]' ) || \
- ( ! use tokyocabinet && has_version 'mail-filter/bogofilter[tokyocabinet]' )
- ) ; then
- ewarn
- ewarn "If you want to switch the database backend, you must dump the wordlist"
- ewarn "with the current version (old use flags) and load it with the new version!"
- ewarn
- fi
-}
-
-src_prepare() {
- default
-
- # bug 445918
- sed -i -e 's/ -ggdb//' configure.ac || die
-
- # bug 421747
- chmod +x src/tests/t.{ctype,leakfind,lexer.qpcr,lexer.eoh,message_id,queue_id} || die
-
- # bug 654990
- sed -i -e 's/t.bulkmode//' \
- -e 's/t.dump.load//' \
- -e 's/t.nonascii.replace//' \
- src/tests/Makefile.am || die
-
- eautoreconf
-}
-
-src_configure() {
- local myconf="" berkdb=true
- myconf="--without-included-gsl"
-
- # determine backend: berkdb *is* default
- if use berkdb && use sqlite ; then
- elog "Both useflags berkdb and sqlite are in USE:"
- elog "Using berkdb as database backend."
- elif use berkdb && use tokyocabinet ; then
- elog "Both useflags berkdb and tokyocabinet are in USE:"
- elog "Using berkdb as database backend."
- elif use sqlite && use tokyocabinet ; then
- elog "Both useflags sqlite and tokyocabinet are in USE:"
- elog "Using sqlite as database backend."
- myconf="${myconf} --with-database=sqlite"
- berkdb=false
- elif use sqlite ; then
- myconf="${myconf} --with-database=sqlite"
- berkdb=false
- elif use tokyocabinet ; then
- myconf="${myconf} --with-database=tokyocabinet"
- berkdb=false
- elif ! use berkdb ; then
- elog "Neither berkdb nor sqlite nor tokyocabinet are in USE:"
- elog "Using berkdb as database backend."
- fi
-
- # Include the right berkdb headers for FreeBSD
- if ${berkdb} ; then
- append-cppflags "-I$(db_includedir)"
- fi
-
- econf ${myconf}
-}
-
-src_test() {
- emake -C src/ check
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- exeinto /usr/share/${PN}/contrib
- doexe contrib/{bogofilter-qfe,parmtest,randomtrain}.sh \
- contrib/{bfproxy,bogominitrain,mime.get.rfc822,printmaildir}.pl \
- contrib/{spamitarium,stripsearch}.pl
-
- 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
-
- dodoc AUTHORS NEWS README RELEASE.NOTES* TODO GETTING.STARTED \
- doc/integrating-with-* doc/README.{db,sqlite}
-
- dodoc -r doc/*.html
-
- dodir /usr/share/doc/${PF}/samples
- mv "${D}"/etc/bogofilter.cf.example "${D}"/usr/share/doc/${PF}/samples/ || die
- rmdir "${D}"/etc || die
-}
diff --git a/mail-filter/bogofilter/files/bogofilter-1.2.4-test-env.patch b/mail-filter/bogofilter/files/bogofilter-1.2.4-test-env.patch
deleted file mode 100644
index 8cf109c45519..000000000000
--- a/mail-filter/bogofilter/files/bogofilter-1.2.4-test-env.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/tests/Makefile.am
-+++ b/src/tests/Makefile.am
-@@ -67,7 +67,7 @@
-
- TESTS=$(BUILT_TESTS) $(TESTSCRIPTS)
-
--TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(SHELL) $(VERBOSE)
-+TESTS_ENVIRONMENT=RUN_FROM_MAKE=1 AWK=$(AWK) srcdir=$(srcdir) SHELL="$(SHELL)" $(VERBOSE)
-
- EXTRA_DIST=$(TESTSCRIPTS) t.frame t.save t.skel \
- printcore t._abort unsort.pl \