freebsd-ports/mail/postfix-postfwd/Makefile
Martin Wilke b093bafb0d - Update to 1.14
PR:		136730
Submitted by:	Sahil Tandon <sahil@tandon.net> (maintainer)
2009-08-14 19:55:13 +00:00

69 lines
2 KiB
Makefile

# New ports collection makefile for: postfwd
# Date created: 8 May 2008
# Whom: Sahil Tandon <sahil@tandon.net>
#
# $FreeBSD$
#
PORTNAME= postfwd
PORTVERSION= 1.14
CATEGORIES= mail
MASTER_SITES= http://www.${PORTNAME}.org/old/
PKGNAMEPREFIX= postfix-
MAINTAINER= sahil@tandon.net
COMMENT= A postfix firewall policy daemon
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
${SITE_PERL}/IO/Multiplex.pm:${PORTSDIR}/devel/p5-IO-Multiplex
PORTDOCS= CHANGELOG ${PORTNAME}.html ${PORTNAME}.txt
PORTEXAMPLES= request.sample
PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
USE_PERL5_RUN= yes
NO_BUILD= yes
MAN8= ${PORTNAME}.8
OPTIONS= MRCPT "Sahil's patch for max recipients per time window" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_MRCPT)
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-sbin-postfwd
.endif
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${PREFIX}/bin/
@${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${PREFIX}/etc/${PORTNAME}.conf.sample
@${INSTALL_MAN} ${WRKSRC}/man/man8/${MAN8} ${MANPREFIX}/man/man8/
post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/tools/${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.if !defined(WITHOUT_MRCPT)
@${ECHO_MSG}
@${ECHO_MSG} The mrcpt\(\) command works like the rate\(\) command,
@${ECHO_MSG} except that the rate counter is incremented by the
@${ECHO_MSG} request\'s recipient_count. To do this reliably,
@${ECHO_MSG} call postfwd from smtpd_data_restrictions.
@${ECHO_MSG}
@${ECHO_MSG} Example:
@${ECHO_MSG} " id=MAX_RECIPIENTS; protocol_state=DATA; \\ "
@${ECHO_MSG} " client_address==192.168.1.1; \\ "
@${ECHO_MSG} " action==mrcpt(\$$\$$client_address/5/3600/450 4.7.1 max 5 recip/hour) "
@${ECHO_MSG}
.endif
.include <bsd.port.post.mk>