Date: Tue, 24 Feb 2004 13:13:17 +0100 From: "Meno Abels" <abels@adviser.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/63304: An Markov based SpamFilter Message-ID: <20040224121321.961338400B@pmff.de> Resent-Message-ID: <200402241220.i1OCKMof027418@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 63304 >Category: ports >Synopsis: An Markov based SpamFilter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 24 04:20:22 PST 2004 >Closed-Date: >Last-Modified: >Originator: Meno Abels >Release: FreeBSD 5.2.1-RELEASE i386 >Organization: ADVISER Com >Environment: System: FreeBSD race 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #6: Mon Feb 23 18:41:05 CET 2004 root@neo.abels.adviser.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: New Port: 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 >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # crm114 # crm114/Makefile # crm114/pkg-descr # crm114/pkg-plist # crm114/distinfo # crm114/files # crm114/files/patch-Makefile # echo c - crm114 mkdir -p crm114 > /dev/null 2>&1 echo x - crm114/Makefile sed 's/^X//' >crm114/Makefile << 'END-of-crm114/Makefile' X# New ports collection makefile for: crm114 X# Date created: 23 February 2004 X# Whom: Meno Abels <meno.abels@adviser.com> X# X# $FreeBSD$ X# X XPORTNAME= crm114 XPORTVERSION= 20040212 XCATEGORIES= mail XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= crm114 XDISTNAME= ${PORTNAME}-${PORTVERSION}-BlameJetlag.src X XMAINTAINER= Meno.Abels@Adviser.com XCOMMENT= An Markov based SpamFilter X XCONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" \ X LDFLAGS="-L${LOCALBASE}/lib" X XLIB_DEPENDS += tre.4:${PORTSDIR}/textproc/libtre X X.include <bsd.port.mk> END-of-crm114/Makefile echo x - crm114/pkg-descr sed 's/^X//' >crm114/pkg-descr << 'END-of-crm114/pkg-descr' XCRM114 is a system to examine incoming e-mail, system log streams, Xdata files or other data streams, and to sort, filter, or alter the Xincoming files or data streams according to the user's wildest Xdesires. Criteria for categorization of data can be by satisfaction Xof regexes, by sparse binary polynomial matching with a Bayesian XChain Rule evaluator, or by other means. Accuracy of the SBPH/BCR Xclassifier has been seen in excess of 99 per cent, for 1/4 megabyte Xof learning text. In other words, CRM114 learns, and it learns fast. X XWWW: http://crm114.sourceforge.net END-of-crm114/pkg-descr echo x - crm114/pkg-plist sed 's/^X//' >crm114/pkg-plist << 'END-of-crm114/pkg-plist' X@comment $FreeBSD$ Xbin/crm Xbin/cssdiff Xbin/cssmerge Xbin/cssutil END-of-crm114/pkg-plist echo x - crm114/distinfo sed 's/^X//' >crm114/distinfo << 'END-of-crm114/distinfo' XMD5 (crm114-20040212-BlameJetlag.src.tar.gz) = 1124fb9c18161bf4306a162e6b9fd974 XSIZE (crm114-20040212-BlameJetlag.src.tar.gz) = 760719 END-of-crm114/distinfo echo c - crm114/files mkdir -p crm114/files > /dev/null 2>&1 echo x - crm114/files/patch-Makefile sed 's/^X//' >crm114/files/patch-Makefile << 'END-of-crm114/files/patch-Makefile' X*** Makefile.orig Tue Feb 24 11:25:00 2004 X--- Makefile Tue Feb 24 11:26:15 2004 X*************** X*** 4,10 **** X # If you want to install the executables somewhere else, change X # BINDIR here. Default is /usr/bin X # X! prefix=/usr X BINDIR=${prefix}/bin X X # VER_SUFFIX defines a version suffix for our installed executables, X--- 4,10 ---- X # If you want to install the executables somewhere else, change X # BINDIR here. Default is /usr/bin X # X! prefix=/usr/local X BINDIR=${prefix}/bin X X # VER_SUFFIX defines a version suffix for our installed executables, X*************** X*** 38,46 **** X # uncomment the following to get a BSD-sane environment. Leave them X # untouched (commented out) for Linux builds. X # Add for FreeBSD X! #CFLAGS += -I/usr/local/include X! #LDFLAGS += -L/usr/local/lib X! #LIBS += -lintl -liconv X # X # ------------------ end of Simson's FreeBSD changes X # X--- 38,46 ---- X # uncomment the following to get a BSD-sane environment. Leave them X # untouched (commented out) for Linux builds. X # Add for FreeBSD X! CFLAGS += -I/usr/local/include X! LDFLAGS += -L/usr/local/lib X! LIBS += -lintl -liconv X # X # ------------------ end of Simson's FreeBSD changes X # X*************** X*** 65,79 **** X $(CC) $(LDFLAGS) crm114.o crmregex_gnu.o crm_mathexec.o -lm -o crm114_gnu $(LIBS) X X crm114_tre: crm114.o crmregex_tre.o crm_mathexec.o X! # X! # Note: if you haven't installed TRElib, the next step X! # will get an error. X! # For TRElib, look in the TRE sub-directory of this kit. X! # You will also need to add /usr/local/lib to /etc/ld.so.conf, X! # and then run ldconfig (as root) to set the library up and make X! # the library known to the static and runtime linkers. X! # X! $(CC) $(LDFLAGS) crm114.o crmregex_tre.o crm_mathexec.o -static -lm -ltre -o crm114_tre $(LIBS) X X crm114.o: crm114.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c crm114.c -o crm114.o X--- 65,71 ---- X $(CC) $(LDFLAGS) crm114.o crmregex_gnu.o crm_mathexec.o -lm -o crm114_gnu $(LIBS) X X crm114_tre: crm114.o crmregex_tre.o crm_mathexec.o X! $(CC) $(LDFLAGS) crm114.o crmregex_tre.o crm_mathexec.o -lm -ltre -o crm114_tre $(LIBS) X X crm114.o: crm114.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c crm114.c -o crm114.o X*************** X*** 89,102 **** X X cssutil: cssutil.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -c cssutil.c -o cssutil.o X! $(CC) $(CFLAGS) cssutil.o -static -lm -ltre -o cssutil X X cssdiff: cssdiff.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -c cssdiff.c -o cssdiff.o X! $(CC) $(CFLAGS) -static -ltre cssdiff.o -o cssdiff X X cssmerge: cssmerge.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X! $(CC) $(CFLAGS) -static -ltre cssmerge.c -o cssmerge X X clean: X -rm -f crm114 X--- 81,94 ---- X X cssutil: cssutil.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -c cssutil.c -o cssutil.o X! $(CC) $(LDFLAGS) $(CFLAGS) cssutil.o -lm -ltre -o cssutil $(LIBS) X X cssdiff: cssdiff.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X $(CC) $(CFLAGS) -c cssdiff.c -o cssdiff.o X! $(CC) $(LDFLAGS) $(CFLAGS) -ltre cssdiff.o -o cssdiff $(LIBS) X X cssmerge: cssmerge.c crm114.h crm114_structs.h crm114_config.h crm114_sysincludes.h X! $(CC) $(LDFLAGS) $(CFLAGS) -ltre cssmerge.c -o cssmerge $(LIBS) X X clean: X -rm -f crm114 X*************** X*** 254,257 **** X distribution: install src_gzip i386_gzip css_gzip X md5sum crm114-$(VERSION).*.tar.gz X X! FORCE: X\ No newline at end of file X--- 246,249 ---- X distribution: install src_gzip i386_gzip css_gzip X md5sum crm114-$(VERSION).*.tar.gz X X! FORCE: END-of-crm114/files/patch-Makefile exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040224121321.961338400B>