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.diff -r1.291 -r1.292 pkgsrc/mail/postfix/Makefile
(taca)
@@ -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 | |||
5 | COMMENT= Postfix SMTP server and tools | 5 | COMMENT= Postfix SMTP server and tools | |
6 | PKGREVISION= 5 | |||
7 | 6 | |||
8 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | 7 | CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 sendmail-[0-9]* | |
9 | CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]* | 8 | CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]* | |
10 | 9 | |||
11 | USE_TOOLS+= perl | 10 | USE_TOOLS+= perl | |
12 | 11 | |||
13 | SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555 | 12 | SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555 | |
14 | SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555 | 13 | SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555 | |
15 | 14 | |||
16 | REPLACE_PERL+= auxiliary/qshape/qshape.pl | 15 | REPLACE_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. |
@@ -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 | |||
5 | DISTNAME= postfix-3.0.2 | 5 | DISTNAME= postfix-3.1.2 | |
6 | CATEGORIES= mail | 6 | CATEGORIES= mail | |
7 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | 7 | MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ | |
8 | MASTER_SITES+= http://postfix.it-austria.net/releases/official/ | 8 | MASTER_SITES+= http://postfix.it-austria.net/releases/official/ | |
9 | MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ | 9 | MASTER_SITES+= http://mirrors.isc.org/pub/postfix/official/ | |
10 | MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ | 10 | MASTER_SITES+= http://mirror.postfix.jp/postfix-release/official/ | |
11 | 11 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 12 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://www.postfix.org/ | 13 | HOMEPAGE= 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. | |
15 | LICENSE= cpl-1.0 | 15 | LICENSE= cpl-1.0 | |
16 | #LICENSE= postfix-license | 16 | #LICENSE= postfix-license | |
17 | 17 | |||
18 | DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo | 18 | DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo |
@@ -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 $ | |
2 | bin/mailq | 2 | bin/mailq | |
3 | bin/newaliases | 3 | bin/newaliases | |
4 | lib/postfix/libpostfix-dns.so | 4 | lib/postfix/libpostfix-dns.so | |
5 | lib/postfix/libpostfix-global.so | 5 | lib/postfix/libpostfix-global.so | |
6 | lib/postfix/libpostfix-master.so | 6 | lib/postfix/libpostfix-master.so | |
7 | lib/postfix/libpostfix-tls.so | 7 | lib/postfix/libpostfix-tls.so | |
8 | lib/postfix/libpostfix-util.so | 8 | lib/postfix/libpostfix-util.so | |
9 | libexec/postfix/anvil | 9 | libexec/postfix/anvil | |
10 | libexec/postfix/bounce | 10 | libexec/postfix/bounce | |
11 | libexec/postfix/cleanup | 11 | libexec/postfix/cleanup | |
12 | libexec/postfix/discard | 12 | libexec/postfix/discard | |
13 | libexec/postfix/dnsblog | 13 | libexec/postfix/dnsblog | |
14 | libexec/postfix/dynamicmaps.cf | 14 | libexec/postfix/dynamicmaps.cf | |
@@ -17,48 +17,50 @@ libexec/postfix/flush | @@ -17,48 +17,50 @@ libexec/postfix/flush | |||
17 | libexec/postfix/lmtp | 17 | libexec/postfix/lmtp | |
18 | libexec/postfix/local | 18 | libexec/postfix/local | |
19 | libexec/postfix/main.cf.proto | 19 | libexec/postfix/main.cf.proto | |
20 | libexec/postfix/makedefs.out | 20 | libexec/postfix/makedefs.out | |
21 | libexec/postfix/master | 21 | libexec/postfix/master | |
22 | libexec/postfix/master.cf.proto | 22 | libexec/postfix/master.cf.proto | |
23 | libexec/postfix/nqmgr | 23 | libexec/postfix/nqmgr | |
24 | libexec/postfix/oqmgr | 24 | libexec/postfix/oqmgr | |
25 | libexec/postfix/pickup | 25 | libexec/postfix/pickup | |
26 | libexec/postfix/pipe | 26 | libexec/postfix/pipe | |
27 | libexec/postfix/post-install | 27 | libexec/postfix/post-install | |
28 | libexec/postfix/postfix-files | 28 | libexec/postfix/postfix-files | |
29 | libexec/postfix/postfix-script | 29 | libexec/postfix/postfix-script | |
30 | libexec/postfix/postfix-tls-script | |||
30 | libexec/postfix/postfix-wrapper | 31 | libexec/postfix/postfix-wrapper | |
31 | libexec/postfix/postmulti-script | 32 | libexec/postfix/postmulti-script | |
32 | libexec/postfix/postscreen | 33 | libexec/postfix/postscreen | |
33 | libexec/postfix/proxymap | 34 | libexec/postfix/proxymap | |
34 | libexec/postfix/qmgr | 35 | libexec/postfix/qmgr | |
35 | libexec/postfix/qmqpd | 36 | libexec/postfix/qmqpd | |
36 | libexec/postfix/scache | 37 | libexec/postfix/scache | |
37 | libexec/postfix/showq | 38 | libexec/postfix/showq | |
38 | libexec/postfix/smtp | 39 | libexec/postfix/smtp | |
39 | libexec/postfix/smtpd | 40 | libexec/postfix/smtpd | |
40 | libexec/postfix/spawn | 41 | libexec/postfix/spawn | |
41 | libexec/postfix/tlsmgr | 42 | libexec/postfix/tlsmgr | |
42 | libexec/postfix/tlsproxy | 43 | libexec/postfix/tlsproxy | |
43 | libexec/postfix/trivial-rewrite | 44 | libexec/postfix/trivial-rewrite | |
44 | libexec/postfix/verify | 45 | libexec/postfix/verify | |
45 | libexec/postfix/virtual | 46 | libexec/postfix/virtual | |
46 | man/man1/mailq.1 | 47 | man/man1/mailq.1 | |
47 | man/man1/newaliases.1 | 48 | man/man1/newaliases.1 | |
48 | man/man1/postalias.1 | 49 | man/man1/postalias.1 | |
49 | man/man1/postcat.1 | 50 | man/man1/postcat.1 | |
50 | man/man1/postconf.1 | 51 | man/man1/postconf.1 | |
51 | man/man1/postdrop.1 | 52 | man/man1/postdrop.1 | |
53 | man/man1/postfix-tls.1 | |||
52 | man/man1/postfix.1 | 54 | man/man1/postfix.1 | |
53 | man/man1/postkick.1 | 55 | man/man1/postkick.1 | |
54 | man/man1/postlock.1 | 56 | man/man1/postlock.1 | |
55 | man/man1/postlog.1 | 57 | man/man1/postlog.1 | |
56 | man/man1/postmap.1 | 58 | man/man1/postmap.1 | |
57 | man/man1/postmulti.1 | 59 | man/man1/postmulti.1 | |
58 | man/man1/postqueue.1 | 60 | man/man1/postqueue.1 | |
59 | man/man1/postsuper.1 | 61 | man/man1/postsuper.1 | |
60 | man/man1/qshape.1 | 62 | man/man1/qshape.1 | |
61 | man/man1/sendmail.1 | 63 | man/man1/sendmail.1 | |
62 | man/man5/access.5 | 64 | man/man5/access.5 | |
63 | man/man5/aliases.5 | 65 | man/man5/aliases.5 | |
64 | man/man5/body_checks.5 | 66 | man/man5/body_checks.5 | |
@@ -125,26 +127,27 @@ sbin/postmap | @@ -125,26 +127,27 @@ sbin/postmap | |||
125 | sbin/postmulti | 127 | sbin/postmulti | |
126 | sbin/postqueue | 128 | sbin/postqueue | |
127 | sbin/postsuper | 129 | sbin/postsuper | |
128 | sbin/qshape | 130 | sbin/qshape | |
129 | sbin/sendmail | 131 | sbin/sendmail | |
130 | share/doc/postfix/AAAREADME | 132 | share/doc/postfix/AAAREADME | |
131 | share/doc/postfix/ADDRESS_CLASS_README | 133 | share/doc/postfix/ADDRESS_CLASS_README | |
132 | share/doc/postfix/ADDRESS_REWRITING_README | 134 | share/doc/postfix/ADDRESS_REWRITING_README | |
133 | share/doc/postfix/ADDRESS_VERIFICATION_README | 135 | share/doc/postfix/ADDRESS_VERIFICATION_README | |
134 | share/doc/postfix/BACKSCATTER_README | 136 | share/doc/postfix/BACKSCATTER_README | |
135 | share/doc/postfix/BASIC_CONFIGURATION_README | 137 | share/doc/postfix/BASIC_CONFIGURATION_README | |
136 | share/doc/postfix/BUILTIN_FILTER_README | 138 | share/doc/postfix/BUILTIN_FILTER_README | |
137 | share/doc/postfix/CDB_README | 139 | share/doc/postfix/CDB_README | |
140 | share/doc/postfix/COMPATIBILITY_README | |||
138 | share/doc/postfix/CONNECTION_CACHE_README | 141 | share/doc/postfix/CONNECTION_CACHE_README | |
139 | share/doc/postfix/CONTENT_INSPECTION_README | 142 | share/doc/postfix/CONTENT_INSPECTION_README | |
140 | share/doc/postfix/DATABASE_README | 143 | share/doc/postfix/DATABASE_README | |
141 | share/doc/postfix/DB_README | 144 | share/doc/postfix/DB_README | |
142 | share/doc/postfix/DEBUG_README | 145 | share/doc/postfix/DEBUG_README | |
143 | share/doc/postfix/DSN_README | 146 | share/doc/postfix/DSN_README | |
144 | share/doc/postfix/ETRN_README | 147 | share/doc/postfix/ETRN_README | |
145 | share/doc/postfix/FILTER_README | 148 | share/doc/postfix/FILTER_README | |
146 | share/doc/postfix/FORWARD_SECRECY_README | 149 | share/doc/postfix/FORWARD_SECRECY_README | |
147 | share/doc/postfix/INSTALL | 150 | share/doc/postfix/INSTALL | |
148 | share/doc/postfix/IPV6_README | 151 | share/doc/postfix/IPV6_README | |
149 | share/doc/postfix/LDAP_README | 152 | share/doc/postfix/LDAP_README | |
150 | share/doc/postfix/LINUX_README | 153 | share/doc/postfix/LINUX_README |
@@ -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 | |||
3 | SHA1 (postfix-3.0.2.tar.gz) = 9d75ca3c207441a38a79a2c8ceaa398c2b9cdc4e | 3 | SHA1 (postfix-3.1.2.tar.gz) = 1595ca360c465d7e4f69a5722b4849de5a598e4f | |
4 | RMD160 (postfix-3.0.2.tar.gz) = aba1e9decc1aa9aa0c0b68f2bb7f0432b75fabdf | 4 | RMD160 (postfix-3.1.2.tar.gz) = 6ec7ef6c97631ebd88490f4f72b8ebab06d02994 | |
5 | SHA512 (postfix-3.0.2.tar.gz) = b097ff5cb1707361af568bbcf8b9d264dfefe7a9fd5c2fb4ce731a2ff6a632c3341ace43afe7f1600f2096592535cf9a300322f78c92000e752e0df7d3c39021 | 5 | SHA512 (postfix-3.1.2.tar.gz) = 58493d1890c3235d74a18365294ca764bd3b3f278b9825da931005165af60250342c6cf477c3b3575e50858d99cd3ee40f22bece094eb61e9be6c3cf0313d571 | |
6 | Size (postfix-3.0.2.tar.gz) = 4239235 bytes | 6 | Size (postfix-3.1.2.tar.gz) = 4337569 bytes | |
7 | SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111 | 7 | SHA1 (patch-aa) = f2c418a2fd34da7325ea2823ddd14043768f0111 | |
8 | SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58 | 8 | SHA1 (patch-ag) = e3d818cd75225c5b50960659827c6e27767cbd58 | |
9 | SHA1 (patch-ai) = 17b29cceadba3055ae198e1802a786468ecc9eff | 9 | SHA1 (patch-ai) = 17b29cceadba3055ae198e1802a786468ecc9eff | |
10 | SHA1 (patch-src_dns_dns__lookup.c) = 9c26686e5abd9aee36f042440e5f6a6ffca3df4a | 10 | SHA1 (patch-src_dns_dns__lookup.c) = b04d35b1df1b60409c903d2fb5bafb16b848523d |
@@ -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 | |||
4 | COMMENT= Postfix SMTP server LDAP backend module | 4 | COMMENT= Postfix SMTP server LDAP backend module | |
5 | PKGREVISION= 1 | |||
6 | 5 | |||
7 | POSTFIX_LIB= ldap | 6 | POSTFIX_LIB= ldap | |
8 | POSTFIX_LIBDIR= src/global | 7 | POSTFIX_LIBDIR= src/global | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= no | 9 | POSTFIX_LIB_MKMAP= no | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${BUILDLINK_PREFIX.openldap-client}/include | 13 | CCARGS+= -I${BUILDLINK_PREFIX.openldap-client}/include | |
15 | AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.openldap-client}/lib -lldap -llber \ | 14 | AUXLIBS_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" |
@@ -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 | |||
4 | PKGREVISION= 1 | |||
5 | COMMENT= Postfix SMTP server LMDB backend module | 4 | COMMENT= Postfix SMTP server LMDB backend module | |
6 | 5 | |||
7 | POSTFIX_LIB= lmdb | 6 | POSTFIX_LIB= lmdb | |
8 | POSTFIX_LIBDIR= src/global | 7 | POSTFIX_LIBDIR= src/global | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= yes | 9 | POSTFIX_LIB_MKMAP= yes | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${BUILDLINK_PREFIX.lmdb}/include | 13 | CCARGS+= -I${BUILDLINK_PREFIX.lmdb}/include | |
15 | AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.lmdb}/lib -llmdb \ | 14 | AUXLIBS_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 |
@@ -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 | |||
4 | PKGREVISION= 1 | |||
5 | COMMENT= Postfix SMTP server MySQL backend module | 4 | COMMENT= Postfix SMTP server MySQL backend module | |
6 | 5 | |||
7 | POSTFIX_LIB= mysql | 6 | POSTFIX_LIB= mysql | |
8 | POSTFIX_LIBDIR= src/global | 7 | POSTFIX_LIBDIR= src/global | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= no | 9 | POSTFIX_LIB_MKMAP= no | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${BUILDLINK_PREFIX.mysql-client}/include | 13 | CCARGS+= -I${BUILDLINK_PREFIX.mysql-client}/include | |
15 | AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.mysql-client}/lib -lmysqlclient \ | 14 | AUXLIBS_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 |
@@ -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 | |||
4 | PKGREVISION= 1 | |||
5 | COMMENT= Postfix SMTP server PCRE map module | 4 | COMMENT= Postfix SMTP server PCRE map module | |
6 | 5 | |||
7 | POSTFIX_LIB= pcre | 6 | POSTFIX_LIB= pcre | |
8 | POSTFIX_LIBDIR= src/util | 7 | POSTFIX_LIBDIR= src/util | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= no | 9 | POSTFIX_LIB_MKMAP= no | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${BUILDLINK_PREFIX.pcre}/include | 13 | CCARGS+= -I${BUILDLINK_PREFIX.pcre}/include | |
15 | AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.pcre}/lib -lpcre \ | 14 | AUXLIBS_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 |
@@ -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 | |||
4 | PKGREVISION= 2 | |||
5 | COMMENT= Postfix SMTP server PostgreSQL backend module | 4 | COMMENT= Postfix SMTP server PostgreSQL backend module | |
6 | 5 | |||
7 | POSTFIX_LIB= pgsql | 6 | POSTFIX_LIB= pgsql | |
8 | POSTFIX_LIBDIR= src/global | 7 | POSTFIX_LIBDIR= src/global | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= no | 9 | POSTFIX_LIB_MKMAP= no | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${PGSQL_PREFIX}/include | 13 | CCARGS+= -I${PGSQL_PREFIX}/include | |
15 | AUXLIBS_MODULE= -L${PGSQL_PREFIX}/lib -lpq \ | 14 | AUXLIBS_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 |
@@ -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 | |||
4 | PKGREVISION= 3 | |||
5 | COMMENT= Postfix SMTP server SQLite backend module | 4 | COMMENT= Postfix SMTP server SQLite backend module | |
6 | 5 | |||
7 | POSTFIX_LIB= sqlite | 6 | POSTFIX_LIB= sqlite | |
8 | POSTFIX_LIBDIR= src/global | 7 | POSTFIX_LIBDIR= src/global | |
9 | POSTFIX_LIB_DICT= yes | 8 | POSTFIX_LIB_DICT= yes | |
10 | POSTFIX_LIB_MKMAP= no | 9 | POSTFIX_LIB_MKMAP= no | |
11 | 10 | |||
12 | .include "../../mail/postfix/Makefile.module" | 11 | .include "../../mail/postfix/Makefile.module" | |
13 | 12 | |||
14 | CCARGS+= -I${BUILDLINK_PREFIX.sqlite3}/include | 13 | CCARGS+= -I${BUILDLINK_PREFIX.sqlite3}/include | |
15 | AUXLIBS_MODULE= -L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3 \ | 14 | AUXLIBS_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 |
@@ -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 | |||
3 | Fix runtime problem when mysql PKG_OPTIONS is enabled. | 3 | Fix 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) { |