Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2010 18:45:58 +0200 (CEST)
From:      Frank Wall <fw@moov.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        fw@moov.de
Subject:   ports/145673: [NEW PORT] mail/spmfilter: Spmfilter is a high-performance mail filtering framework, written in C
Message-ID:  <201004131645.o3DGjw5n071144@boron.inotronic-intern.de>
Resent-Message-ID: <201004131650.o3DGo30P016492@freefall.freebsd.org>

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

>Number:         145673
>Category:       ports
>Synopsis:       [NEW PORT] mail/spmfilter: Spmfilter is a high-performance mail filtering framework, written in C
>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 Apr 13 16:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Frank Wall
>Release:        FreeBSD 7.1-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009
>Description:
spmfilter is a high-performance mail filtering framework, written in C.

It attempts to be a general filtering framework for any purposes.
Filtering mechanisms are provided by plugins, the API enables spmfilter
plugins to access messages as they are being processed by the MTA.
This allows them to examine and modify message content and
meta-information during the SMTP transaction. Plugins are loaded at
runtime and can be processed in any sequence, the processing chain
can also be altered by a single plugin, for example if the plugin has
to stop further processing (e.g. the clamav-plugin detected malicious
software like a virus and the infected message is actually discarded
- so further processing is stopped by the plugin).

WWW: http://www.spmfilter.org/

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- spmfilter-0.4.0.shar begins here ---
# 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:
#
#	spmfilter
#	spmfilter/files
#	spmfilter/files/spmfilter.in
#	spmfilter/Makefile
#	spmfilter/distinfo
#	spmfilter/pkg-descr
#	spmfilter/pkg-plist
#
echo c - spmfilter
mkdir -p spmfilter > /dev/null 2>&1
echo c - spmfilter/files
mkdir -p spmfilter/files > /dev/null 2>&1
echo x - spmfilter/files/spmfilter.in
sed 's/^X//' >spmfilter/files/spmfilter.in << 'ad4aea1fd80b541780ffdb0d2acaa4da'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: spmfilter
X# REQUIRE: LOGIN mysql postgresql
X# BEFORE: mail
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable spmfilter:
X#
X# spmfilter_enable="YES"
X#
X# See man spmfilter for flags or the config file.
X#
X
X. /etc/rc.subr
X
Xname=spmfilter
Xrcvar=`set_rcvar`
X
Xcommand=/usr/local/sbin/spmfilter
X
Xload_rc_config $name
X
Xspmfilter_enable=${spmfilter_enable-"NO"}
Xspmfilter_config=${spmfilter_config-"/usr/local/etc/spmfilter.conf"}
Xspmfilter_flags=${spmfilter_flags-"-f ${spmfilter_config}"}
X
Xrun_rc_command "$1"
ad4aea1fd80b541780ffdb0d2acaa4da
echo x - spmfilter/Makefile
sed 's/^X//' >spmfilter/Makefile << '0b475f0e56329c0afc7ed90331be140e'
X# New ports collection makefile for: spmfilter
X# Date created:		2010-04-12
X# Whom:			Frank Wall <fw@moov.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	spmfilter
XPORTVERSION=	0.4.0
XCATEGORIES=	mail
XMASTER_SITES=	http://www.spmfilter.org/attachments/download/51/
X
XMAINTAINER=	fw@moov.de
XCOMMENT=	Spmfilter is a high-performance mail filtering framework, written in C
X
XBUILD_DEPENDS+=	cmake>=2.4.5:${PORTSDIR}/devel/cmake \
X		gmime>=2.2:${PORTSDIR}/mail/gmime2 \
X		libesmtp>=1.0:${PORTSDIR}/mail/libesmtp \
X		glib>=2.04:${PORTSDIR}/devel/glib20 \
X		pcre>=6.0:${PORTSDIR}/devel/pcre
X
XRUN_DEPENDS+=	gmime>=2.2:${PORTSDIR}/mail/gmime2 \
X		libesmtp>=1.0:${PORTSDIR}/mail/libesmtp \
X		glib>=2.04:${PORTSDIR}/devel/glib20 \
X		pcre>=6.0:${PORTSDIR}/devel/pcre
X
XUSE_CMAKE=	yes
X
XUSE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
X
XUSE_RC_SUBR=	spmfilter
X
XOPTIONS=	DB4 "Enable DB4 support" on \
X		DEBUG "Enable Debugging" off \
X		LDAP "Enable LDAP support" on \
X		ZDB "Enable ZDB support" on
X
X.if !defined(WITH_DB4) || defined(WITHOUT_DB4)
XCMAKE_ARGS+=	-DWITHOUT_DB4=TRUE
X.endif
X
X.if defined(WITH_DEBUG)
XCMAKE_ARGS+=	-DENABLE_DEBUG=TRUE
X.endif
X
X.if !defined(WITH_LDAP) || defined(WITHOUT_LDAP)
XCMAKE_ARGS+=	-DWITHOUT_LDAP=TRUE
X.endif
X
X.if !defined(WITH_ZDB) || defined(WITHOUT_ZDB)
XCMAKE_ARGS+=	-DWITHOUT_ZDB=TRUE
X.endif
X
XMAN1=		spmfilter.1
XMAN5=		spmfilter.conf.5
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/cmake/Modules/SMFMacros.cmake
X
Xpost-install:
X	${INSTALL_MAN} ${WRKSRC}/man/spmfilter.1 ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/man/spmfilter.conf.5 ${MANPREFIX}/man/man5
X	${INSTALL_DATA} ${WRKSRC}/spmfilter.conf.sample ${PREFIX}/etc/spmfilter.conf.sample
X	${MV} ${PREFIX}/lib/pkgconfig/spmfilter.pc ${PREFIX}/libdata/pkgconfig/spmfilter.pc
X
X.include <bsd.port.post.mk>
0b475f0e56329c0afc7ed90331be140e
echo x - spmfilter/distinfo
sed 's/^X//' >spmfilter/distinfo << '08df16adfe7205efc96f340358f95bc1'
XMD5 (spmfilter-0.4.0.tar.gz) = ae8adfc86820da98b45758fdd7688907
XSHA256 (spmfilter-0.4.0.tar.gz) = c566c199bd1e4b59dff8f9a186ccaa3b951bc2f2837f838723c8dbdfcc4a3eeb
XSIZE (spmfilter-0.4.0.tar.gz) = 52689
08df16adfe7205efc96f340358f95bc1
echo x - spmfilter/pkg-descr
sed 's/^X//' >spmfilter/pkg-descr << '6e37cddf188ac9e850631c1ab2e483d1'
Xspmfilter is a high-performance mail filtering framework, written in C.
X
XIt attempts to be a general filtering framework for any purposes.
XFiltering mechanisms are provided by plugins, the API enables spmfilter
Xplugins to access messages as they are being processed by the MTA.
XThis allows them to examine and modify message content and
Xmeta-information during the SMTP transaction. Plugins are loaded at
Xruntime and can be processed in any sequence, the processing chain
Xcan also be altered by a single plugin, for example if the plugin has
Xto stop further processing (e.g. the clamav-plugin detected malicious
Xsoftware like a virus and the infected message is actually discarded
X- so further processing is stopped by the plugin).
X
XWWW: http://www.spmfilter.org/
6e37cddf188ac9e850631c1ab2e483d1
echo x - spmfilter/pkg-plist
sed 's/^X//' >spmfilter/pkg-plist << '9bf06e9108f7746defeba48d5a2a33b4'
Xinclude/spmfilter/smf/smf_core.h
Xinclude/spmfilter/smf/smf_lookup.h
Xinclude/spmfilter/smf/smf_message.h
Xinclude/spmfilter/smf/smf_mime.h
Xinclude/spmfilter/smf/smf_session.h
Xinclude/spmfilter/smf/smf_settings.h
Xinclude/spmfilter/smf/smf_trace.h
Xinclude/spmfilter/spmfilter.h
Xinclude/spmfilter/spmfilter_config.h
Xlibdata/pkgconfig/spmfilter.pc
Xlib/spmfilter/libpipe.so
Xlib/spmfilter/libpipe.so.0.4.0
Xlib/spmfilter/libsmf.so
Xlib/spmfilter/libsmf.so.0.4.0
Xlib/spmfilter/libsmtpd.so
Xlib/spmfilter/libsmtpd.so.0.4.0
Xsbin/spmfilter
X@unexec if cmp -s %D/etc/spmfilter.conf.sample %D/etc/spmfilter.conf; then rm -f %D/etc/spmfilter.conf; fi
Xetc/spmfilter.conf.sample
X@dirrmtry include/spmfilter/smf
X@dirrmtry include/spmfilter
X@dirrmtry lib/pkgconfig
X@dirrmtry lib/spmfilter
X@dirrmtry %%EXAMPLESDIR%%
9bf06e9108f7746defeba48d5a2a33b4
exit
--- spmfilter-0.4.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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