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
|
2010-01-11 07:19:28 +01:00
|
|
|
PORTVERSION= 20100106
|
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
|
2007-05-01 18:34:47 +02:00
|
|
|
MASTER_SITES= http://crm114.sourceforge.net/tarballs/
|
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.
|
2009-12-25 22:20:23 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-${CRM114RELEASENAME}.src
|
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
|
|
|
|
2009-05-13 18:03:16 +02:00
|
|
|
MAINTAINER= chalpin@cs.wisc.edu
|
2009-04-22 03:58:12 +02:00
|
|
|
COMMENT= A Markov based SpamFilter
|
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
|
|
|
|
2009-12-22 12:36:22 +01:00
|
|
|
LIB_DEPENDS= tre.5:${PORTSDIR}/textproc/libtre
|
2007-08-09 23:53:26 +02:00
|
|
|
|
2009-12-25 22:20:23 +01:00
|
|
|
CRM114RELEASENAME=BlameMichelson
|
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
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
|
2009-04-22 03:27:20 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" prefix="${PREFIX}" \
|
|
|
|
LIBS="${LIBS}" \
|
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_PROGRAM="${INSTALL_PROGRAM}"
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2009-05-13 18:03:16 +02:00
|
|
|
LDFLAGS+= -I${LOCALBASE}/include
|
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
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
LIBS+= -L${LOCALBASE}/lib -liconv -lintl
|
|
|
|
|
2009-05-13 18:03:16 +02:00
|
|
|
CFLAGS+= -DVERSION='\"${PORTVERSION}-${CRM114RELEASENAME}\"'
|
|
|
|
CFLAGS+= -DNO_LOGL
|
|
|
|
|
2006-04-29 15:30:25 +02:00
|
|
|
INSTALL_TARGET= install_binary_only
|
|
|
|
|
2007-08-10 01:27:05 +02:00
|
|
|
CRM_FILES= mailfilter.crm mailfilter.cf mailreaver.crm mailtrainer.crm \
|
|
|
|
maillib.crm shuffle.crm rewriteutil.crm rewrites.mfp \
|
|
|
|
whitelist.mfp blacklist.mfp priolist.mfp priolist.mfp.example \
|
|
|
|
blacklist.mfp.example whitelist.mfp.example crm114-mode.el \
|
2009-05-13 18:03:16 +02:00
|
|
|
reto_procmailrc.recipe
|
2004-03-01 22:11:38 +01:00
|
|
|
|
2009-04-22 03:27:20 +02:00
|
|
|
OPTIONS= PGO "Enable Profile-Guided Optimization" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PGO)
|
|
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS} -fprofile-use" \
|
|
|
|
LDFLAGS="${LDFLAGS} -fprofile-use"
|
|
|
|
.else
|
|
|
|
MAKE_ARGS+= CFLAGS="${CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
.endif
|
|
|
|
|
2005-06-10 14:02:43 +02:00
|
|
|
post-patch:
|
2007-04-25 00:30:18 +02:00
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
's,^((LD|C)FLAGS),#\1,;;s,^(prefix=),#\1,;;s,^(.*-install),#\1,' \
|
|
|
|
${WRKSRC}/Makefile
|
2005-06-10 14:02:43 +02:00
|
|
|
|
2009-04-22 03:27:20 +02:00
|
|
|
.if defined(WITH_PGO)
|
|
|
|
.if target(pre-build)
|
|
|
|
.error Makefile error since pre-build target has already been defined
|
|
|
|
.endif
|
|
|
|
pre-build: pgo
|
|
|
|
.endif
|
|
|
|
|
2004-03-08 11:26:13 +01:00
|
|
|
# Peter Jeremy recommended the use of b64decode and md5 20040302
|
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:
|
2006-04-29 15:30:25 +02:00
|
|
|
@${REINPLACE_CMD} -Ee 's|^(.*/openssl base64 -d/)|#\1|' \
|
|
|
|
-e 's|/mewdecode/|/b64decode -pr/|' ${WRKSRC}/mailfilter.cf
|
|
|
|
@${REINPLACE_CMD} -e 's|/md5sum/|/md5 -r/|' \
|
2007-01-13 00:53:43 +01:00
|
|
|
-e 's|#!.*/usr/bin/crm.*|#!${PREFIX}/bin/crm|' \
|
2007-04-25 00:30:18 +02:00
|
|
|
${WRKSRC}/mailfilter.crm ${WRKSRC}/mailtrainer.crm \
|
2008-08-07 06:36:40 +02:00
|
|
|
${WRKSRC}/rewriteutil.crm \
|
2007-04-25 00:30:18 +02:00
|
|
|
${WRKSRC}/mailreaver.crm ${WRKSRC}/shuffle.crm
|
2006-04-29 15:30:25 +02:00
|
|
|
@for i in priolist.mfp whitelist.mfp; do \
|
|
|
|
${CP} ${WRKSRC}/$${i}.example ${WRKSRC}/$${i}; \
|
|
|
|
done
|
|
|
|
.ifdef(WITH_NORMALIZEMIME)
|
2007-04-25 00:30:18 +02:00
|
|
|
@${REINPLACE_CMD} -Ee 's|^#(.*/normalizemime/)|\1|' \
|
|
|
|
${WRKSRC}/mailfilter.cf
|
2006-04-29 15:30:25 +02:00
|
|
|
.else
|
2007-04-25 00:30:18 +02:00
|
|
|
@${REINPLACE_CMD} -Ee 's|^#(.*/b64decode -pr/)|\1|' \
|
|
|
|
${WRKSRC}/mailfilter.cf
|
2006-04-29 15:30:25 +02:00
|
|
|
.endif
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2007-08-10 01:27:05 +02:00
|
|
|
for i in ${CRM_FILES}; do \
|
2006-04-29 15:30:25 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} ${EXAMPLESDIR}; \
|
|
|
|
done
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@for i in ${WRKSRC}/[^G]*.txt ${WRKSRC}/README; do \
|
|
|
|
${INSTALL_DATA} $${i} ${DOCSDIR}; \
|
|
|
|
done
|
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
|
|
|
.endif
|
|
|
|
|
2009-04-22 03:27:20 +02:00
|
|
|
.if defined(WITH_PGO)
|
|
|
|
pgo: pgo-build pgo-run pgo-clean
|
|
|
|
|
|
|
|
pgo-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} CFLAGS="${CFLAGS} -fprofile-generate" LDFLAGS="${LDFLAGS} -fprofile-generate" ${ALL_TARGET})
|
|
|
|
|
|
|
|
pgo-run:
|
|
|
|
# Check everything to generate profiling information.
|
|
|
|
# We will ignore any errors.
|
|
|
|
@-(cd ${BUILD_WRKSRC}; ${MAKE} megatest)
|
|
|
|
|
|
|
|
pgo-clean:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${MAKE} clean)
|
|
|
|
.endif # if defined(WITH_PGO)
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|