ports/84495: [NEW PORT] mail/policyd-sf: Greylisting/sender throttling/spamtrap/helo blacking policy server for Postfix

Xavier Beaudouin kiwi at oav.net
Tue Aug 2 21:00:29 UTC 2005


>Number:         84495
>Category:       ports
>Synopsis:       [NEW PORT] mail/policyd-sf: 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:   Tue Aug 02 21:00:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Xavier Beaudouin
>Release:        FreeBSD 5.4-RELEASE-p3 i386
>Organization:
The Caudium Group / Association Kazar
>Environment:
System: FreeBSD domu.oav.net 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #0: Sun Jul  3 14:40:30 CEST
>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 at mweb.co.za
WWW:	http://policyd.sourceforge.net/

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

--- policyd-sf-1.58.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-sf
#	policyd-sf/pkg-descr
#	policyd-sf/Makefile
#	policyd-sf/distinfo
#	policyd-sf/files
#	policyd-sf/files/patch-Makefile
#	policyd-sf/files/policyd.sh
#	policyd-sf/pkg-message
#
echo c - policyd-sf
mkdir -p policyd-sf > /dev/null 2>&1
echo x - policyd-sf/pkg-descr
sed 's/^X//' >policyd-sf/pkg-descr << 'END-of-policyd-sf/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 at mweb.co.za
XWWW:	http://policyd.sourceforge.net/
END-of-policyd-sf/pkg-descr
echo x - policyd-sf/Makefile
sed 's/^X//' >policyd-sf/Makefile << 'END-of-policyd-sf/Makefile'
X# New ports collection makefile for:	policyd-sf
X# Date created:				2005-08-02
X# Whom:					Xavier Beaudouin <kiwi at oav.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	policyd-sf
XPORTVERSION=	1.58
XCATEGORIES=	mail
XMASTER_SITES=	http://policyd.sourceforge.net/
XDISTNAME=	policyd-v${PORTVERSION}
X
XMAINTAINER=	rafan at 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' -e 's#%%PREFIX%%#${PREFIX}#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-sf/Makefile
echo x - policyd-sf/distinfo
sed 's/^X//' >policyd-sf/distinfo << 'END-of-policyd-sf/distinfo'
XMD5 (policyd-v1.58.tar.gz) = da1649b9ace557c9abd3a32166edc869
XSIZE (policyd-v1.58.tar.gz) = 42517
END-of-policyd-sf/distinfo
echo c - policyd-sf/files
mkdir -p policyd-sf/files > /dev/null 2>&1
echo x - policyd-sf/files/patch-Makefile
sed 's/^X//' >policyd-sf/files/patch-Makefile << 'END-of-policyd-sf/files/patch-Makefile'
X--- Makefile.orig	Sat Jul 23 12:17:05 2005
X+++ Makefile	Tue Aug  2 22:53:14 2005
X@@ -1,20 +1,8 @@
X-#
X-# systems which install in /usr
X-inc  = -I/usr/include/mysql
X-lib  = -L/usr/lib/mysql
X-# systems with single mysql subdir
X-inc += -I/usr/local/mysql/include -I/usr/local/mysql/include/mysql
X-lib += -L/usr/local/mysql/lib -L/usr/local/mysql/lib/mysql
X-# freebsd ports
X-inc += -I/usr/local/include/mysql
X-lib += -L/usr/local/lib/mysql
X-# netbsd pkgsrc
X-inc += -I/usr/pkg/include/mysql
X-lib += -L/usr/pkg/lib/mysql
X-
X-CC       := gcc
X-CPPFLAGS := -O $(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 OS_NAME  := $(shell uname | tr [A-Z] [a-z])
X LDLIBS    = $(lib) -lmysqlclient -lz
X 
X@@ -22,15 +10,7 @@
X LDLIBS   += -lsocket -lnsl -lm
X endif
X 
X-all:
X-	@echo ""
X-	@echo "Possible options are:"
X-	@echo ""
X-	@echo "  make build"
X-	@echo "  make install | install-strip"
X-	@echo "  make clean"
X-	@echo ""
X-	@exit
X+all: build
X 
X build: policyd cleanup
X 
END-of-policyd-sf/files/patch-Makefile
echo x - policyd-sf/files/policyd.sh
sed 's/^X//' >policyd-sf/files/policyd.sh << 'END-of-policyd-sf/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-sf/files/policyd.sh
echo x - policyd-sf/pkg-message
sed 's/^X//' >policyd-sf/pkg-message << 'END-of-policyd-sf/pkg-message'
X
X
XPlease conduct README.txt before using it.
X
END-of-policyd-sf/pkg-message
exit
--- policyd-sf-1.58.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list