summaryrefslogtreecommitdiff
path: root/mail/popfile/files/patch-Bayes.pm
diff options
context:
space:
mode:
authorMakoto Matsushita <matusita@FreeBSD.org>2004-10-23 19:02:51 +0000
committerMakoto Matsushita <matusita@FreeBSD.org>2004-10-23 19:02:51 +0000
commit36e65eff707682054de9d718f93b095e157396da (patch)
tree180174692c8cffaa2ae16c3f79b91f691aec1be9 /mail/popfile/files/patch-Bayes.pm
parentAdd gresolver, a graphical DNS query tool using GTK+. It allows system (diff)
Since popfile 0.22.0 doesn't work with DBD::SQLite 1.x, switch to SQLite2.
CAUTION: for existing users, edit your ${HOME}/.popfile/popfile.cfg (or whatever popfile configuration file) as follows: before: bayes_dbconnect dbi:SQLite:dbname=$dbname after: bayes_dbconnect dbi:SQLite2:dbname=$dbname (change the word "SQLite" to "SQLite2") files/patch-Bayes.pm also added, to use dbi:SQLite2 by default. Since the contents is changed, bump PORTREVISION.
Diffstat (limited to '')
-rw-r--r--mail/popfile/files/patch-Bayes.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/popfile/files/patch-Bayes.pm b/mail/popfile/files/patch-Bayes.pm
new file mode 100644
index 000000000000..104cdf7cf2da
--- /dev/null
+++ b/mail/popfile/files/patch-Bayes.pm
@@ -0,0 +1,11 @@
+--- Classifier/Bayes.pm.dist Fri Sep 3 07:16:08 2004
++++ Classifier/Bayes.pm Sun Oct 24 03:41:07 2004
+@@ -211,7 +211,7 @@
+ # it resolves to the full path to the database named in the
+ # database parameter above.
+
+- $self->config_( 'dbconnect', 'dbi:SQLite:dbname=$dbname' );
++ $self->config_( 'dbconnect', 'dbi:SQLite2:dbname=$dbname' );
+ $self->config_( 'dbuser', '' ); $self->config_( 'dbauth', '' );
+
+ # No default unclassified weight is the number of times more sure POPFile