diff options
author | Brian Feldman <green@FreeBSD.org> | 2003-01-25 07:01:56 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2003-01-25 07:01:56 +0000 |
commit | 3b4a505e5a2c69f8a9efcbe13411dd4b33d8643e (patch) | |
tree | be159316885455fca264fc6ed5ce40edcf97e82a /mail/p5-Mail-SpamAssassin/files | |
parent | 8722a07b479896ae8539a4a5e02c647198100395 (diff) |
Notes
Diffstat (limited to 'mail/p5-Mail-SpamAssassin/files')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/files/patch-use_dcc-option | 93 | ||||
-rw-r--r-- | mail/p5-Mail-SpamAssassin/files/spamd.sh | 19 |
2 files changed, 112 insertions, 0 deletions
diff --git a/mail/p5-Mail-SpamAssassin/files/patch-use_dcc-option b/mail/p5-Mail-SpamAssassin/files/patch-use_dcc-option new file mode 100644 index 000000000000..e806dcd0567c --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-use_dcc-option @@ -0,0 +1,93 @@ +diff -ur ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Conf.pm ./lib/Mail/SpamAssassin/Conf.pm +--- ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Conf.pm Fri Oct 4 05:54:15 2002 ++++ ./lib/Mail/SpamAssassin/Conf.pm Thu Oct 17 22:12:05 2002 +@@ -144,6 +144,9 @@ + $self->{user_rules_to_compile} = 0; + $self->{fold_headers} = 1; + ++ # Added by FreeBSD ports ++ $self->{use_dcc} = 1; ++ + $self->{dcc_path} = undef; # Browse PATH + $self->{dcc_body_max} = 999999; + $self->{dcc_fuz1_max} = 999999; +@@ -763,6 +766,16 @@ + + if (/^rbl[-_]timeout\s+(\d+)$/) { + $self->{rbl_timeout} = $1+0; next; ++ } ++ ++=item use_dcc { 0 | 1 } (default: 1) ++ ++Should we use dccproc, or not. ++ ++=cut ++ ++ if (/^use[-_]dcc\s+(\d+)$/) { ++ $self->{use_dcc} = $1+0; next; + } + + =item ok_locales xx [ yy zz ... ] (default: all) +diff -ur ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Dns.pm ./lib/Mail/SpamAssassin/Dns.pm +--- ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Dns.pm Fri Oct 4 05:54:16 2002 ++++ ./lib/Mail/SpamAssassin/Dns.pm Thu Oct 17 22:12:51 2002 +@@ -449,6 +449,9 @@ + sub is_dcc_available { + my ($self) = @_; + ++ # Added by FreeBSD ports ++ return 0 unless $self->{conf}->{use_dcc}; ++ + if ($self->{main}->{local_tests_only}) { + dbg ("local tests only, ignoring DCC"); + return 0; +@@ -476,6 +479,10 @@ + + sub dcc_lookup { + my ($self, $fulltext) = @_; ++ ++ # Added by FreeBSD ports ++ return 0 unless $self->{conf}->{use_dcc}; ++ + my $response = undef; + my %count; + my $left; +diff -ur ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/EvalTests.pm ./lib/Mail/SpamAssassin/EvalTests.pm +--- ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/EvalTests.pm Fri Oct 4 05:54:16 2002 ++++ ./lib/Mail/SpamAssassin/EvalTests.pm Thu Oct 17 22:10:46 2002 +@@ -2026,6 +2026,9 @@ + sub check_dcc { + my ($self, $fulltext) = @_; + ++ # Added by FreeBSD ports ++ return 0 unless $self->{conf}->{use_dcc}; ++ + return 0 unless ($self->is_dcc_available()); + return 0 if ($self->{already_checked_dcc}); + +diff -ur ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Reporter.pm ./lib/Mail/SpamAssassin/Reporter.pm +--- ../Mail-SpamAssassin-2.43/lib/Mail/SpamAssassin/Reporter.pm Mon Oct 14 09:44:35 2002 ++++ ./lib/Mail/SpamAssassin/Reporter.pm Thu Oct 17 22:13:19 2002 +@@ -238,6 +238,9 @@ + sub is_dcc_available { + my ($self) = @_; + ++ # Added by FreeBSD ports ++ return 0 unless $self->{conf}->{use_dcc}; ++ + if ($self->{main}->{local_tests_only}) { + dbg ("local tests only, ignoring DCC"); + return 0; +diff -ur ../Mail-SpamAssassin-2.43/rules/10_misc.cf ./rules/10_misc.cf +--- ../Mail-SpamAssassin-2.43/rules/10_misc.cf Thu Sep 26 03:50:25 2002 ++++ ./rules/10_misc.cf Thu Oct 17 22:10:46 2002 +@@ -107,6 +107,9 @@ + # test, so it is set to "all" so the test will not be used by default. + ok_languages all + ++# Added by FreeBSD ports ++use_dcc 0 ++ + # Some common prefs settings can be set here, to take effect site-wide + # unless the user override them. See the .prefs file for explanations. + diff --git a/mail/p5-Mail-SpamAssassin/files/spamd.sh b/mail/p5-Mail-SpamAssassin/files/spamd.sh new file mode 100644 index 000000000000..b56cddfaadb5 --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/spamd.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/bin/spamd ] && ${PREFIX}/bin/spamd -a -c -d && echo -n ' spamd' + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 |