diff options
author | garga <garga@FreeBSD.org> | 2005-09-06 00:46:06 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2005-09-06 00:46:06 +0800 |
commit | 947d30f3838863ef2338dc0ce98e42efd8e4d3db (patch) | |
tree | 2f628999116f74971afb1dde12bcfd90c53dd818 /mail | |
parent | 3532ab82aa9dfec9b6254eadcec95a19eb027e4f (diff) | |
download | freebsd-ports-gnome-947d30f3838863ef2338dc0ce98e42efd8e4d3db.tar.gz freebsd-ports-gnome-947d30f3838863ef2338dc0ce98e42efd8e4d3db.tar.zst freebsd-ports-gnome-947d30f3838863ef2338dc0ce98e42efd8e4d3db.zip |
Add postfix-policyd-sf 1.66, anti-spam plugin for Postfix (written in
C).
PR: ports/85396
Submitted by: Xavier Beaudouin <kiwi@oav.net>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/Makefile | 47 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/distinfo | 2 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/files/patch-Makefile | 45 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/files/policyd.sh.in | 40 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/pkg-descr | 13 | ||||
-rw-r--r-- | mail/postfix-policyd-sf/pkg-message | 2 |
7 files changed, 150 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 70a2676fb4ad..1176139cd401 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -378,6 +378,7 @@ SUBDIR += postfix-current SUBDIR += postfix-gps SUBDIR += postfix-gps-devel + SUBDIR += postfix-policyd-sf SUBDIR += postfix-policyd-spf SUBDIR += postfix-policyd-weight SUBDIR += postfix1 diff --git a/mail/postfix-policyd-sf/Makefile b/mail/postfix-policyd-sf/Makefile new file mode 100644 index 000000000000..89c1ac67e376 --- /dev/null +++ b/mail/postfix-policyd-sf/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: policyd-sf +# Date created: 2005-08-02 +# Whom: Xavier Beaudouin <kiwi@oav.net> +# +# $FreeBSD$ +# + +PORTNAME= policyd +PORTVERSION= 1.66 +CATEGORIES= mail +MASTER_SITES= http://policyd.sourceforge.net/ +PKGNAMEPREFIX= postfix- +PKGNAMESUFFIX= -sf +DISTNAME= policyd-v${PORTVERSION} + +MAINTAINER= rafan@infor.org +COMMENT= Anti-spam plugin for Postfix (written in C) + +USE_MYSQL= yes +USE_GMAKE= yes +USE_REINPLACE= yes +USE_RC_SUBR= policyd.sh + +REALNAME= ${PKGNAME:S/-${PORTVERSION}//} + +SUB_LIST+= REALNAME=${REALNAME} + +ALL_TARGET= linux + +PORTDOCS= Changelog.txt README.txt License.txt WHITELIST.sql + +PLIST_FILES= sbin/${REALNAME}-cleanup \ + sbin/${REALNAME} \ + etc/${REALNAME}.conf.sample + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${PREFIX}/sbin/${REALNAME}-cleanup + ${INSTALL_PROGRAM} ${WRKSRC}/policyd ${PREFIX}/sbin/${REALNAME} + ${INSTALL_DATA} ${WRKSRC}/policyd.conf ${PREFIX}/etc/${REALNAME}.conf.sample +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + for f in ${PORTDOCS}; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ + done +.endif + +.include <bsd.port.mk> diff --git a/mail/postfix-policyd-sf/distinfo b/mail/postfix-policyd-sf/distinfo new file mode 100644 index 000000000000..617b17e23f62 --- /dev/null +++ b/mail/postfix-policyd-sf/distinfo @@ -0,0 +1,2 @@ +MD5 (policyd-v1.66.tar.gz) = f2d1562e636fcdcf08660f975538e038 +SIZE (policyd-v1.66.tar.gz) = 51338 diff --git a/mail/postfix-policyd-sf/files/patch-Makefile b/mail/postfix-policyd-sf/files/patch-Makefile new file mode 100644 index 000000000000..9210ae38f98c --- /dev/null +++ b/mail/postfix-policyd-sf/files/patch-Makefile @@ -0,0 +1,45 @@ +--- Makefile.orig Sat Jul 23 12:17:05 2005 ++++ Makefile Tue Aug 2 22:53:14 2005 +@@ -1,20 +1,8 @@ +-# +-# systems which install in /usr +-inc = -I/usr/include/mysql +-lib = -L/usr/lib/mysql +-# systems with single mysql subdir +-inc += -I/usr/local/mysql/include -I/usr/local/mysql/include/mysql +-lib += -L/usr/local/mysql/lib -L/usr/local/mysql/lib/mysql +-# freebsd ports +-inc += -I/usr/local/include/mysql +-lib += -L/usr/local/lib/mysql +-# netbsd pkgsrc +-inc += -I/usr/pkg/include/mysql +-lib += -L/usr/pkg/lib/mysql +- +-CC := gcc +-CPPFLAGS := -O $(inc) +-CFLAGS := -g -W -Wall ++inc := -I$(LOCALBASE)/include/mysql ++lib := -L$(LOCALBASE)/lib/mysql ++CC ?= gcc ++CPPFLAGS += $(inc) ++CFLAGS ?= -g -W -Wall + OS_NAME := $(shell uname | tr [A-Z] [a-z]) + LDLIBS = $(lib) -lmysqlclient -lz + +@@ -22,15 +10,7 @@ + LDLIBS += -lsocket -lnsl -lm + endif + +-all: +- @echo "" +- @echo "Possible options are:" +- @echo "" +- @echo " make build" +- @echo " make install | install-strip" +- @echo " make clean" +- @echo "" +- @exit ++all: build + + build: policyd cleanup + diff --git a/mail/postfix-policyd-sf/files/policyd.sh.in b/mail/postfix-policyd-sf/files/policyd.sh.in new file mode 100644 index 000000000000..78711a1ddf99 --- /dev/null +++ b/mail/postfix-policyd-sf/files/policyd.sh.in @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: policyd +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable policyd: +# +# %%REALNAME%%_enable="YES" +# + +. %%RC_SUBR%% + +name=%%REALNAME%% +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/%%REALNAME%% + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +%%REALNAME%%_enable=${%%REALNAME%%_enable:-"NO"} +%%REALNAME%%_pidfile=${%%REALNAME%%_pidfile:-"/var/run/%%REALNAME%%.pid"} +%%REALNAME%%_flags=${%%REALNAME%%_flags:-"-c %%PREFIX%%/etc/%%REALNAME%%.conf"} + +pidfile="${%%REALNAME%%_pidfile}" + +load_rc_config $name +run_rc_command "$1" diff --git a/mail/postfix-policyd-sf/pkg-descr b/mail/postfix-policyd-sf/pkg-descr new file mode 100644 index 000000000000..af6a6c256f2e --- /dev/null +++ b/mail/postfix-policyd-sf/pkg-descr @@ -0,0 +1,13 @@ +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/ diff --git a/mail/postfix-policyd-sf/pkg-message b/mail/postfix-policyd-sf/pkg-message new file mode 100644 index 000000000000..289c2b272656 --- /dev/null +++ b/mail/postfix-policyd-sf/pkg-message @@ -0,0 +1,2 @@ + +Please conduct README.txt before using it. |