Skip site navigation (1)Skip section navigation (2)
Date:      27 Feb 2004 23:04:07 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   Re: Has anyone succeeded in compiling crm114 & Mailfilter
Message-ID:  <441xofyhmw.fsf@be-well.ilk.org>
In-Reply-To: <44d6804395.fsf@be-well.ilk.org>
References:  <20040227120248.GA62384@sr.se> <44r7wgbn9q.fsf@be-well.ilk.org> <44d6804395.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> 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 <freebsd-ports-local@be-well.ilk.org>
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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>
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


--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?441xofyhmw.fsf>