Sun Sep 18 17:10:29 2016 UTC ()
Update postfix to 3.1.2.

3.1.0

The main changes in no particular order are:

  * "postfix tls" command to simplify setup of opportunistic TLS,
    and to simplify SMTP server key/certificate management.

  * Positive and negative DNS reply TTL support in postscreen(8).

  * SASL AUTH rate limit in the Postfix SMTP server.

  * A safety limit on the number of address verify requests.

  * JSON-format Postfix queue listing.

  * Destination-independent delivery rate delay

For details, see the RELEASE_NOTES file.

3.1.1

Fixed in all supported releases:

  * The Milter "replace sender" (SMFIR_CHGFROM) request lost an
    address that was added with sender_bcc_maps, resulting in a
    "rcpt count mismatch" warning. Reported by Joerg Backschues.
    This defect was introduced with Postfix 2.6.

  * The "bad filetype" example in the header_checks(5) manpage
    falsely rejected Content- headers with ``name="example";
    x-apple-part-url="example.com"''.  Reported by Cedric Knight.
    This defect was introduced with Postfix 2.6.

3.1.2

Fixed with Postfix 3.1.2:

  * Changes to make Postfix build with OpenSSL 1.1.0.

Fixed with Postfix 3.1.2 and 3.0.6:

  * The makedefs script ignored readme_directory=pathname overrides.
    Fix by Todd C. Olson.

  * The tls_session_ticket_cipher documentation says that the default
    cipher for TLS session tickets is aes-256-cbc, but the implemented
    default was aes-128-cbc. Note that TLS session ticket keys are
    rotated after 1/2 hour, to limit the impact of attacks on session
    ticket keys.


(taca)
diff -r1.291 -r1.292 pkgsrc/mail/postfix/Makefile
diff -r1.2 -r1.3 pkgsrc/mail/postfix/Makefile.common
diff -r1.29 -r1.30 pkgsrc/mail/postfix/PLIST
diff -r1.163 -r1.164 pkgsrc/mail/postfix/distinfo
diff -r1.2 -r1.3 pkgsrc/mail/postfix-ldap/Makefile
diff -r1.3 -r1.4 pkgsrc/mail/postfix-lmdb/Makefile
diff -r1.3 -r1.4 pkgsrc/mail/postfix-mysql/Makefile
diff -r1.3 -r1.4 pkgsrc/mail/postfix-pcre/Makefile
diff -r1.4 -r1.5 pkgsrc/mail/postfix-pgsql/Makefile
diff -r1.5 -r1.6 pkgsrc/mail/postfix-sqlite/Makefile
diff -r1.3 -r1.4 pkgsrc/mail/postfix/patches/patch-src_dns_dns__lookup.c

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

--- pkgsrc/mail/postfix/Makefile 2016/07/09 06:38:31 1.291
+++ pkgsrc/mail/postfix/Makefile 2016/09/18 17:10:28 1.292
@@ -1,19 +1,18 @@ @@ -1,19 +1,18 @@
1# $NetBSD: Makefile,v 1.291 2016/07/09 06:38:31 wiz Exp $ 1# $NetBSD: Makefile,v 1.292 2016/09/18 17:10:28 taca Exp $
2 2
3.include "../../mail/postfix/Makefile.common" 3.include "../../mail/postfix/Makefile.common"
4 4
5COMMENT= Postfix SMTP server and tools 5COMMENT= Postfix SMTP server and tools
6PKGREVISION= 5 
7 6
8CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* 7CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]*
9CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]* 8CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]*
10 9
11USE_TOOLS+= perl 10USE_TOOLS+= perl
12 11
13SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555 12SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555
14SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555 13SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555
15 14
16REPLACE_PERL+= auxiliary/qshape/qshape.pl 15REPLACE_PERL+= auxiliary/qshape/qshape.pl
17 16
18# options.mk appends to CCARGS and AUXLIBS the options needed to build 17# options.mk appends to CCARGS and AUXLIBS the options needed to build
19# Postfix with support for various add-on modules. 18# Postfix with support for various add-on modules.

cvs diff -r1.2 -r1.3 pkgsrc/mail/postfix/Makefile.common (expand / switch to unified diff)

--- pkgsrc/mail/postfix/Makefile.common 2016/04/10 16:39:28 1.2
+++ pkgsrc/mail/postfix/Makefile.common 2016/09/18 17:10:28 1.3
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile.common,v 1.2 2016/04/10 16:39:28 joerg Exp $ 1# $NetBSD: Makefile.common,v 1.3 2016/09/18 17:10:28 taca Exp $
2# used by mail/postfix/Makefile 2# used by mail/postfix/Makefile
3# used by mail/postfix/Makefile.module 3# used by mail/postfix/Makefile.module
4 4
5DISTNAME= postfix-3.0.2 5DISTNAME= postfix-3.1.2
6CATEGORIES= mail 6CATEGORIES= mail
7MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ 7MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/
8MASTER_SITES+= http://postfix.it-austria.net/releases/official/ 8MASTER_SITES+= http://postfix.it-austria.net/releases/official/
9MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ 9MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/
10MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ 10MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/
11 11
12MAINTAINER= pkgsrc-users@NetBSD.org 12MAINTAINER= pkgsrc-users@NetBSD.org
13HOMEPAGE= http://www.postfix.org/ 13HOMEPAGE= http://www.postfix.org/
14# The postfix license has only very minor diffs from cpl-1.0. 14# The postfix license has only very minor diffs from cpl-1.0.
15LICENSE= cpl-1.0 15LICENSE= cpl-1.0
16#LICENSE= postfix-license 16#LICENSE= postfix-license
17 17
18DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo 18DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo

cvs diff -r1.29 -r1.30 pkgsrc/mail/postfix/PLIST (expand / switch to unified diff)

--- pkgsrc/mail/postfix/PLIST 2015/09/07 09:47:01 1.29
+++ pkgsrc/mail/postfix/PLIST 2016/09/18 17:10:28 1.30
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.29 2015/09/07 09:47:01 fhajny Exp $ 1@comment $NetBSD: PLIST,v 1.30 2016/09/18 17:10:28 taca Exp $
2bin/mailq 2bin/mailq
3bin/newaliases 3bin/newaliases
4lib/postfix/libpostfix-dns.so 4lib/postfix/libpostfix-dns.so
5lib/postfix/libpostfix-global.so 5lib/postfix/libpostfix-global.so
6lib/postfix/libpostfix-master.so 6lib/postfix/libpostfix-master.so
7lib/postfix/libpostfix-tls.so 7lib/postfix/libpostfix-tls.so
8lib/postfix/libpostfix-util.so 8lib/postfix/libpostfix-util.so
9libexec/postfix/anvil 9libexec/postfix/anvil
10libexec/postfix/bounce 10libexec/postfix/bounce
11libexec/postfix/cleanup 11libexec/postfix/cleanup
12libexec/postfix/discard 12libexec/postfix/discard
13libexec/postfix/dnsblog 13libexec/postfix/dnsblog
14libexec/postfix/dynamicmaps.cf 14libexec/postfix/dynamicmaps.cf
@@ -17,48 +17,50 @@ libexec/postfix/flush @@ -17,48 +17,50 @@ libexec/postfix/flush
17libexec/postfix/lmtp 17libexec/postfix/lmtp
18libexec/postfix/local 18libexec/postfix/local
19libexec/postfix/main.cf.proto 19libexec/postfix/main.cf.proto
20libexec/postfix/makedefs.out 20libexec/postfix/makedefs.out
21libexec/postfix/master 21libexec/postfix/master
22libexec/postfix/master.cf.proto 22libexec/postfix/master.cf.proto
23libexec/postfix/nqmgr 23libexec/postfix/nqmgr
24libexec/postfix/oqmgr 24libexec/postfix/oqmgr
25libexec/postfix/pickup 25libexec/postfix/pickup
26libexec/postfix/pipe 26libexec/postfix/pipe
27libexec/postfix/post-install 27libexec/postfix/post-install
28libexec/postfix/postfix-files 28libexec/postfix/postfix-files
29libexec/postfix/postfix-script 29libexec/postfix/postfix-script
 30libexec/postfix/postfix-tls-script
30libexec/postfix/postfix-wrapper 31libexec/postfix/postfix-wrapper
31libexec/postfix/postmulti-script 32libexec/postfix/postmulti-script
32libexec/postfix/postscreen 33libexec/postfix/postscreen
33libexec/postfix/proxymap 34libexec/postfix/proxymap
34libexec/postfix/qmgr 35libexec/postfix/qmgr
35libexec/postfix/qmqpd 36libexec/postfix/qmqpd
36libexec/postfix/scache 37libexec/postfix/scache
37libexec/postfix/showq 38libexec/postfix/showq
38libexec/postfix/smtp 39libexec/postfix/smtp
39libexec/postfix/smtpd 40libexec/postfix/smtpd
40libexec/postfix/spawn 41libexec/postfix/spawn
41libexec/postfix/tlsmgr 42libexec/postfix/tlsmgr
42libexec/postfix/tlsproxy 43libexec/postfix/tlsproxy
43libexec/postfix/trivial-rewrite 44libexec/postfix/trivial-rewrite
44libexec/postfix/verify 45libexec/postfix/verify
45libexec/postfix/virtual 46libexec/postfix/virtual
46man/man1/mailq.1 47man/man1/mailq.1
47man/man1/newaliases.1 48man/man1/newaliases.1
48man/man1/postalias.1 49man/man1/postalias.1
49man/man1/postcat.1 50man/man1/postcat.1
50man/man1/postconf.1 51man/man1/postconf.1
51man/man1/postdrop.1 52man/man1/postdrop.1
 53man/man1/postfix-tls.1
52man/man1/postfix.1 54man/man1/postfix.1
53man/man1/postkick.1 55man/man1/postkick.1
54man/man1/postlock.1 56man/man1/postlock.1
55man/man1/postlog.1 57man/man1/postlog.1
56man/man1/postmap.1 58man/man1/postmap.1
57man/man1/postmulti.1 59man/man1/postmulti.1
58man/man1/postqueue.1 60man/man1/postqueue.1
59man/man1/postsuper.1 61man/man1/postsuper.1
60man/man1/qshape.1 62man/man1/qshape.1
61man/man1/sendmail.1 63man/man1/sendmail.1
62man/man5/access.5 64man/man5/access.5
63man/man5/aliases.5 65man/man5/aliases.5
64man/man5/body_checks.5 66man/man5/body_checks.5
@@ -125,26 +127,27 @@ sbin/postmap @@ -125,26 +127,27 @@ sbin/postmap
125sbin/postmulti 127sbin/postmulti
126sbin/postqueue 128sbin/postqueue
127sbin/postsuper 129sbin/postsuper
128sbin/qshape 130sbin/qshape
129sbin/sendmail 131sbin/sendmail
130share/doc/postfix/AAAREADME 132share/doc/postfix/AAAREADME
131share/doc/postfix/ADDRESS_CLASS_README 133share/doc/postfix/ADDRESS_CLASS_README
132share/doc/postfix/ADDRESS_REWRITING_README 134share/doc/postfix/ADDRESS_REWRITING_README
133share/doc/postfix/ADDRESS_VERIFICATION_README 135share/doc/postfix/ADDRESS_VERIFICATION_README
134share/doc/postfix/BACKSCATTER_README 136share/doc/postfix/BACKSCATTER_README
135share/doc/postfix/BASIC_CONFIGURATION_README 137share/doc/postfix/BASIC_CONFIGURATION_README
136share/doc/postfix/BUILTIN_FILTER_README 138share/doc/postfix/BUILTIN_FILTER_README
137share/doc/postfix/CDB_README 139share/doc/postfix/CDB_README
 140share/doc/postfix/COMPATIBILITY_README
138share/doc/postfix/CONNECTION_CACHE_README 141share/doc/postfix/CONNECTION_CACHE_README
139share/doc/postfix/CONTENT_INSPECTION_README 142share/doc/postfix/CONTENT_INSPECTION_README
140share/doc/postfix/DATABASE_README 143share/doc/postfix/DATABASE_README
141share/doc/postfix/DB_README 144share/doc/postfix/DB_README
142share/doc/postfix/DEBUG_README 145share/doc/postfix/DEBUG_README
143share/doc/postfix/DSN_README 146share/doc/postfix/DSN_README
144share/doc/postfix/ETRN_README 147share/doc/postfix/ETRN_README
145share/doc/postfix/FILTER_README 148share/doc/postfix/FILTER_README
146share/doc/postfix/FORWARD_SECRECY_README 149share/doc/postfix/FORWARD_SECRECY_README
147share/doc/postfix/INSTALL 150share/doc/postfix/INSTALL
148share/doc/postfix/IPV6_README 151share/doc/postfix/IPV6_README
149share/doc/postfix/LDAP_README 152share/doc/postfix/LDAP_README
150share/doc/postfix/LINUX_README 153share/doc/postfix/LINUX_README

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

--- pkgsrc/mail/postfix/distinfo 2016/03/23 12:55:18 1.163
+++ pkgsrc/mail/postfix/distinfo 2016/09/18 17:10:28 1.164
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.163 2016/03/23 12:55:18 gdt Exp $ 1$NetBSD: distinfo,v 1.164 2016/09/18 17:10:28 taca Exp $
2 2
3SHA1 (postfix-3.0.2.tar.gz) = 9d75ca3c207441a38a79a2c8ceaa398c2b9cdc4e 3SHA1 (postfix-3.1.2.tar.gz) = 1595ca360c465d7e4f69a5722b4849de5a598e4f
4RMD160 (postfix-3.0.2.tar.gz) = aba1e9decc1aa9aa0c0b68f2bb7f0432b75fabdf 4RMD160 (postfix-3.1.2.tar.gz) = 6ec7ef6c97631ebd88490f4f72b8ebab06d02994
5SHA512 (postfix-3.0.2.tar.gz) = b097ff5cb1707361af568bbcf8b9d264dfefe7a9fd5c2fb4ce731a2ff6a632c3341ace43afe7f1600f2096592535cf9a300322f78c92000e752e0df7d3c39021 5SHA512 (postfix-3.1.2.tar.gz) = 58493d1890c3235d74a18365294ca764bd3b3f278b9825da931005165af60250342c6cf477c3b3575e50858d99cd3ee40f22bece094eb61e9be6c3cf0313d571
6Size (postfix-3.0.2.tar.gz) = 4239235 bytes 6Size (postfix-3.1.2.tar.gz) = 4337569 bytes
7SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111 7SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111
8SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58 8SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58
9SHA1 (patch-ai) = 17b29cceadba3055ae198e1802a786468ecc9eff 9SHA1 (patch-ai) = 17b29cceadba3055ae198e1802a786468ecc9eff
10SHA1 (patch-src_dns_dns__lookup.c) = 9c26686e5abd9aee36f042440e5f6a6ffca3df4a 10SHA1 (patch-src_dns_dns__lookup.c) = b04d35b1df1b60409c903d2fb5bafb16b848523d

cvs diff -r1.2 -r1.3 pkgsrc/mail/postfix-ldap/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-ldap/Makefile 2016/03/05 11:28:50 1.2
+++ pkgsrc/mail/postfix-ldap/Makefile 2016/09/18 17:10:28 1.3
@@ -1,18 +1,17 @@ @@ -1,18 +1,17 @@
1# $NetBSD: Makefile,v 1.2 2016/03/05 11:28:50 jperkin Exp $ 1# $NetBSD: Makefile,v 1.3 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4COMMENT= Postfix SMTP server LDAP backend module 4COMMENT= Postfix SMTP server LDAP backend module
5PKGREVISION= 1 
6 5
7POSTFIX_LIB= ldap 6POSTFIX_LIB= ldap
8POSTFIX_LIBDIR= src/global 7POSTFIX_LIBDIR= src/global
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= no 9POSTFIX_LIB_MKMAP= no
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${BUILDLINK_PREFIX.openldap-client}/include 13CCARGS+= -I${BUILDLINK_PREFIX.openldap-client}/include
15AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.openldap-client}/lib -lldap -llber \ 14AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.openldap-client}/lib -lldap -llber \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openldap-client}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openldap-client}/lib
17 16
18.include "../../databases/openldap-client/buildlink3.mk" 17.include "../../databases/openldap-client/buildlink3.mk"

cvs diff -r1.3 -r1.4 pkgsrc/mail/postfix-lmdb/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-lmdb/Makefile 2015/10/05 00:14:13 1.3
+++ pkgsrc/mail/postfix-lmdb/Makefile 2016/09/18 17:10:28 1.4
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.3 2015/10/05 00:14:13 taca Exp $ 1# $NetBSD: Makefile,v 1.4 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4PKGREVISION= 1 
5COMMENT= Postfix SMTP server LMDB backend module 4COMMENT= Postfix SMTP server LMDB backend module
6 5
7POSTFIX_LIB= lmdb 6POSTFIX_LIB= lmdb
8POSTFIX_LIBDIR= src/global 7POSTFIX_LIBDIR= src/global
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= yes 9POSTFIX_LIB_MKMAP= yes
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${BUILDLINK_PREFIX.lmdb}/include 13CCARGS+= -I${BUILDLINK_PREFIX.lmdb}/include
15AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.lmdb}/lib -llmdb \ 14AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.lmdb}/lib -llmdb \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.lmdb}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.lmdb}/lib
17 16

cvs diff -r1.3 -r1.4 pkgsrc/mail/postfix-mysql/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-mysql/Makefile 2015/10/05 00:14:13 1.3
+++ pkgsrc/mail/postfix-mysql/Makefile 2016/09/18 17:10:28 1.4
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.3 2015/10/05 00:14:13 taca Exp $ 1# $NetBSD: Makefile,v 1.4 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4PKGREVISION= 1 
5COMMENT= Postfix SMTP server MySQL backend module 4COMMENT= Postfix SMTP server MySQL backend module
6 5
7POSTFIX_LIB= mysql 6POSTFIX_LIB= mysql
8POSTFIX_LIBDIR= src/global 7POSTFIX_LIBDIR= src/global
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= no 9POSTFIX_LIB_MKMAP= no
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${BUILDLINK_PREFIX.mysql-client}/include 13CCARGS+= -I${BUILDLINK_PREFIX.mysql-client}/include
15AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.mysql-client}/lib -lmysqlclient \ 14AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.mysql-client}/lib -lmysqlclient \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib
17 16

cvs diff -r1.3 -r1.4 pkgsrc/mail/postfix-pcre/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-pcre/Makefile 2015/10/05 00:14:13 1.3
+++ pkgsrc/mail/postfix-pcre/Makefile 2016/09/18 17:10:28 1.4
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.3 2015/10/05 00:14:13 taca Exp $ 1# $NetBSD: Makefile,v 1.4 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4PKGREVISION= 1 
5COMMENT= Postfix SMTP server PCRE map module 4COMMENT= Postfix SMTP server PCRE map module
6 5
7POSTFIX_LIB= pcre 6POSTFIX_LIB= pcre
8POSTFIX_LIBDIR= src/util 7POSTFIX_LIBDIR= src/util
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= no 9POSTFIX_LIB_MKMAP= no
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${BUILDLINK_PREFIX.pcre}/include 13CCARGS+= -I${BUILDLINK_PREFIX.pcre}/include
15AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.pcre}/lib -lpcre \ 14AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.pcre}/lib -lpcre \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib
17 16

cvs diff -r1.4 -r1.5 pkgsrc/mail/postfix-pgsql/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-pgsql/Makefile 2016/02/14 19:48:13 1.4
+++ pkgsrc/mail/postfix-pgsql/Makefile 2016/09/18 17:10:28 1.5
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.4 2016/02/14 19:48:13 bsiegert Exp $ 1# $NetBSD: Makefile,v 1.5 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4PKGREVISION= 2 
5COMMENT= Postfix SMTP server PostgreSQL backend module 4COMMENT= Postfix SMTP server PostgreSQL backend module
6 5
7POSTFIX_LIB= pgsql 6POSTFIX_LIB= pgsql
8POSTFIX_LIBDIR= src/global 7POSTFIX_LIBDIR= src/global
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= no 9POSTFIX_LIB_MKMAP= no
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${PGSQL_PREFIX}/include 13CCARGS+= -I${PGSQL_PREFIX}/include
15AUXLIBS_MODULE= -L${PGSQL_PREFIX}/lib -lpq \ 14AUXLIBS_MODULE= -L${PGSQL_PREFIX}/lib -lpq \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib
17 16

cvs diff -r1.5 -r1.6 pkgsrc/mail/postfix-sqlite/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/postfix-sqlite/Makefile 2016/04/11 19:01:56 1.5
+++ pkgsrc/mail/postfix-sqlite/Makefile 2016/09/18 17:10:28 1.6
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.5 2016/04/11 19:01:56 ryoon Exp $ 1# $NetBSD: Makefile,v 1.6 2016/09/18 17:10:28 taca Exp $
2# 2#
3 3
4PKGREVISION= 3 
5COMMENT= Postfix SMTP server SQLite backend module 4COMMENT= Postfix SMTP server SQLite backend module
6 5
7POSTFIX_LIB= sqlite 6POSTFIX_LIB= sqlite
8POSTFIX_LIBDIR= src/global 7POSTFIX_LIBDIR= src/global
9POSTFIX_LIB_DICT= yes 8POSTFIX_LIB_DICT= yes
10POSTFIX_LIB_MKMAP= no 9POSTFIX_LIB_MKMAP= no
11 10
12.include "../../mail/postfix/Makefile.module" 11.include "../../mail/postfix/Makefile.module"
13 12
14CCARGS+= -I${BUILDLINK_PREFIX.sqlite3}/include 13CCARGS+= -I${BUILDLINK_PREFIX.sqlite3}/include
15AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3 \ 14AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3 \
16 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib 15 ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib
17 16

cvs diff -r1.3 -r1.4 pkgsrc/mail/postfix/patches/Attic/patch-src_dns_dns__lookup.c (expand / switch to unified diff)

--- pkgsrc/mail/postfix/patches/Attic/patch-src_dns_dns__lookup.c 2014/02/09 05:34:13 1.3
+++ pkgsrc/mail/postfix/patches/Attic/patch-src_dns_dns__lookup.c 2016/09/18 17:10:28 1.4
@@ -1,49 +1,100 @@ @@ -1,49 +1,100 @@
1$NetBSD: patch-src_dns_dns__lookup.c,v 1.3 2014/02/09 05:34:13 taca Exp $ 1$NetBSD: patch-src_dns_dns__lookup.c,v 1.4 2016/09/18 17:10:28 taca Exp $
2 2
3Fix runtime problem when mysql PKG_OPTIONS is enabled. 3Fix runtime problem when mysql PKG_OPTIONS is enabled.
4 4
5--- src/dns/dns_lookup.c.orig 2014-01-09 15:00:36.000000000 +0000 5--- src/dns/dns_lookup.c.orig 2015-07-12 14:10:57.000000000 +0000
6+++ src/dns/dns_lookup.c 6+++ src/dns/dns_lookup.c
7@@ -194,6 +194,8 @@ 7@@ -245,6 +245,8 @@
8  8
9 /* Local stuff. */ 9 /* Local stuff. */
10  10
11+struct __res_state rstate; 11+struct __res_state rstate;
12+ 12+
13 /* 13 /*
14 * Structure to keep track of things while decoding a name server reply. 14 * Structure to keep track of things while decoding a name server reply.
15 */ 15 */
16@@ -235,7 +237,7 @@ static int dns_query(const char *name, i 16@@ -308,7 +310,7 @@ typedef struct DNS_REPLY {
 17
 18 /* dns_res_query - a res_query() clone that can return negative replies */
 19
 20-static int dns_res_query(const char *name, int class, int type,
 21+static int dns_res_query(res_state statp, const char *name, int class, int type,
 22 unsigned char *answer, int anslen)
 23 {
 24 unsigned char msg_buf[MAX_DNS_QUERY_SIZE];
 25@@ -337,14 +339,14 @@ static int dns_res_query(const char *nam
 26 #define NO_MKQUERY_DATA_LEN ((int) 0)
 27 #define NO_MKQUERY_NEWRR ((unsigned char *) 0)
 28
 29- if ((len = res_mkquery(QUERY, name, class, type, NO_MKQUERY_DATA_BUF,
 30+ if ((len = res_nmkquery(statp, QUERY, name, class, type, NO_MKQUERY_DATA_BUF,
 31 NO_MKQUERY_DATA_LEN, NO_MKQUERY_NEWRR,
 32 msg_buf, sizeof(msg_buf))) < 0) {
 33 SET_H_ERRNO(NO_RECOVERY);
 34 if (msg_verbose)
 35 msg_info("res_mkquery() failed");
 36 return (len);
 37- } else if ((len = res_send(msg_buf, len, answer, anslen)) < 0) {
 38+ } else if ((len = res_nsend(statp, msg_buf, len, answer, anslen)) < 0) {
 39 SET_H_ERRNO(TRY_AGAIN);
 40 if (msg_verbose)
 41 msg_info("res_send() failed");
 42@@ -373,7 +375,7 @@ static int dns_res_query(const char *nam
 43
 44 /* dns_res_search - res_search() that can return negative replies */
 45
 46-static int dns_res_search(const char *name, int class, int type,
 47+static int dns_res_search(res_state statp, const char *name, int class, int type,
 48 unsigned char *answer, int anslen, int keep_notfound)
 49 {
 50 int len;
 51@@ -396,7 +398,7 @@ static int dns_res_search(const char *na
 52 if (keep_notfound)
 53 /* Prepare for returning a null-padded server reply. */
 54 memset(answer, 0, anslen);
 55- len = res_query(name, class, type, answer, anslen);
 56+ len = res_nquery(statp, name, class, type, answer, anslen);
 57 if (len > 0) {
 58 SET_H_ERRNO(0);
 59 } else if (keep_notfound && NOT_FOUND_H_ERRNO(h_errno)) {
 60@@ -427,7 +429,7 @@ static int dns_query(const char *name, i
17 /* 61 /*
18 * Initialize the name service. 62 * Initialize the name service.
19 */ 63 */
20- if ((_res.options & RES_INIT) == 0 && res_init() < 0) { 64- if ((_res.options & RES_INIT) == 0 && res_init() < 0) {
21+ if ((rstate.options & RES_INIT) == 0 && res_ninit(&rstate) < 0) { 65+ if ((rstate.options & RES_INIT) == 0 && res_ninit(&rstate) < 0) {
22 if (why) 66 if (why)
23 vstring_strcpy(why, "Name service initialization failure"); 67 vstring_strcpy(why, "Name service initialization failure");
24 return (DNS_FAIL); 68 return (DNS_FAIL);
25@@ -264,18 +266,18 @@ static int dns_query(const char *name, i 69@@ -456,24 +458,24 @@ static int dns_query(const char *name, i
26 */ 70 */
27 #define SAVE_FLAGS (USER_FLAGS | XTRA_FLAGS) 71 #define SAVE_FLAGS (USER_FLAGS | XTRA_FLAGS)
28  72
29- saved_options = (_res.options & SAVE_FLAGS); 73- saved_options = (_res.options & SAVE_FLAGS);
30+ saved_options = (rstate.options & USER_FLAGS); 74+ saved_options = (rstate.options & SAVE_FLAGS);
31  75
32 /* 76 /*
33 * Perform the lookup. Claim that the information cannot be found if and 77 * Perform the lookup. Claim that the information cannot be found if and
34 * only if the name server told us so. 78 * only if the name server told us so.
35 */ 79 */
36 for (;;) { 80 for (;;) {
37- _res.options &= ~saved_options; 81- _res.options &= ~saved_options;
38- _res.options |= flags; 82- _res.options |= flags;
39- len = res_search((char *) name, C_IN, type, reply->buf, reply->buf_len); 
40- _res.options &= ~flags; 
41- _res.options |= saved_options; 
42+ rstate.options &= ~saved_options; 83+ rstate.options &= ~saved_options;
43+ rstate.options |= flags; 84+ rstate.options |= flags;
44+ len = res_nsearch(&rstate, (char *) name, C_IN, type, reply->buf, reply->buf_len); 85 if (keep_notfound && var_dns_ncache_ttl_fix) {
 86- len = dns_res_query((char *) name, C_IN, type, reply->buf,
 87+ len = dns_res_query(&rstate, (char *) name, C_IN, type, reply->buf,
 88 reply->buf_len);
 89 } else {
 90- len = dns_res_search((char *) name, C_IN, type, reply->buf,
 91+ len = dns_res_search(&rstate, (char *) name, C_IN, type, reply->buf,
 92 reply->buf_len, keep_notfound);
 93 }
 94- _res.options &= ~flags;
 95- _res.options |= saved_options;
45+ rstate.options &= ~flags; 96+ rstate.options &= ~flags;
46+ rstate.options |= saved_options; 97+ rstate.options |= saved_options;
47 reply_header = (HEADER *) reply->buf; 98 reply_header = (HEADER *) reply->buf;
48 reply->rcode = reply_header->rcode; 99 reply->rcode = reply_header->rcode;
49 if (len < 0) { 100 if (h_errno != 0) {