28e5e22440
added mysql to the REQUIRE and postfix to the BEFORE. This should get the right startup order, i.e. mysql, policyd, postfix, for most cases. - Update to 1.80, Changelog : [10 Jul 2006] Changes from v1.79 -> v1.80 (bug fixes) * policyd.h: fix *bsd MSG_NOSIGNAL compiling issue. Patch by John Beaver. [04 Jul 2006] Changes from v1.78 -> v1.79 (bug fixes & new functionality) * mysql.c: fix strncpy boundary issue. Patch by Stanislav Sinyagin. * policyd.h: fix array boundary issue. Patch by Stanislav Sinyagin. * throttle*.c: autoblacklist throttle abusers. Patch by Stanislav Sinyagin. * redhat.init: redhat policyd spec file written by Tony Earnshaw. * *.c: logging has changed and is more consistant when reporting. * sockets.c: read()/write() is now non-blocking. Patch by Nigel Kukard. * mysql.c: remove the use of alarm blocking when in bypass mode. * generic.c: module failures now increment mysql failure counters. * policyd.c: whitelisting modules requires WHITELISTING=1 to work. * policyd.c: blacklisting modules requires BLACKLISTING=1 to work. * policyd.c: CONN_ACL is hashed out untill i've resolved a bug thats causing Policyd to fail calls to select() under heavy loads. PR: ports/101583 Submitted by: maintainer (Xavier Beaudouin)
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: postfix-policyd-sf
|
|
# Date created: 2005-08-02
|
|
# Whom: Xavier Beaudouin <kiwi@oav.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= policyd
|
|
PORTVERSION= 1.80
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://policyd.sourceforge.net/ \
|
|
ftp://ftp.oav.net/pkg_freebsd/distfiles/
|
|
PKGNAMEPREFIX= postfix-
|
|
PKGNAMESUFFIX= -sf
|
|
DISTNAME= policyd-v${PORTVERSION}
|
|
|
|
MAINTAINER= kiwi@oav.net
|
|
COMMENT= Anti-spam plugin for Postfix (written in C)
|
|
|
|
USE_MYSQL= yes
|
|
USE_GMAKE= yes
|
|
USE_RC_SUBR= policyd.sh
|
|
|
|
REALNAME= ${PKGNAME:C/-${PORTVERSION}.*//}
|
|
|
|
SUB_LIST+= REALNAME=${REALNAME}
|
|
|
|
ALL_TARGET= linux
|
|
|
|
DOCS= Changelog.txt README.txt License.txt DATABASE.mysql \
|
|
doc/whitelist.sql doc/support.txt doc/blacklist_helo.sql
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES= sbin/${REALNAME}-cleanup \
|
|
sbin/${REALNAME}-stats \
|
|
sbin/${REALNAME} \
|
|
etc/${REALNAME}.conf.sample
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,policyd.pid,postfix-policyd-sf.pid,' \
|
|
${WRKSRC}/policyd.conf
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${PREFIX}/sbin/${REALNAME}-cleanup
|
|
${INSTALL_PROGRAM} ${WRKSRC}/stats ${PREFIX}/sbin/${REALNAME}-stats
|
|
${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 ${DOCS}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
|
|
done
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|