diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2008-03-24 20:15:05 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2008-03-24 20:15:05 +0000 |
commit | 931071763276ff26e564b9f3028b11bfb0bc2c03 (patch) | |
tree | 67e6a6c3012c6aaf766e59128638e371deef882d /mail/postfix27 | |
parent | - New port p5-Net-Amazon-Thumbnail-0.06 (diff) |
- Fix milter macros (patch from Wietse Venema) [1]
- Update VDA patch to 2.5.1 [2]
PR: 121652 [1], 122029 [2]
Submitted by: dmx___dmx.org.ru [1], ShuenBin Hsu <sbhsu___mail.a6.idv.tw> [2]
Notes
Notes:
svn path=/head/; revision=209721
Diffstat (limited to 'mail/postfix27')
-rw-r--r-- | mail/postfix27/Makefile | 5 | ||||
-rw-r--r-- | mail/postfix27/distinfo | 3 | ||||
-rw-r--r-- | mail/postfix27/files/patch-src__smtpd__smtpd.c | 36 |
3 files changed, 41 insertions, 3 deletions
diff --git a/mail/postfix27/Makefile b/mail/postfix27/Makefile index d90447f37a44..57d6738a2f7a 100644 --- a/mail/postfix27/Makefile +++ b/mail/postfix27/Makefile @@ -7,7 +7,7 @@ PORTNAME= postfix PORTVERSION= 2.5.1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -185,9 +185,8 @@ _REQUIRE+= ypserv .endif .if defined(WITH_VDA) -IGNORE= Waiting for a new patch that's work with 2.5.1 PATCH_SITES+= http://vda.sourceforge.net/VDA/ -PATCHFILES+= postfix-2.4.5-vda-ng.patch.gz +PATCHFILES+= postfix-2.5.1-vda-ng.patch.gz PATCH_DIST_STRIP= -p1 .endif diff --git a/mail/postfix27/distinfo b/mail/postfix27/distinfo index 0e9da6915239..be41168d0f37 100644 --- a/mail/postfix27/distinfo +++ b/mail/postfix27/distinfo @@ -1,3 +1,6 @@ MD5 (postfix/postfix-2.5.1.tar.gz) = 95a559c509081fdd07d78eafd4f4c3b4 SHA256 (postfix/postfix-2.5.1.tar.gz) = bad7ed98d1bbc8fd27d4b4d6d65a8dfe21794c109bc923e5fe45abea5b484037 SIZE (postfix/postfix-2.5.1.tar.gz) = 3153629 +MD5 (postfix/postfix-2.5.1-vda-ng.patch.gz) = bba9426f8ae9d8603861ce782f117760 +SHA256 (postfix/postfix-2.5.1-vda-ng.patch.gz) = aae719707cea7257081cff915730a596a22e1415c625c574417018700760f423 +SIZE (postfix/postfix-2.5.1-vda-ng.patch.gz) = 12348 diff --git a/mail/postfix27/files/patch-src__smtpd__smtpd.c b/mail/postfix27/files/patch-src__smtpd__smtpd.c new file mode 100644 index 000000000000..f08cfea86de9 --- /dev/null +++ b/mail/postfix27/files/patch-src__smtpd__smtpd.c @@ -0,0 +1,36 @@ +--- src/smtpd/smtpd.c.orig 2008-03-24 16:38:05.000000000 -0300 ++++ src/smtpd/smtpd.c 2008-03-24 16:48:38.000000000 -0300 +@@ -2108,14 +2108,14 @@ + if (smtpd_milters != 0 + && SMTPD_STAND_ALONE(state) == 0 + && (state->saved_flags & MILTER_SKIP_FLAGS) == 0) { ++ PUSH_STRING(saved_sender, state->sender, STR(state->addr_buf)); + err = milter_mail_event(smtpd_milters, + milter_argv(state, argc - 2, argv + 2)); + if (err != 0) { + /* Log reject etc. with correct sender information. */ +- PUSH_STRING(saved_sender, state->sender, STR(state->addr_buf)); + err = check_milter_reply(state, err); +- POP_STRING(saved_sender, state->sender); + } ++ POP_STRING(saved_sender, state->sender); + if (err != 0) { + /* XXX Reset access map side effects. */ + mail_reset(state); +@@ -2362,14 +2362,14 @@ + } + if (smtpd_milters != 0 + && (state->saved_flags & MILTER_SKIP_FLAGS) == 0) { ++ PUSH_STRING(saved_rcpt, state->recipient, STR(state->addr_buf)); + err = milter_rcpt_event(smtpd_milters, + milter_argv(state, argc - 2, argv + 2)); + if (err != 0) { + /* Log reject etc. with correct recipient information. */ +- PUSH_STRING(saved_rcpt, state->recipient, STR(state->addr_buf)); + err = check_milter_reply(state, err); +- POP_STRING(saved_rcpt, state->recipient); + } ++ POP_STRING(saved_rcpt, state->recipient); + if (err != 0) { + smtpd_chat_reply(state, "%s", err); + return (-1); |