summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /mail-filter/spambayes
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'mail-filter/spambayes')
-rw-r--r--mail-filter/spambayes/Manifest3
-rw-r--r--mail-filter/spambayes/files/bayescustomize.ini171
-rw-r--r--mail-filter/spambayes/files/spambayespop3proxy.rc23
-rw-r--r--mail-filter/spambayes/metadata.xml12
-rw-r--r--mail-filter/spambayes/spambayes-1.1_alpha6-r2.ebuild41
-rw-r--r--mail-filter/spambayes/spambayes-1.1_beta1.ebuild41
-rw-r--r--mail-filter/spambayes/spambayes-1.1_beta2.ebuild43
7 files changed, 334 insertions, 0 deletions
diff --git a/mail-filter/spambayes/Manifest b/mail-filter/spambayes/Manifest
new file mode 100644
index 000000000000..9d8d48f71db8
--- /dev/null
+++ b/mail-filter/spambayes/Manifest
@@ -0,0 +1,3 @@
+DIST spambayes-1.1a6.tar.gz 1007785 SHA256 14752d9930a4f103789918a26eaed0348d27329f34e14666edfc6d05b6b01053 SHA512 7b8a6c54e986666064871298e70a04781ff33bddc3274734596ea577860707d61f95408caefd5511f586e285f8d7620d18fe3e6efcbdd0b26a39808abe44e189 WHIRLPOOL f7d67447c72882f7612d93f68ad9ab2aa200b618bcda02eeb9b93e0bd288725f4bdf4b3a9ac30a66362f011f2b7c05dbb791b56dd8086b13203bcf58f5c795ff
+DIST spambayes-1.1b1.tar.gz 1008891 SHA256 9680db176e31366178662f863ed569488778b56b1e147303b95c8095d0921b4f SHA512 988acd799e9f4530099891f1d8582b29a4c156ddb5cf280623d2e9ac3566c1c9b9cbfa5f85d32161d7f1954364320f3795d500ac51e8944d140fcd3b626c3124 WHIRLPOOL a0d1048fab1ab07e0fbf49b51ee5af28c818d9368e49b9cdfc316d36f9204f181cbd960ae132d9c42da568c91cdb0771ab06e3ed0433e504a12cc3841daadb1d
+DIST spambayes-1.1b2.tar.gz 1001993 SHA256 8d186d1e7a67de88941f27e0cfcfb4e88fffd7706f51e9181a5bcdaa1b6f8294 SHA512 0f8e88a2b7d3200fbb08a8e55f549a06530cb2068215023f079bf2f4e399f2f7850bf4e9f01addb6a48f1e41a75872cc3909ca76b7567e2c93a9701bec7b2a39 WHIRLPOOL dd6c90939527dc3a283467df00e0ae787b75c4e55411c51a7d7133b2fb9dbead84569c7b9be3c05e7f5a7a387c8cd717e26556ae461b0f4dd3a09383b7e92515
diff --git a/mail-filter/spambayes/files/bayescustomize.ini b/mail-filter/spambayes/files/bayescustomize.ini
new file mode 100644
index 000000000000..b4eadc7a0a57
--- /dev/null
+++ b/mail-filter/spambayes/files/bayescustomize.ini
@@ -0,0 +1,171 @@
+[CV Driver]
+build_each_classifier_from_scratch: False
+
+[Categorization]
+ham_cutoff: 0.2
+spam_cutoff: 0.9
+
+[Classifier]
+max_discriminators: 150
+minimum_prob_strength: 0.1
+unknown_word_prob: 0.5
+unknown_word_strength: 0.45
+use_chi_squared_combining: True
+x-experimental_ham_spam_imbalance_adjustment: False
+x-use_bigrams: False
+
+[Hammie]
+train_on_filter: False
+
+[Headers]
+add_unique_id: True
+classification_header_name: X-Spambayes-Classification
+clue_mailheader_cutoff: 0.5
+evidence_header_name: X-Spambayes-Evidence
+header_ham_string: ham
+header_score_digits: 2
+header_score_logarithm: False
+header_spam_string: spam
+header_unsure_string: unsure
+include_evidence: False
+include_score: False
+include_thermostat: False
+include_trained: True
+mailid_header_name: X-Spambayes-MailId
+notate_subject:
+notate_to:
+score_header_name: X-Spambayes-Spam-Probability
+thermostat_header_name: X-Spambayes-Level
+trained_header_name: X-Spambayes-Trained
+
+[Storage]
+cache_expiry_days: 7
+cache_messages: True
+cache_use_gzip: False
+ham_cache: /var/lib/spambayes/pop3proxy-ham-cache
+messageinfo_storage_file: /var/lib/spambayes/spambayes.messageinfo.db
+no_cache_bulk_ham: False
+no_cache_large_messages: 0
+persistent_storage_file: /var/lib/spambayes/hammie.db
+persistent_use_database: dbm
+spam_cache: /var/lib/spambayes/pop3proxy-spam-cache
+unknown_cache: /var/lib/spambayes/pop3proxy-unknown-cache
+
+[TestDriver]
+best_cutoff_fn_weight: 1.0
+best_cutoff_fp_weight: 10.0
+best_cutoff_unsure_weight: 0.2
+compute_best_cutoffs_from_histograms: True
+ham_directories: Data/Ham/Set%d
+nbuckets: 200
+percentiles: 5 25 75 95
+pickle_basename: class
+save_histogram_pickles: False
+save_trained_pickles: False
+show_charlimit: 3000
+show_false_negatives: False
+show_false_positives: True
+show_ham_hi: 0.0
+show_ham_lo: 1.0
+show_histograms: True
+show_spam_hi: 0.0
+show_spam_lo: 1.0
+show_unsure: False
+spam_directories: Data/Spam/Set%d
+
+[Tokenizer]
+address_headers: from to cc sender reply-to
+basic_header_skip: received date x-.*
+basic_header_tokenize: False
+basic_header_tokenize_only: False
+check_octets: False
+count_all_header_lines: False
+generate_long_skips: True
+mine_received_headers: False
+octet_prefix_size: 5
+record_header_absence: False
+replace_nonascii_chars: False
+safe_headers: abuse-reports-to date errors-to from importance in-reply-to message-id mime-version organization received reply-to return-path subject to user-agent x-abuse-info x-complaints-to x-face
+skip_max_word_size: 12
+summarize_email_prefixes: False
+summarize_email_suffixes: False
+x-extract_dow: False
+x-fancy_url_recognition: False
+x-generate_time_buckets: False
+x-pick_apart_urls: False
+x-reduce_habeas_headers: False
+x-search_for_habeas_headers: False
+
+[URLRetriever]
+x-cache_directory: url-cache
+x-cache_expiry_days: 7
+x-only_slurp_base: False
+x-slurp_urls: False
+x-web_prefix:
+
+[ZODB]
+cache_size: 2000
+event_log_file:
+event_log_severity: 0
+folder_dir:
+ham_folders:
+spam_folders:
+zeo_addr:
+
+[globals]
+dbm_type: best
+proxy_password:
+proxy_server:
+proxy_username:
+verbose: False
+
+[html_ui]
+allow_remote_connections: localhost
+default_ham_action: ham
+default_spam_action: spam
+default_unsure_action: defer
+display_adv_find: False
+display_headers: Subject From
+display_received_time: False
+display_score: False
+ham_discard_level: 0.0
+http_authentication: None
+http_password: admin
+http_user_name: admin
+launch_browser: False
+port: 8880
+rows_per_section: 10000
+spam_discard_level: 100.0
+
+[imap]
+expunge: False
+filter_folders: INBOX
+ham_train_folders:
+move_trained_ham_to_folder:
+move_trained_spam_to_folder:
+password:
+server:
+spam_folder:
+spam_train_folders:
+unsure_folder:
+use_ssl: False
+username:
+
+[imapserver]
+password:
+port: 143
+username:
+
+[pop3proxy]
+allow_remote_connections: localhost
+listen_ports:
+remote_servers:
+
+[smtpproxy]
+allow_remote_connections: localhost
+ham_address: spambayes_ham@localhost
+listen_ports:
+remote_servers:
+spam_address: spambayes_spam@localhost
+use_cached_message: False
+
diff --git a/mail-filter/spambayes/files/spambayespop3proxy.rc b/mail-filter/spambayes/files/spambayespop3proxy.rc
new file mode 100644
index 000000000000..5b236570555d
--- /dev/null
+++ b/mail-filter/spambayes/files/spambayespop3proxy.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+customize_ini=/etc/bayescustomize.ini
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting SpamBayes POP3 Proxy daemon"
+ export BAYESCUSTOMIZE="${customize_ini}"
+ start-stop-daemon --start --quiet --background --pidfile /var/run/spambayes.pid --make-pidfile --exec /usr/bin/sb_server.py
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping SpamBayes POP3 Proxy daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/spambayes.pid --name sb_server.py
+ eend $?
+}
diff --git a/mail-filter/spambayes/metadata.xml b/mail-filter/spambayes/metadata.xml
new file mode 100644
index 000000000000..9db371324c33
--- /dev/null
+++ b/mail-filter/spambayes/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>lordvan@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">spambayes</remote-id>
+ <remote-id type="sourceforge">spambayes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/mail-filter/spambayes/spambayes-1.1_alpha6-r2.ebuild b/mail-filter/spambayes/spambayes-1.1_alpha6-r2.ebuild
new file mode 100644
index 000000000000..aa21b3b598b4
--- /dev/null
+++ b/mail-filter/spambayes/spambayes-1.1_alpha6-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_P="${P/_alpha/a}"
+
+DESCRIPTION="An anti-spam filter using on Bayesian filtering"
+HOMEPAGE="http://spambayes.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="PSF-2.2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ dev-python/lockfile[${PYTHON_USEDEP}]
+ dev-python/setuptools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ dodoc -r *.txt contrib utilities testtools
+
+ newinitd "${FILESDIR}"/spambayespop3proxy.rc spambayespop3proxy
+
+ insinto /etc
+ doins "${FILESDIR}"/bayescustomize.ini
+
+ keepdir /var/lib/spambayes
+}
diff --git a/mail-filter/spambayes/spambayes-1.1_beta1.ebuild b/mail-filter/spambayes/spambayes-1.1_beta1.ebuild
new file mode 100644
index 000000000000..76363bc4b43b
--- /dev/null
+++ b/mail-filter/spambayes/spambayes-1.1_beta1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_P="${P/_beta/b}"
+
+DESCRIPTION="An anti-spam filter using on Bayesian filtering"
+HOMEPAGE="http://spambayes.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="PSF-2.2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ dev-python/lockfile[${PYTHON_USEDEP}]
+ dev-python/setuptools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ dodoc -r *.txt contrib utilities testtools
+
+ newinitd "${FILESDIR}"/spambayespop3proxy.rc spambayespop3proxy
+
+ insinto /etc
+ doins "${FILESDIR}"/bayescustomize.ini
+
+ keepdir /var/lib/spambayes
+}
diff --git a/mail-filter/spambayes/spambayes-1.1_beta2.ebuild b/mail-filter/spambayes/spambayes-1.1_beta2.ebuild
new file mode 100644
index 000000000000..68d376ea44fc
--- /dev/null
+++ b/mail-filter/spambayes/spambayes-1.1_beta2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_P="${P/_beta/b}"
+
+DESCRIPTION="An anti-spam filter using on Bayesian filtering"
+HOMEPAGE="http://spambayes.sourceforge.net"
+SRC_URI="
+ mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz
+ mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="PSF-2.2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ dev-python/lockfile[${PYTHON_USEDEP}]
+ dev-python/setuptools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ dodoc -r *.txt contrib utilities testtools
+
+ newinitd "${FILESDIR}"/spambayespop3proxy.rc spambayespop3proxy
+
+ insinto /etc
+ doins "${FILESDIR}"/bayescustomize.ini
+
+ keepdir /var/lib/spambayes
+}