From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 20:04:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F49416A4CE for ; Fri, 27 Feb 2004 20:04:09 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id F309443D1D for ; Fri, 27 Feb 2004 20:04:08 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (sccrmhc12) with ESMTP id <2004022804040701200h6ihae>; Sat, 28 Feb 2004 04:04:07 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 75AD36C; Fri, 27 Feb 2004 23:04:07 -0500 (EST) Sender: lowell@be-well.ilk.org To: FreeBSD Questions References: <20040227120248.GA62384@sr.se> <44r7wgbn9q.fsf@be-well.ilk.org> <44d6804395.fsf@be-well.ilk.org> From: Lowell Gilbert Date: 27 Feb 2004 23:04:07 -0500 In-Reply-To: <44d6804395.fsf@be-well.ilk.org> Message-ID: <441xofyhmw.fsf@be-well.ilk.org> Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Subject: Re: Has anyone succeeded in compiling crm114 & Mailfilter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2004 04:04:09 -0000 --=-=-= Lowell Gilbert writes: > I won't submit a port until I have it doing something useful for me... In case anyone else is interested, though, I have made a start on it. It needs more work, and it's still mostly untested, but maybe somebody else will push it forward if I don't get to it over the weekend. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=crm114-port.shar Content-Description: crm-114 port skeleton, rough cut # 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: # # /usr/ports/devel/crm # /usr/ports/devel/crm/files # /usr/ports/devel/crm/files/patch-Makefile # /usr/ports/devel/crm/Makefile # /usr/ports/devel/crm/distinfo # /usr/ports/devel/crm/pkg-descr # /usr/ports/devel/crm/pkg-plist # echo c - /usr/ports/devel/crm mkdir -p /usr/ports/devel/crm > /dev/null 2>&1 echo c - /usr/ports/devel/crm/files mkdir -p /usr/ports/devel/crm/files > /dev/null 2>&1 echo x - /usr/ports/devel/crm/files/patch-Makefile sed 's/^X//' >/usr/ports/devel/crm/files/patch-Makefile << 'END-of-/usr/ports/devel/crm/files/patch-Makefile' X--- Makefile.ORIG Fri Feb 27 21:33:00 2004 X+++ Makefile Fri Feb 27 22:23:10 2004 X@@ -4,7 +4,11 @@ X # If you want to install the executables somewhere else, change X # BINDIR here. Default is /usr/bin X # X+ifdef PREFIX X+prefix=${PREFIX} X+else X prefix=/usr X+endif X BINDIR=${prefix}/bin X X # VER_SUFFIX defines a version suffix for our installed executables, X@@ -38,9 +42,13 @@ 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+ifeq ($(OPSYS),FreeBSD) X+CFLAGS += -I/usr/local/include X+LDFLAGS += -L/usr/local/lib X+LIBS += -lintl -liconv X+endif X+ X # X # ------------------ end of Simson's FreeBSD changes X # END-of-/usr/ports/devel/crm/files/patch-Makefile echo x - /usr/ports/devel/crm/Makefile sed 's/^X//' >/usr/ports/devel/crm/Makefile << 'END-of-/usr/ports/devel/crm/Makefile' X# New ports collection makefile for: mailfilter X# Date created: 27 Feb 2004 X# Whom: Lowell Gilbert X# X# $FreeBSD$ X# X XPORTNAME= crm114 XPORTVERSION= 20040221 XDISTNAME= crm114-20040221-BlameYokohama.src XCATEGORIES= devel XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= crm114 X XMAINTAINER= ports@FreeBSD.org XCOMMENT= CRM114 is a language designed to write filters in. X X.include X XBUILD_DEPENDS= ${LOCALBASE}/lib/libtre.a:${PORTSDIR}/textproc/libtre X#RUN_DEPENDS= ${LOCALBASE}/lib/libtre.a:${PORTSDIR}/textproc/libtre X XUSE_GMAKE= yes X X.include X END-of-/usr/ports/devel/crm/Makefile echo x - /usr/ports/devel/crm/distinfo sed 's/^X//' >/usr/ports/devel/crm/distinfo << 'END-of-/usr/ports/devel/crm/distinfo' XMD5 (crm114-20040221-BlameYokohama.src.tar.gz) = c969c5857e6c9a423a9d1f2b31a3e072 XSIZE (crm114-20040221-BlameYokohama.src.tar.gz) = 762449 END-of-/usr/ports/devel/crm/distinfo echo x - /usr/ports/devel/crm/pkg-descr sed 's/^X//' >/usr/ports/devel/crm/pkg-descr << 'END-of-/usr/ports/devel/crm/pkg-descr' XCRM114 is a system to examine incoming e-mail, system log streams, data Xfiles or other data streams, and to sort, filter, or alter the incoming Xfiles or data streams according to the user's wildest desires. Criteria for Xcategorization of data can be by satisfaction of regexes, by sparse binary Xpolynomial matching with a Bayesian Chain Rule evaluator, or by other Xmeans. Accuracy of the SBPH/BCR classifier has been seen in excess of 99 per Xcent, for 1/4 megabyte of learning text. In other words, CRM114 learns, and Xit learns fast. X XCRM114 is compatible with SpamAssassin or other spam-flagging software; it Xcan also be pipelined in front of or behind procmail. CRM114 is also useful Xas a syslog or firewall log filter, to alert you to important events but Xignore the ones that aren't meaningful. X XWWW: http://crm114.sourceforge.net/ X X- Lowell Gilbert Xfreebsd-ports-local@be-well.ilk.org END-of-/usr/ports/devel/crm/pkg-descr echo x - /usr/ports/devel/crm/pkg-plist sed 's/^X//' >/usr/ports/devel/crm/pkg-plist << 'END-of-/usr/ports/devel/crm/pkg-plist' Xbin/crm Xbin/cssdiff Xbin/cssmerge Xbin/cssutil END-of-/usr/ports/devel/crm/pkg-plist exit --=-=-=--