2008-06-19 11:19:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.8 2008/06/19 09:19:46 thomasklausner Exp $
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
|
2008-06-19 11:19:46 +02:00
|
|
|
PKGNAME= crm114-20070810
|
|
|
|
DISTNAME= ${PKGNAME}-BlameTheSegfault.src
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
MAINTAINER= bsd@cs.ubc.ca
|
|
|
|
HOMEPAGE= http://crm114.sourceforge.net/
|
|
|
|
COMMENT= Fast and accurate learning classifier, good for spam
|
|
|
|
|
|
|
|
# For some reason, later versions are just being placed on the home page
|
|
|
|
# MASTER_SITES= ${MASTER_SITE_SOURCEFORGET:=crm114/}
|
2007-04-22 09:17:30 +02:00
|
|
|
MASTER_SITES= http://crm114.sourceforge.net/tarballs/
|
|
|
|
|
|
|
|
USE_TOOLS+= msgfmt
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/crm114
|
|
|
|
EMACSDIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/crm114
|
|
|
|
SCRIPTSDIR= ${PREFIX}/share/crm114
|
2007-07-06 08:29:27 +02:00
|
|
|
INSTALLATION_DIRS+= bin ${DOCDIR} ${EMACSDIR} ${EXAMPLESDIR} ${SCRIPTSDIR}
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
|
|
|
|
DOCS= CRM114_Mailfilter_HOWTO.txt README FAQ.txt INTRO.txt \
|
|
|
|
QUICKREF.txt knownbugs.txt
|
|
|
|
SCRIPTS= mailfilter.crm maillib.crm mailreaver.crm \
|
|
|
|
mailtrainer.crm shuffle.crm pad.crm classifymail.crm \
|
|
|
|
rewriteutil.crm
|
|
|
|
EXAMPLES= procmailrc.recipe mailfilter.cf blacklist.mfp.example \
|
|
|
|
priolist.mfp.example whitelist.mfp.example pad.dat \
|
|
|
|
rewrites.mfp
|
|
|
|
|
|
|
|
REPLACE_INTERPRETER+= crm
|
2007-04-22 05:08:12 +02:00
|
|
|
# NOTE: special case ending .* so as to remove the -(...) flags.
|
|
|
|
# These flags reported to cause problems on SunOS and FreeBSD
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
REPLACE.crm.old= .*/bin/crm.*
|
|
|
|
REPLACE.crm.new= ${PREFIX}/bin/crm
|
|
|
|
REPLACE_FILES.crm= ${SCRIPTS}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= crmdirs
|
|
|
|
SUBST_STAGE.crmdirs= pre-configure
|
|
|
|
SUBST_MESSAGE.crmdirs= Fixing script references
|
|
|
|
SUBST_FILES.crmdirs= ${SCRIPTS}
|
|
|
|
SUBST_SED.crmdirs= -e 's,@SCRIPTSDIR@,${SCRIPTSDIR},g'
|
|
|
|
|
|
|
|
# Several differences will be shown in `make test':
|
|
|
|
# * userdirtest.crm: output depends on locale collation ordering
|
|
|
|
# * many of the `pR' values differ as a rescaling effort was
|
|
|
|
# backed out; these will be corrected for in the next release.
|
|
|
|
TEST_TARGET= megatest
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/crm114 ${PREFIX}/bin/crm
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_PROGRAM} cssdiff cssmerge cssutil osbf-util \
|
|
|
|
${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
2007-07-06 08:29:27 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${SCRIPTSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} crm114-mode.el ${EMACSDIR}
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
|
|
|
|
.include "../../devel/tre/buildlink3.mk"
|
2007-04-22 09:17:30 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
CRM114 is a system to examine incoming e-mail, system log streams,
data files or other data streams, and to sort, filter, or alter
the incoming files or data streams according to the user's wildest
desires. Criteria for categorization of data can be by satisfaction
of regexes, by sparse binary polynomial matching with a Bayesian
Chain Rule evaluator, a Hidden Markov Model, or by other means.
Accuracy of the SBPH/BCR classifier has been seen in excess of 99
per cent, for 1/4 megabyte of learning text. In other words, CRM114
learns, and it learns fast .
This package tracks the "Cutting Edge Version".
2007-03-12 17:08:30 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|