diff options
author | edwin <edwin@FreeBSD.org> | 2007-09-07 12:27:13 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2007-09-07 12:27:13 +0800 |
commit | d47c8bd2da1bff64751569c55ae56cf29a48da72 (patch) | |
tree | de2a258f2794ffac523085d305510521d5bfe268 /japanese/p5-Mail-SpamAssassin/files | |
parent | 788acecc7009cad571b7c52228627d80e3001f12 (diff) | |
download | freebsd-ports-gnome-d47c8bd2da1bff64751569c55ae56cf29a48da72.tar.gz freebsd-ports-gnome-d47c8bd2da1bff64751569c55ae56cf29a48da72.tar.zst freebsd-ports-gnome-d47c8bd2da1bff64751569c55ae56cf29a48da72.zip |
New port: japanese/p5-Mail-SpamAssassin
A new port for SpamAssassin with Japanese tokenizer patch.
Now the current version of SA is 3.2.1, while the latest Japanese
patch is for version 3.1.8. Considering such delay I remade the
port as standalone one.
PR: ports/112445
Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Diffstat (limited to 'japanese/p5-Mail-SpamAssassin/files')
-rw-r--r-- | japanese/p5-Mail-SpamAssassin/files/patch-rules-local.cf | 10 | ||||
-rw-r--r-- | japanese/p5-Mail-SpamAssassin/files/patch-sa-learn-raw | 14 | ||||
-rw-r--r-- | japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in | 42 |
3 files changed, 66 insertions, 0 deletions
diff --git a/japanese/p5-Mail-SpamAssassin/files/patch-rules-local.cf b/japanese/p5-Mail-SpamAssassin/files/patch-rules-local.cf new file mode 100644 index 000000000000..7490415eb8c1 --- /dev/null +++ b/japanese/p5-Mail-SpamAssassin/files/patch-rules-local.cf @@ -0,0 +1,10 @@ +--- rules/local.cf.orig Sat Dec 30 07:18:59 2006 ++++ rules/local.cf Sat Dec 30 07:20:48 2006 +@@ -51,3 +51,7 @@ + # bayes_ignore_header X-Spam-Flag + # bayes_ignore_header X-Spam-Status + ++ ++# Normalize charset to UTF-8 (default:0) ++# ++# normalize_charset 1 diff --git a/japanese/p5-Mail-SpamAssassin/files/patch-sa-learn-raw b/japanese/p5-Mail-SpamAssassin/files/patch-sa-learn-raw new file mode 100644 index 000000000000..e8c2bb9aa1ac --- /dev/null +++ b/japanese/p5-Mail-SpamAssassin/files/patch-sa-learn-raw @@ -0,0 +1,14 @@ +--- sa-learn.raw (revision 507745) ++++ sa-learn.raw (working copy) +@@ -402,7 +402,10 @@ + + # make sure the target list is in the normal AI format + if ($targets[$elem] !~ /^[^:]*:[a-z]+:/) { +- $targets[$elem] = target($targets[$elem]); ++ my $item = splice @targets, $elem, 1; ++ $elem--; # go back to this element again ++ target($item); # add back to the list ++ next; + } + } + diff --git a/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in b/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in new file mode 100644 index 000000000000..87530ffb70e9 --- /dev/null +++ b/japanese/p5-Mail-SpamAssassin/files/sa-spamd.sh.in @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: spamd +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable spamd: +# +#spamd_enable="YES" +# +# See spamd(8) for flags +# + +. %%RC_SUBR%% + +name=spamd +rcvar=`set_rcvar` + +load_rc_config $name + +# Set defaults +: ${spamd_enable:="NO"} +: ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"} + +pidfile=${spamd_pidfile:-"/var/run/spamd/spamd.pid"} +command=%%PREFIX%%/bin/spamd +command_args="-d -r ${pidfile}" +required_dirs=%%PREFIX%%/share/spamassassin + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +run_rc_command "$1" |