Index: head/mail/spamoracle/Makefile =================================================================== --- head/mail/spamoracle/Makefile (revision 103861) +++ head/mail/spamoracle/Makefile (revision 103862) @@ -1,32 +1,39 @@ # New ports collection makefile for: SpamOracle # Date created: Mon Sep 9 18:31:45 UTC 2002 # Whom: Mario Sergio Fujikawa Ferreira # # $FreeBSD$ # PORTNAME= spamoracle -PORTVERSION= 1.2 -PORTREVISION= 1 +PORTVERSION= 1.4 CATEGORIES= mail MASTER_SITES= http://cristal.inria.fr/~xleroy/software/ MAINTAINER= lioux@FreeBSD.org COMMENT= procmail spam filter written in ML using Bayesian classification BUILD_DEPENDS= ocaml:${PORTSDIR}/lang/ocaml USE_REINPLACE= yes -post-patch: +MAN1= spamoracle.1 +MAN5= spamoracle.conf.5 + +DOC_FILES= Changes README + +do-configure: @${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \ + -e 's|^(MANDIR=).*$$|\1${MANPREFIX}/man|' \ + -e 's|^(BINDIR=).*$$|\1${PREFIX}/bin|' \ ${WRKSRC}/Makefile -do-install: +post-install: .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor .endif - @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin .include Property changes on: head/mail/spamoracle/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.5 \ No newline at end of property +1.6 \ No newline at end of property Index: head/mail/spamoracle/distinfo =================================================================== --- head/mail/spamoracle/distinfo (revision 103861) +++ head/mail/spamoracle/distinfo (revision 103862) @@ -1,2 +1,2 @@ -MD5 (spamoracle-1.2.tar.gz) = 1742952bc741a6036dc3a1bb3a5e73e3 -SIZE (spamoracle-1.2.tar.gz) = 15828 +MD5 (spamoracle-1.4.tar.gz) = 9cd2a825202c86a3728658545b0ac060 +SIZE (spamoracle-1.4.tar.gz) = 30391 Property changes on: head/mail/spamoracle/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/mail/spamoracle/files/patch-Makefile =================================================================== --- head/mail/spamoracle/files/patch-Makefile (revision 103861) +++ head/mail/spamoracle/files/patch-Makefile (revision 103862) @@ -1,11 +1,28 @@ ---- Makefile.orig Thu Mar 11 21:39:28 2004 -+++ Makefile Thu Mar 11 21:39:32 2004 -@@ -1,7 +1,7 @@ +--- Makefile.orig Sun May 25 06:38:24 2003 ++++ Makefile Sat Mar 13 06:58:00 2004 +@@ -1,10 +1,10 @@ ### Configuration section # The laguages you're interested in, besides English --LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN -+LANGUAGES=-DFRENCH -DSPANISH -DITALIAN -DGERMAN -DRUSSIAN +-LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE ++LANGUAGES=-DFRENCH -DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE -DRUSSIAN # How to invoke the C preprocessor - CPP=gcc -E -P $(LANGUAGES) - +-CPP=gcc -E -P $(LANGUAGES) - ++CPP=cpp -P $(LANGUAGES) - + + # Where to install the binary + BINDIR=/usr/local/bin +@@ -30,9 +30,9 @@ + all: spamoracle + + install: +- cp spamoracle $(BINDIR)/spamoracle +- cp spamoracle.1 $(MANDIR)/man1/spamoracle.1 +- cp spamoracle.conf.5 $(MANDIR)/man5/spamoracle.conf.5 ++ ${BSD_INSTALL_PROGRAM} spamoracle $(BINDIR)/spamoracle ++ ${BSD_INSTALL_MAN} spamoracle.1 $(MANDIR)/man1/spamoracle.1 ++ ${BSD_INSTALL_MAN} spamoracle.conf.5 $(MANDIR)/man5/spamoracle.conf.5 + + spamoracle: $(NATOBJS) + $(OCAMLOPT) -o spamoracle $(NATLIBS) $(NATOBJS) Property changes on: head/mail/spamoracle/files/patch-Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/mail/spamoracle/files/patch-wordsplit.mlp =================================================================== --- head/mail/spamoracle/files/patch-wordsplit.mlp (revision 103861) +++ head/mail/spamoracle/files/patch-wordsplit.mlp (revision 103862) @@ -1,29 +1,27 @@ ---- spamoracle-1.2-orig/wordsplit.mlp 2002-08-26 13:35:26 +0400 -+++ wordsplit.mlp 2002-10-25 21:04:30 +0400 +--- wordsplit.mlp.orig Sat Mar 13 06:52:19 2004 ++++ wordsplit.mlp Sat Mar 13 06:55:09 2004 @@ -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 *) ++ (* for i = 0 to String.length s - 1 do + s.[i] <- tbl.[Char.code s.[i]] +- done ++ done *) - } - -@@ -62,6 +62,10 @@ - '\164' (* Euro *) - 'Ä' 'Ö' 'Ü' 'ä' 'ö' 'ü' 'ß' - #endif + let all_uppercase s = + try +@@ -87,6 +87,10 @@ + #ifdef PORTUGUESE + 'À' 'Á' 'Â' 'Ã' 'Ç' 'É' 'Ê' 'Í' 'Ó' 'Ô' 'Õ' 'Ú' 'Ü' + 'à' 'á' 'â' 'ã' 'ç' 'é' 'ê' 'í' 'ó' 'ô' 'õ' 'ú' 'ü' ++#endif +#ifdef RUSSIAN + 'Á' 'Â' '×' 'Ç' 'Ä' 'Å' '£' 'Ö' 'Ú' 'É' 'Ê' 'Ë' 'Ì' 'Í' 'Î' 'Ï' 'Ð' 'Ò' 'Ó' 'Ô' 'Õ' 'Æ' 'È' 'Ã' 'Þ' 'Û' 'Ý' 'ß' 'Ù' 'Ø' 'Ü' 'À' 'Ñ' + 'á' 'â' '÷' 'ç' 'ä' 'å' '³' 'ö' 'ú' 'é' 'ê' 'ë' 'ì' 'í' 'î' 'ï' 'ð' 'ò' 'ó' 'ô' 'õ' 'æ' 'è' 'ã' 'þ' 'û' 'ý' 'ÿ' 'ù' 'ø' 'ü' 'à' 'ñ' -+#endif - ] + #endif + ] - let uppercase_letter = - Property changes on: head/mail/spamoracle/files/patch-wordsplit.mlp ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/mail/spamoracle/pkg-descr =================================================================== --- head/mail/spamoracle/pkg-descr (revision 103861) +++ head/mail/spamoracle/pkg-descr (revision 103862) @@ -1,11 +1,17 @@ [ excerpt from developer's site ] SpamOracle, a.k.a. "Saint Peter", is a tool to help detect and -filter away "spam" (unsolicited commercial e-mail). It proceeds by -statistical analysis of the words that appear in the e-mail, comparing -the frequencies of words with those found in a user-provided corpus -of known spam and known legitimate e-mail. The classification +filter away "spam" (unsolicited commercial e-mail). It proceeds +by statistical analysis of the words that appear in the e-mail, +comparing the frequencies of words with those found in a user-provided +corpus of known spam and known legitimate e-mail. The classification algorithm is based on Bayes' formula, and is described in Paul Graham's paper, A plan for spam. + +This program is designed to work in conjunction with procmail. The +result of the analysis is output as an additional message header +X-Spam:, followed by yes, no or unknown, plus additional details. +A procmail rule can then test this X-Spam: header and deliver the +e-mail to the appropriate mailbox. WWW: http://cristal.inria.fr/~xleroy/software.html Property changes on: head/mail/spamoracle/pkg-descr ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/mail/spamoracle/pkg-plist =================================================================== --- head/mail/spamoracle/pkg-plist (revision 103861) +++ head/mail/spamoracle/pkg-plist (revision 103862) @@ -1,3 +1,4 @@ bin/spamoracle -%%PORTDOCS%%share/doc/spamoracle/README -%%PORTDOCS%%@dirrm share/doc/spamoracle +%%PORTDOCS%%%%DOCSDIR%%/Changes +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% Property changes on: head/mail/spamoracle/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property