Date: Fri, 6 May 2005 23:51:37 +0800 (CST) From: Rong-En Fan <rafan@infor.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/80703: [NEW PORT] mail/postfix-policyd: Greylisting/sender throttling/spamtrap/helo blacking policy server for Postfix Message-ID: <200505061551.j46FpbVk023455@svm.csie.ntu.edu.tw> Resent-Message-ID: <200505061600.j46G0MIp007442@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80703 >Category: ports >Synopsis: [NEW PORT] mail/postfix-policyd: Greylisting/sender throttling/spamtrap/helo blacking policy server for Postfix >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: Fri May 06 16:00:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 5.4 i386 >Organization: NTU CSIE >Environment: >Description: Policyd is an anti-spam plugin for Postfix (written in C) that does Greylisting, Sender-(envelope or SASL)-based throttling (on messages and / or volume per defined time unit), Spamtrap monitoring / blacklisting and Helo auto blacklisting. Author: cami@mweb.co.za WWW: http://policyd.sourceforge.net/ Generated with FreeBSD Port Tools 0.63 == This pr obsolesces 79070. >How-To-Repeat: >Fix: --- postfix-policyd-1.52.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: # # policyd # policyd/pkg-descr # policyd/Makefile # policyd/distinfo # policyd/files # policyd/files/patch-Makefile # policyd/files/policyd.sh # policyd/pkg-message # echo c - policyd mkdir -p policyd > /dev/null 2>&1 echo x - policyd/pkg-descr sed 's/^X//' >policyd/pkg-descr << 'END-of-policyd/pkg-descr' XPolicyd is an anti-spam plugin for Postfix (written in C) that does XGreylisting, Sender-(envelope or SASL)-based throttling (on messages Xand / or volume per defined time unit), Spamtrap monitoring / Xblacklisting and Helo auto blacklisting. X XAuthor: cami@mweb.co.za XWWW: http://policyd.sourceforge.net/ END-of-policyd/pkg-descr echo x - policyd/Makefile sed 's/^X//' >policyd/Makefile << 'END-of-policyd/Makefile' X# New ports collection makefile for: policyd X# Date created: 2005-03-20 X# Whom: Rong-En Fan <rafan@infor.org> X# X# $FreeBSD$ X# X XPORTNAME= policyd XPORTVERSION= 1.52 XCATEGORIES= mail XMASTER_SITES= http://policyd.sourceforge.net/ XPKGNAMEPREFIX= postfix- XDISTNAME= ${PORTNAME}-v${PORTVERSION} X XMAINTAINER= rafan@infor.org XCOMMENT= Greylisting/sender throttling/spamtrap/helo blacking policy server for Postfix X XUSE_MYSQL= yes XUSE_GMAKE= yes XUSE_REINPLACE= yes XUSE_RC_SUBR= yes X XALL_TARGET= linux X X.if !defined(NOPORTDOCS) XPORTDOCS= Changelog.txt README.txt License.txt WHITELIST.sql X.endif X XPLIST_FILES= sbin/${PKGNAMEPREFIX}policyd-cleanup \ X sbin/${PKGNAMEPREFIX}policyd \ X etc/${PKGNAMEPREFIX}policyd.conf.sample \ X etc/rc.d/${PKGNAMEPREFIX}policyd.sh X Xpost-patch: X @${SED} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' -e 's#%%RC_SUBR%%#${RC_SUBR}#g' \ X ${FILESDIR}/policyd.sh > ${WRKDIR}/policyd.sh X Xdo-install: X ${INSTALL_SCRIPT} ${WRKDIR}/policyd.sh ${PREFIX}/etc/rc.d/${PKGNAMEPREFIX}policyd.sh X ${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${PREFIX}/sbin/${PKGNAMEPREFIX}policyd-cleanup X ${INSTALL_PROGRAM} ${WRKSRC}/policyd ${PREFIX}/sbin/${PKGNAMEPREFIX}policyd X ${INSTALL_DATA} ${WRKSRC}/policyd.conf ${PREFIX}/etc/${PKGNAMEPREFIX}policyd.conf.sample X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X for f in ${PORTDOCS}; do \ X ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ X done X.endif X X.include <bsd.port.mk> END-of-policyd/Makefile echo x - policyd/distinfo sed 's/^X//' >policyd/distinfo << 'END-of-policyd/distinfo' XMD5 (policyd-v1.52.tar.gz) = 9b1d80a06a482639db7630bc8b7c8707 XSIZE (policyd-v1.52.tar.gz) = 38883 END-of-policyd/distinfo echo c - policyd/files mkdir -p policyd/files > /dev/null 2>&1 echo x - policyd/files/patch-Makefile sed 's/^X//' >policyd/files/patch-Makefile << 'END-of-policyd/files/patch-Makefile' X--- Makefile.orig Sun Apr 10 16:25:38 2005 X+++ Makefile Wed Apr 13 05:18:42 2005 X@@ -25,11 +25,11 @@ X # X # Please setup your default paths for includes, example follows: X # X-inc := -I/usr/include/mysql -I/usr/local/mysql/include -I/usr/local/mysql/include/mysql X-lib := -L/usr/lib/mysql -L/usr/local/mysql/lib -L/usr/local/mysql/lib/mysql X-CC := gcc X-CPPFLAGS := -O2 $(inc) X-CFLAGS := -g -W -Wall X+inc := -I$(LOCALBASE)/include/mysql X+lib := -L$(LOCALBASE)/lib/mysql X+CC ?= gcc X+CPPFLAGS += $(inc) X+CFLAGS ?= -g -W -Wall X LLDLIBS = $(lib) -lmysqlclient -lz X SLDLIBS = $(lib) -lmysqlclient -lz -lsocket -lnsl -lm X END-of-policyd/files/patch-Makefile echo x - policyd/files/policyd.sh sed 's/^X//' >policyd/files/policyd.sh << 'END-of-policyd/files/policyd.sh' X#!/bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: policyd X# REQUIRE: LOGIN X# BEFORE: mail X# KEYWORD: FreeBSD shutdown X X# X# Add the following lines to /etc/rc.conf to enable policyd: X# X# policyd_enable="YES" X# X X. %%RC_SUBR%% X Xname=policyd Xrcvar=`set_rcvar` X Xcommand=%%PREFIX%%/sbin/policyd X Xstop_postcmd=stop_postcmd X Xstop_postcmd() X{ X rm -f $pidfile X} X X# set defaults X Xpolicyd_enable=${policyd_enable:-"NO"} Xpolicyd_pidfile=${policyd_pidfile:-"/var/run/policyd.pid"} Xpolicyd_flags=${policyd_flags:-"-c %%PREFIX%%/etc/policyd.conf"} X Xpidfile="${policyd_pidfile}" X Xload_rc_config $name Xrun_rc_command "$1" END-of-policyd/files/policyd.sh echo x - policyd/pkg-message sed 's/^X//' >policyd/pkg-message << 'END-of-policyd/pkg-message' X X XPlease conduct README.txt before using it. X END-of-policyd/pkg-message exit --- postfix-policyd-1.52.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?200505061551.j46FpbVk023455>