aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix-policyd-sf
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-05 16:46:06 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-05 16:46:06 +0000
commit0968fe26d715b2f62b9c0ac10b3ba24019437c9f (patch)
tree3258ceadfb8bbda75a27d80cbf65a082a17357e4 /mail/postfix-policyd-sf
parent515c525db4dba7e8e76c86f791bb4fade6a3f824 (diff)
downloadports-0968fe26d715b2f62b9c0ac10b3ba24019437c9f.tar.gz
ports-0968fe26d715b2f62b9c0ac10b3ba24019437c9f.zip
Notes
Diffstat (limited to 'mail/postfix-policyd-sf')
-rw-r--r--mail/postfix-policyd-sf/Makefile47
-rw-r--r--mail/postfix-policyd-sf/distinfo2
-rw-r--r--mail/postfix-policyd-sf/files/patch-Makefile45
-rw-r--r--mail/postfix-policyd-sf/files/policyd.sh.in40
-rw-r--r--mail/postfix-policyd-sf/pkg-descr13
-rw-r--r--mail/postfix-policyd-sf/pkg-message2
6 files changed, 149 insertions, 0 deletions
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.