Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
# New ports collection makefile for: crm114
|
|
|
|
# Date created: 23 February 2004
|
|
|
|
# Whom: Meno Abels <meno.abels@adviser.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= crm114
|
2004-03-01 22:11:38 +01:00
|
|
|
PORTVERSION= 20040221
|
2004-05-10 12:51:06 +02:00
|
|
|
PORTREVISION= 2
|
2004-03-01 22:11:38 +01:00
|
|
|
# WARNING change versionname in CRM114RELEASENAME too.
|
|
|
|
# portlint didn't like this variable at this place.
|
|
|
|
# So I have to put it down in this file.
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= crm114
|
2004-03-01 22:11:38 +01:00
|
|
|
# Oliver Eikemeier recommended the following construction
|
|
|
|
# to avoid the reduncany of the CRM114RELEASENAME and .src and
|
|
|
|
# .css extention.
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-${CRM114RELEASENAME}.src
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME:R}.css.tar.gz
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
|
|
|
|
MAINTAINER= Meno.Abels@Adviser.com
|
|
|
|
COMMENT= An Markov based SpamFilter
|
|
|
|
|
2004-10-26 17:34:05 +02:00
|
|
|
LIB_DEPENDS= tre.6:${PORTSDIR}/textproc/libtre
|
2004-03-08 11:26:13 +01:00
|
|
|
# there is no other then formail on this planet
|
|
|
|
RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
|
2004-03-01 22:11:38 +01:00
|
|
|
CRM114RELEASENAME=BlameYokohama
|
|
|
|
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
LIBS+= -L${LOCALBASE}/lib -liconv -lintl
|
|
|
|
|
2004-03-01 22:11:38 +01:00
|
|
|
CRM_FILES= classifytest.crm exectest.crm inserttest_a.crm \
|
|
|
|
inserttest_b.crm learntest.crm mailfilter.crm \
|
|
|
|
matchtest.crm overalterisolatedtest.crm \
|
|
|
|
windowtest.crm
|
|
|
|
|
2004-03-08 11:26:13 +01:00
|
|
|
# Peter Jeremy recommended the use of b64decode and md5 20040302
|
2004-03-01 22:11:38 +01:00
|
|
|
post-build:
|
|
|
|
${MKDIR} ${WRKSRC}/fbsdinstall
|
2004-03-08 11:26:13 +01:00
|
|
|
${SED} 's|:mime_decoder: /mewdecode/|:mime_decoder: /b64decode -pr/|' \
|
|
|
|
${WRKSRC}/mailfilter.cf > ${WRKSRC}/fbsdinstall/mailfilter.cf
|
2004-03-01 22:11:38 +01:00
|
|
|
.for i in ${CRM_FILES}
|
|
|
|
${SED} "1s|/usr/bin/crm|${PREFIX}/bin/crm|g" ${WRKSRC}/${i} > ${WRKSRC}/fbsdinstall/${i}
|
|
|
|
.endfor
|
2004-03-08 11:26:13 +01:00
|
|
|
${SED} 's|/md5sum/|/md5 -r/|' ${WRKSRC}/mailfilter.crm > ${WRKSRC}/fbsdinstall/mailfilter.crm.md5
|
|
|
|
mv ${WRKSRC}/fbsdinstall/mailfilter.crm.md5 ${WRKSRC}/fbsdinstall/mailfilter.crm
|
2004-03-01 22:11:38 +01:00
|
|
|
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2004-03-01 22:11:38 +01:00
|
|
|
.for i in CRM114_Mailfilter_HOWTO.txt FAQ.txt INTRO.txt QUICKREF.txt README \
|
|
|
|
classify_details.txt COLOPHON.txt knownbugs.txt things_to_do.txt
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2004-03-01 22:11:38 +01:00
|
|
|
.endfor
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2004-03-08 11:26:13 +01:00
|
|
|
.for i in procmailrc.recipe blacklist.mfp fbsdinstall/mailfilter.cf whitelist.mfp priolist.mfp
|
2004-03-01 22:11:38 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.for i in ${CRM_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fbsdinstall/${i} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.for i in nonspam.css spam.css
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../${PORTNAME}-${PORTVERSION}-${CRM114RELEASENAME}.css/${i} ${EXAMPLESDIR}
|
Add crm114 20040212,
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, 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.
WWW: http://crm114.sourceforge.net
PR: ports/63304
Submitted by: Meno Abels <meno.abels@adviser.com>
2004-02-24 15:17:04 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|