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
|
|
|
PORTNAME= crm114
|
2010-01-11 07:19:28 +01:00
|
|
|
PORTVERSION= 20100106
|
2020-10-01 08:27:08 +02:00
|
|
|
PORTREVISION= 6
|
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
|
|
|
|
2019-09-08 22:38:49 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-07-07 17:31:01 +02:00
|
|
|
COMMENT= Markov based SpamFilter
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= http://crm114.sourceforge.net/
|
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
|
|
|
|
2014-06-08 21:51:27 +02:00
|
|
|
LICENSE= GPLv2
|
2014-05-19 05:37:11 +02:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libtre.so: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
|
|
|
|
2014-05-19 05:37:11 +02:00
|
|
|
USE_CSTD=gnu89
|
|
|
|
|
2014-07-15 18:14:15 +02:00
|
|
|
OPTIONS_DEFINE= NORMALIZEMIME DOCS EXAMPLES
|
2014-06-08 21:51:27 +02:00
|
|
|
NORMALIZEMIME_DESC= Normalize MIME encoding
|
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
|
|
|
|
2014-05-19 05:37:11 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" prefix="${STAGEDIR}${PREFIX}" \
|
2014-06-11 16:49:59 +02:00
|
|
|
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" 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
|
2019-10-21 20:39:29 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--as-needed
|
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
|
|
|
CFLAGS+= -DVERSION='\"${PORTVERSION}-${CRM114RELEASENAME}\"'
|
|
|
|
CFLAGS+= -DNO_LOGL
|
|
|
|
|
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).
A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.
These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,
Approved by: portmgr (implicit)
2022-01-10 15:20:12 +01:00
|
|
|
CONFLICTS_INSTALL= crmsh # bin/crm
|
|
|
|
|
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
|
|
|
|
2013-06-02 01:18:19 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-04-22 03:27:20 +02:00
|
|
|
|
2005-06-10 14:02:43 +02:00
|
|
|
post-patch:
|
2014-06-11 16:49:59 +02:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's,^((LD|C)FLAGS),#\1,;;s,^(prefix=),#\1,;;s,^(.*-install),#\1,' \
|
|
|
|
-e 's,crmregex_tre.c,crmregex_tre.o,' ${WRKSRC}/Makefile
|
2005-06-10 14:02:43 +02:00
|
|
|
|
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:
|
2019-09-08 22:38:49 +02:00
|
|
|
${STRIP_CMD} \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/crm \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/cssdiff \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/cssutil \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/osbf-util \
|
|
|
|
${STAGEDIR}${PREFIX}/bin/cssmerge
|
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
|
2013-06-02 01:18:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MNORMALIZEMIME}
|
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
|
2014-05-19 05:37:11 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2007-08-10 01:27:05 +02:00
|
|
|
for i in ${CRM_FILES}; do \
|
2014-05-19 05:37:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${i} ${STAGEDIR}${EXAMPLESDIR}; \
|
2006-04-29 15:30:25 +02:00
|
|
|
done
|
2014-05-19 05:37:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2006-04-29 15:30:25 +02:00
|
|
|
@for i in ${WRKSRC}/[^G]*.txt ${WRKSRC}/README; do \
|
2014-05-19 05:37:11 +02:00
|
|
|
${INSTALL_DATA} $${i} ${STAGEDIR}${DOCSDIR}; \
|
2006-04-29 15:30:25 +02:00
|
|
|
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
|
|
|
|
|
2013-06-02 01:18:19 +02:00
|
|
|
.include <bsd.port.mk>
|