diff options
author | miwi <miwi@FreeBSD.org> | 2009-08-15 03:55:13 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-08-15 03:55:13 +0800 |
commit | 26fd2d2c646afd9ca066ea14e5e774dbabc27b5b (patch) | |
tree | 06f3e0631e2bae1d997de6d149930b3481ae3b3a /mail/postfix-postfwd/Makefile | |
parent | 829b60fb63505c4f1d69b7587b528018957df6be (diff) | |
download | freebsd-ports-gnome-26fd2d2c646afd9ca066ea14e5e774dbabc27b5b.tar.gz freebsd-ports-gnome-26fd2d2c646afd9ca066ea14e5e774dbabc27b5b.tar.zst freebsd-ports-gnome-26fd2d2c646afd9ca066ea14e5e774dbabc27b5b.zip |
- Update to 1.14
PR: 136730
Submitted by: Sahil Tandon <sahil@tandon.net> (maintainer)
Diffstat (limited to 'mail/postfix-postfwd/Makefile')
-rw-r--r-- | mail/postfix-postfwd/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mail/postfix-postfwd/Makefile b/mail/postfix-postfwd/Makefile index 45398497f492..95d7687eac63 100644 --- a/mail/postfix-postfwd/Makefile +++ b/mail/postfix-postfwd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= postfwd -PORTVERSION= 1.13 +PORTVERSION= 1.14 CATEGORIES= mail MASTER_SITES= http://www.${PORTNAME}.org/old/ PKGNAMEPREFIX= postfix- @@ -23,14 +23,20 @@ PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample SUB_FILES= pkg-message -USE_RC_SUBR= ${PORTNAME} +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 @@ -46,5 +52,18 @@ post-install: @${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> |