ports/53290: Adds russian charsets to `mail/spamoracle' SPAM analyzing tool.
Lev A. Serbryakov
lev at serebryakov.spb.ru
Fri Jun 13 19:30:23 UTC 2003
>Number: 53290
>Category: ports
>Synopsis: Adds russian charsets to `mail/spamoracle' SPAM analyzing tool.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 13 12:30:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Lev A. Serbryakov <lev at serebryakov.spb.ru>
>Release: FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD ftp.translate.ru 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Apr 11 00:25:30 MSD 2003 lev at ftp.translate.ru:/usr/obj/usr/src/sys/FTPTR i386
Ports collection: 13 Jun 2003
>Description:
Spamoracle (`mail/spamoracle') is SPAM blocking tool, which
learns from pre-sortered corpus of mail and then mark all SPAM-like
messages with special header.
Spamoracle supports Latain-X based charsets by default.
This patch adds support for russian (koi8-r and cp-1251) charsets.
Patch was obtained from ATL Linux SRPM for spamoracle.
Added files:
files/patch-Makefile
files/patch-wordsplit.mlp
>How-To-Repeat:
>Fix:
diff -ruN spamoracle.orig/Makefile spamoracle/Makefile
--- spamoracle.orig/Makefile Wed Jun 11 19:51:45 2003
+++ spamoracle/Makefile Wed Jun 11 19:52:14 2003
@@ -7,6 +7,7 @@
PORTNAME= spamoracle
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://cristal.inria.fr/~xleroy/software/
diff -ruN spamoracle.orig/files/patch-Makefile spamoracle/files/patch-Makefile
--- spamoracle.orig/files/patch-Makefile Thu Jan 1 03:00:00 1970
+++ spamoracle/files/patch-Makefile Wed Jun 11 19:51:58 2003
@@ -0,0 +1,11 @@
+--- spamoracle-1.2-orig/Makefile 2002-08-26 12:53:27 +0400
++++ Makefile 2002-10-25 19:58:12 +0400
+@@ -1,7 +1,7 @@
+ ### Configuration section
+
+ # The laguages you're interested in, besides English
+-LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN
++LANGUAGES=-DFRENCH -DRUSSIAN -DGERMAN #-DSPANISH -DITALIAN
+
+ # How to invoke the C preprocessor
+ CPP=gcc -E -P $(LANGUAGES) -
diff -ruN spamoracle.orig/files/patch-wordsplit.mlp spamoracle/files/patch-wordsplit.mlp
--- spamoracle.orig/files/patch-wordsplit.mlp Thu Jan 1 03:00:00 1970
+++ spamoracle/files/patch-wordsplit.mlp Wed Jun 11 19:51:58 2003
@@ -0,0 +1,29 @@
+--- spamoracle-1.2-orig/wordsplit.mlp 2002-08-26 13:35:26 +0400
++++ wordsplit.mlp 2002-10-25 21:04:30 +0400
+@@ -35,10 +35,10 @@
+ aaaaaaeceeeeiiii\
+ ðnooooo÷ouuuuypy"
+
+-let normalize s =
+- for i = 0 to String.length s - 1 do
+- s.[i] <- tbl.[Char.code s.[i]]
+- done
++let normalize s = s
++(* for i = 0 to String.length s - 1 do
++ s.[i] <- tbl.[Char.code s.[i]]
++ done *)
+
+ }
+
+@@ -62,6 +62,10 @@
+ '\164' (* Euro *)
+ 'Ä' 'Ö' 'Ü' 'ä' 'ö' 'ü' 'ß'
+ #endif
++#ifdef RUSSIAN
++ 'Á' 'Â' '×' 'Ç' 'Ä' 'Å' '£' 'Ö' 'Ú' 'É' 'Ê' 'Ë' 'Ì' 'Í' 'Î' 'Ï' 'Ð' 'Ò' 'Ó' 'Ô' 'Õ' 'Æ' 'È' 'Ã' 'Þ' 'Û' 'Ý' 'ß' 'Ù' 'Ø' 'Ü' 'À' 'Ñ'
++ 'á' 'â' '÷' 'ç' 'ä' 'å' '³' 'ö' 'ú' 'é' 'ê' 'ë' 'ì' 'í' 'î' 'ï' 'ð' 'ò' 'ó' 'ô' 'õ' 'æ' 'è' 'ã' 'þ' 'û' 'ý' 'ÿ' 'ù' 'ø' 'ü' 'à' 'ñ'
++#endif
+ ]
+
+ let uppercase_letter =
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list