Bug 85396 - [NEW PORT] mail/postfixpolicydsf: Greylisting/sender throttling/spamtrap/helo blacking policy server for Postfix
Summary: [NEW PORT] mail/postfixpolicydsf: Greylisting/sender throttling/spamtrap/helo...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 12:10 UTC by Xavier Beaudouin
Modified: 2005-09-05 17:46 UTC (History)
0 users

See Also:


Attachments
postfixpolicydsf-1.66.shar (6.05 KB, text/plain)
2005-08-28 12:10 UTC, Xavier Beaudouin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Beaudouin 2005-08-28 12:10:05 UTC
Please close pr ports/84495 since this port has being updated to reflect 
policyd deamon policy for FreeBSD

Policyd is an anti-spam plugin for Postfix (written in C) that does :

 o Greylisting,
 o Sender-(envelope, SASL or host / ip)-based throttling 
   (on messages and/or volume per defined time unit),
 o Recipient rate limiting,
 o Spamtrap monitoring / blacklisting,
 o HELO auto blacklisting 
 o HELO randomization preventation,
 o Sender mail addresses or domain Sender blacklisting

Author:	cami@mweb.co.za
WWW:	http://policyd.sourceforge.net/

Generated with FreeBSD Port Tools 0.63
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 15:51:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

Grabbed.
Comment 2 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 16:07:53 UTC
Since I'm here, I propose for you this new version of port, with these
changes.

o Move policyd.sh to policyd.sh.in to use USE_RC_SUBR facility
o Use USE_RC_SUBR=policyd.sh to make install/deinstall proccess
  automatic
o Create REALNAME var and use it instead PKGNAMEPREFIX-policyd-PKGNAMESUFFIX
o Add - to PREFIX and SUFFIX
o Change COMMENT to other <= 70 chars, to make portlint happy

Here is the new version:

--- postfix-policyd-sf 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:
#
#	./postfix-policyd-sf
#	./postfix-policyd-sf/pkg-descr
#	./postfix-policyd-sf/Makefile
#	./postfix-policyd-sf/distinfo
#	./postfix-policyd-sf/files
#	./postfix-policyd-sf/files/patch-Makefile
#	./postfix-policyd-sf/files/policyd.sh.in
#	./postfix-policyd-sf/pkg-message
#
echo c - ./postfix-policyd-sf
mkdir -p ./postfix-policyd-sf > /dev/null 2>&1
echo x - ./postfix-policyd-sf/pkg-descr
sed 's/^X//' >./postfix-policyd-sf/pkg-descr << 'END-of-./postfix-policyd-sf/pkg-descr'
XPolicyd is an anti-spam plugin for Postfix (written in C) that does :
X
X o Greylisting,
X o Sender-(envelope, SASL or host / ip)-based throttling 
X   (on messages and/or volume per defined time unit),
X o Recipient rate limiting,
X o Spamtrap monitoring / blacklisting,
X o HELO auto blacklisting 
X o HELO randomization preventation,
X o Sender mail addresses or domain Sender blacklisting
X
XAuthor:	cami@mweb.co.za
XWWW:	http://policyd.sourceforge.net/
END-of-./postfix-policyd-sf/pkg-descr
echo x - ./postfix-policyd-sf/Makefile
sed 's/^X//' >./postfix-policyd-sf/Makefile << 'END-of-./postfix-policyd-sf/Makefile'
X# New ports collection makefile for:	policyd-sf
X# Date created:				2005-08-02
X# Whom:					Xavier Beaudouin <kiwi@oav.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	policyd
XPORTVERSION=	1.66
XCATEGORIES=	mail
XMASTER_SITES=	http://policyd.sourceforge.net/
XPKGNAMEPREFIX=	postfix-
XPKGNAMESUFFIX=	-sf
XDISTNAME=	policyd-v${PORTVERSION}
X
XMAINTAINER=	rafan@infor.org
XCOMMENT=	Anti-spam plugin for Postfix (written in C)
X
XUSE_MYSQL=	yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XUSE_RC_SUBR=	policyd.sh
X
XREALNAME=	${PKGNAME:S/-${PORTVERSION}//}
X
XSUB_LIST+=	REALNAME=${REALNAME}
X
XALL_TARGET=	linux
X
XPORTDOCS=	Changelog.txt README.txt License.txt WHITELIST.sql
X
XPLIST_FILES=	sbin/${REALNAME}-cleanup \
X		sbin/${REALNAME} \
X		etc/${REALNAME}.conf.sample
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${PREFIX}/sbin/${REALNAME}-cleanup
X	${INSTALL_PROGRAM} ${WRKSRC}/policyd ${PREFIX}/sbin/${REALNAME}
X	${INSTALL_DATA} ${WRKSRC}/policyd.conf ${PREFIX}/etc/${REALNAME}.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-./postfix-policyd-sf/Makefile
echo x - ./postfix-policyd-sf/distinfo
sed 's/^X//' >./postfix-policyd-sf/distinfo << 'END-of-./postfix-policyd-sf/distinfo'
XMD5 (policyd-v1.66.tar.gz) = f2d1562e636fcdcf08660f975538e038
XSIZE (policyd-v1.66.tar.gz) = 51338
END-of-./postfix-policyd-sf/distinfo
echo c - ./postfix-policyd-sf/files
mkdir -p ./postfix-policyd-sf/files > /dev/null 2>&1
echo x - ./postfix-policyd-sf/files/patch-Makefile
sed 's/^X//' >./postfix-policyd-sf/files/patch-Makefile << 'END-of-./postfix-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-./postfix-policyd-sf/files/patch-Makefile
echo x - ./postfix-policyd-sf/files/policyd.sh.in
sed 's/^X//' >./postfix-policyd-sf/files/policyd.sh.in << 'END-of-./postfix-policyd-sf/files/policyd.sh.in'
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# %%REALNAME%%_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=%%REALNAME%%
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/%%REALNAME%%
X
Xstop_postcmd=stop_postcmd
X
Xstop_postcmd()
X{
X  rm -f $pidfile
X}
X
X# set defaults
X
X%%REALNAME%%_enable=${%%REALNAME%%_enable:-"NO"}
X%%REALNAME%%_pidfile=${%%REALNAME%%_pidfile:-"/var/run/%%REALNAME%%.pid"}
X%%REALNAME%%_flags=${%%REALNAME%%_flags:-"-c %%PREFIX%%/etc/%%REALNAME%%.conf"}
X
Xpidfile="${%%REALNAME%%_pidfile}"
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-./postfix-policyd-sf/files/policyd.sh.in
echo x - ./postfix-policyd-sf/pkg-message
sed 's/^X//' >./postfix-policyd-sf/pkg-message << 'END-of-./postfix-policyd-sf/pkg-message'
X
XPlease conduct README.txt before using it.
END-of-./postfix-policyd-sf/pkg-message
exit
--- postfix-policyd-sf ends here ---

Do you approve it?
-- 
Renato Botelho <garga @ FreeBSD.org>
               <freebsd @ galle.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

I didn't like the play, but I saw it under adverse conditions.  The
curtain was up.
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 16:08:08 UTC
State Changed
From-To: open->feedback

Ask for submitter's approval.
Comment 4 Renato Botelho freebsd_committer freebsd_triage 2005-09-05 17:46:16 UTC
State Changed
From-To: feedback->closed

New port added with proposed changes. Thanks!