Mon Nov 7 15:36:07 2011 UTC ()
Update postfix pacakge to 2.8.7.

Postfix stable release 2.8.7 is available. This contains a workaround
for a problem that is fixed in Postfix 2.9.

    * The postscreen daemon, which is not enabled by default, sent
      non-compliant SMTP responses (220- followed by 421) when it
      could not give a connection to a real smtpd process. These
      responses caused some remote SMTP clients to return mail as
      undeliverable.

      The workaround is to hang up after sending 220- without sending
      the 421 "sorry" reply; this is harmless.

      The complete fix involves too much change for a stable release:
      send the 220 greeting, wait for the EHLO command, then send
      the 421 "sorry" reply and hang up.


(taca)
diff -r1.243 -r1.244 pkgsrc/mail/postfix/Makefile
diff -r1.138 -r1.139 pkgsrc/mail/postfix/distinfo
diff -r1.31 -r1.32 pkgsrc/mail/postfix/patches/patch-ag

cvs diff -r1.243 -r1.244 pkgsrc/mail/postfix/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix/Makefile 2011/10/25 14:31:10 1.243
+++ pkgsrc/mail/postfix/Makefile 2011/11/07 15:36:07 1.244
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.243 2011/10/25 14:31:10 taca Exp $ 1# $NetBSD: Makefile,v 1.244 2011/11/07 15:36:07 taca Exp $
2 2
3DISTNAME= postfix-2.8.6 3DISTNAME= postfix-2.8.7
4CATEGORIES= mail 4CATEGORIES= mail
5MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ 5MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/
6MASTER_SITES+= http://postfix.it-austria.net/releases/official/ 6MASTER_SITES+= http://postfix.it-austria.net/releases/official/
7MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ 7MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/
8MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ 8MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.postfix.org/ 11HOMEPAGE= http://www.postfix.org/
12COMMENT= Postfix SMTP server and tools 12COMMENT= Postfix SMTP server and tools
13# The postfix license has only very minor diffs from cpl-1.0. 13# The postfix license has only very minor diffs from cpl-1.0.
14LICENSE= cpl-1.0 14LICENSE= cpl-1.0
15#LICENSE= postfix-license 15#LICENSE= postfix-license
16 16

cvs diff -r1.138 -r1.139 pkgsrc/mail/postfix/distinfo (expand / switch to unified diff)

--- pkgsrc/mail/postfix/distinfo 2011/10/25 14:31:10 1.138
+++ pkgsrc/mail/postfix/distinfo 2011/11/07 15:36:07 1.139
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.138 2011/10/25 14:31:10 taca Exp $ 1$NetBSD: distinfo,v 1.139 2011/11/07 15:36:07 taca Exp $
2 2
3SHA1 (postfix-2.8.6.tar.gz) = 32613ad01cad10ae04aad626f9a69ac9126b3d28 3SHA1 (postfix-2.8.7.tar.gz) = 81c87aceff4d9af67a304354bab9c99ac98fc8a0
4RMD160 (postfix-2.8.6.tar.gz) = 1f85ff0e9432109342436144f6963d39b79910e1 4RMD160 (postfix-2.8.7.tar.gz) = ab0700f8f340fad11bf2a294a36ff1d70a1a8783
5Size (postfix-2.8.6.tar.gz) = 3647498 bytes 5Size (postfix-2.8.7.tar.gz) = 3647643 bytes
6SHA1 (patch-aa) = 5b4923402c80957e47b8a4e16c897287b88544bb 6SHA1 (patch-aa) = 5b4923402c80957e47b8a4e16c897287b88544bb
7SHA1 (patch-ag) = e335304c9126b9b648fc96110bc68e2795b1ae35 7SHA1 (patch-ag) = 3d8083260763adb97ab3d7a270c25c2d95ce6bd6
8SHA1 (patch-ai) = ef3feef8a4fe7781a89f7e087fc5780760b461b1 8SHA1 (patch-ai) = ef3feef8a4fe7781a89f7e087fc5780760b461b1

cvs diff -r1.31 -r1.32 pkgsrc/mail/postfix/patches/patch-ag (expand / switch to unified diff)

--- pkgsrc/mail/postfix/patches/patch-ag 2011/03/22 09:37:27 1.31
+++ pkgsrc/mail/postfix/patches/patch-ag 2011/11/07 15:36:07 1.32
@@ -1,63 +1,63 @@ @@ -1,63 +1,63 @@
1$NetBSD: patch-ag,v 1.31 2011/03/22 09:37:27 taca Exp $ 1$NetBSD: patch-ag,v 1.32 2011/11/07 15:36:07 taca Exp $
2 2
3Only define HAS_DB if it hasn't been defined. 3Only define HAS_DB if it hasn't been defined.
4Add support for NetBSD 5.x and DragonFly BSD. 4Add support for NetBSD 5.x and DragonFly BSD.
5Handle closefrom() on FreeBSD. 5Handle closefrom() on FreeBSD.
6 6
7--- src/util/sys_defs.h.orig 2009-11-14 23:32:37.000000000 +0000 7--- src/util/sys_defs.h.orig 2011-11-02 23:46:22.000000000 +0000
8+++ src/util/sys_defs.h 8+++ src/util/sys_defs.h
9@@ -29,8 +29,8 @@ 9@@ -30,8 +30,8 @@
10 || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ 
11 || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \ 10 || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
 11 || defined(OPENBSD5) \
12 || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \ 12 || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
13- || defined(NETBSD4) \ 13- || defined(NETBSD4) \
14- || defined(EKKOBSD1) 14- || defined(EKKOBSD1)
15+ || defined(NETBSD4) || defined(NETBSD5) \ 15+ || defined(NETBSD4) || defined(NETBSD5) \
16+ || defined(EKKOBSD1) || defined(DRAGONFLY) 16+ || defined(EKKOBSD1) || defined(DRAGONFLY)
17 #define SUPPORTED 17 #define SUPPORTED
18 #include <sys/types.h> 18 #include <sys/types.h>
19 #include <sys/param.h> 19 #include <sys/param.h>
20@@ -43,7 +43,9 @@ 20@@ -44,7 +44,9 @@
21 #define DEF_MAILBOX_LOCK "flock, dotlock" 21 #define DEF_MAILBOX_LOCK "flock, dotlock"
22 #define HAS_SUN_LEN 22 #define HAS_SUN_LEN
23 #define HAS_FSYNC 23 #define HAS_FSYNC
24+#ifndef HAS_DB 24+#ifndef HAS_DB
25 #define HAS_DB 25 #define HAS_DB
26+#endif 26+#endif
27 #define HAS_SA_LEN 27 #define HAS_SA_LEN
28 #define DEF_DB_TYPE "hash" 28 #define DEF_DB_TYPE "hash"
29 #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000) 29 #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000)
30@@ -163,9 +166,19 @@ 30@@ -165,9 +167,19 @@
31 #define HAS_FUTIMES 31 #define HAS_FUTIMES
32 #endif 32 #endif
33  33
34+#if defined(__DragonFly__) 34+#if defined(__DragonFly__)
35+#define HAS_DEV_URANDOM 35+#define HAS_DEV_URANDOM
36+#define HAS_ISSETUGID 36+#define HAS_ISSETUGID
37+#define HAS_FUTIMES 37+#define HAS_FUTIMES
38+#define SOCKADDR_SIZE socklen_t 38+#define SOCKADDR_SIZE socklen_t
39+#define SOCKOPT_SIZE socklen_t 39+#define SOCKOPT_SIZE socklen_t
40+#define HAS_DUPLEX_PIPE 40+#define HAS_DUPLEX_PIPE
41+#endif 41+#endif
42+ 42+
43 #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 105000000) \ 43 #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 105000000) \
44 || (defined(__FreeBSD__) && __FreeBSD__ >= 4) \ 44 || (defined(__FreeBSD__) && __FreeBSD__ >= 4) \
45 || (defined(OpenBSD) && OpenBSD >= 200003) \ 45 || (defined(OpenBSD) && OpenBSD >= 200003) \
46+ || defined(__DragonFly__) \ 46+ || defined(__DragonFly__) \
47 || defined(USAGI_LIBINET6) 47 || defined(USAGI_LIBINET6)
48 #ifndef NO_IPV6 48 #ifndef NO_IPV6
49 # define HAS_IPV6 49 # define HAS_IPV6
50@@ -174,14 +187,16 @@ 50@@ -176,14 +188,16 @@
51  51
52 #if (defined(__FreeBSD_version) && __FreeBSD_version >= 300000) \ 52 #if (defined(__FreeBSD_version) && __FreeBSD_version >= 300000) \
53 || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 103000000) \ 53 || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 103000000) \
54- || (defined(OpenBSD) && OpenBSD >= 199700) /* OpenBSD 2.0?? */ 54- || (defined(OpenBSD) && OpenBSD >= 199700) /* OpenBSD 2.0?? */
55+ || (defined(OpenBSD) && OpenBSD >= 199700) /* OpenBSD 2.0?? */ \ 55+ || (defined(OpenBSD) && OpenBSD >= 199700) /* OpenBSD 2.0?? */ \
56+ || defined(__DragonFly__) 56+ || defined(__DragonFly__)
57 # define USE_SYSV_POLL 57 # define USE_SYSV_POLL
58 #endif 58 #endif
59  59
60 #ifndef NO_KQUEUE 60 #ifndef NO_KQUEUE
61 # if (defined(__FreeBSD_version) && __FreeBSD_version >= 410000) \ 61 # if (defined(__FreeBSD_version) && __FreeBSD_version >= 410000) \
62 || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 200000000) \ 62 || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 200000000) \
63- || (defined(OpenBSD) && OpenBSD >= 200105) /* OpenBSD 2.9 */ 63- || (defined(OpenBSD) && OpenBSD >= 200105) /* OpenBSD 2.9 */