mail/postfix: update to 3.6.3 Quote from release announce: Fixed in Postfix 3.6.3, 3.5.13, 3.4.23, 3.3.20: * (problem introduced in Postfix 2.4, released in 2007): queue file corruption after a Milter (for example, MIMEDefang) made a request to replace the message body with a copy of that message body plus additional text (for example, a SpamAssassin report). The most likely impacts were a) the queue manager reporting a fatal error resulting in email delivery delays, or b) the queue manager reporting the corruption and moving the message to the corrupt queue for damaged messages. However, a determined adversary could craft an email message that would trigger the bug, and insert into its queue file a content filter destination or a redirect email address. Postfix would then deliver the message headers there, in most cases without delivering the message body. With enough experimentation, an attacker could make Postfix deliver both the message headers and body. Some details of a successful attack depend on the Milter implementation, and on the Postfix and Milter configuration details; these can be determined remotely through experimentation. Failed experiments may be detected when the queue manager terminates with a fatal error, or when the queue manager moves damaged files to the "corrupt" queue as evidence. Technical details: when Postfix executes a "replace body" Milter request it will reuse queue file storage that was used by the existing email message body. If the new body is larger, Postfix will append body content to the end of the queue file. The corruption happened when a Milter (for example, MIMEDefang) made a request to replace the body of a message with a new body that contained a copy of the original body plus some new text, and the original body contained a line longer than $line_length_limit bytes (for example, an image encoded in base64 without hard or soft line breaks). In queue files, Postfix stores a long text line as multiple records with up to $line_length_limit bytes each. Unfortunately, Postfix's "replace body" support did not account for the additional queue file space needed to store the second etc. record headers. And thus, the last record(s) of a long text line could overwrite one or more queue file records immediately after the space that was previously occupied by the original message body. Problem report by Benoit Panizzon. * (problem introduced in Postfix 2.10, released in 2012): The postconf "-x" option could produce incorrect output, because multiple functions were implicitly sharing a buffer for intermediate results. Problem report by raf, root cause analysis by Viktor Dukhovni. * (problem introduced in Postfix 2.11, released in 2013): The check_ccert_access feature worked as expected, but produced a spurious warning when Postfix was built without SASL support. Fix by Brad Barden. * Fix for a compiler warning due to a missing 'const' qualifier when compiling Postfix with OpenSSL 3. Depending on compiler settings this could cause the build to fail. Fixed in Postfix 3.6: * The known_tcp_ports settings had no effect. It also wasn't fully implemented. Problem report by Peter. * Fix for missing space between a hostname and warning text.diff -r1.330 -r1.331 pkgsrc/mail/postfix/Makefile
(taca)
@@ -1,97 +1,96 @@ | @@ -1,97 +1,96 @@ | |||
1 | # $NetBSD: Makefile,v 1.330 2021/08/29 21:04:55 khorben Exp $ | 1 | # $NetBSD: Makefile,v 1.331 2021/11/08 13:58:09 taca Exp $ | |
2 | 2 | |||
3 | PKGREVISION= 2 | |||
4 | .include "../../mail/postfix/Makefile.common" | 3 | .include "../../mail/postfix/Makefile.common" | |
5 | 4 | |||
6 | COMMENT= Fast, easy to administer, and secure mail transfer agent | 5 | COMMENT= Fast, easy to administer, and secure mail transfer agent | |
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 pkg-config m4 | 10 | USE_TOOLS+= perl pkg-config m4 | |
12 | 11 | |||
13 | SPECIAL_PERMS+= sbin/postdrop ${POSTFIX_USER} ${MAILDROP_GROUP} 2555 | 12 | SPECIAL_PERMS+= sbin/postdrop ${POSTFIX_USER} ${MAILDROP_GROUP} 2555 | |
14 | SPECIAL_PERMS+= sbin/postqueue ${POSTFIX_USER} ${MAILDROP_GROUP} 2555 | 13 | SPECIAL_PERMS+= sbin/postqueue ${POSTFIX_USER} ${MAILDROP_GROUP} 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. | |
20 | # | 19 | # | |
21 | .include "options.mk" | 20 | .include "options.mk" | |
22 | 21 | |||
23 | FILES_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | 22 | FILES_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | |
24 | MESSAGE_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | 23 | MESSAGE_SUBST+= EXAMPLEDIR=${EXAMPLEDIR} | |
25 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} | 24 | MESSAGE_SUBST+= DOCDIR=${DOCDIR} | |
26 | 25 | |||
27 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE | 26 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE | |
28 | .if exists(${PKGDIR}/MESSAGE.${OPSYS}) | 27 | .if exists(${PKGDIR}/MESSAGE.${OPSYS}) | |
29 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS} | 28 | MESSAGE_SRC+= ${PKGDIR}/MESSAGE.${OPSYS} | |
30 | .endif | 29 | .endif | |
31 | PLIST_SRC+= ${PKGDIR}/PLIST | 30 | PLIST_SRC+= ${PKGDIR}/PLIST | |
32 | 31 | |||
33 | RCD_SCRIPTS= postfix | 32 | RCD_SCRIPTS= postfix | |
34 | OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc | 33 | OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc | |
35 | OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} ${POSTFIX_USER} ${POSTFIX_GROUP} 0700 | 34 | OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} ${POSTFIX_USER} ${POSTFIX_GROUP} 0700 | |
36 | MAKE_DIRS+= ${METADIR}/dynamicmaps.cf.d ${METADIR}/postfix-files.d | 35 | MAKE_DIRS+= ${METADIR}/dynamicmaps.cf.d ${METADIR}/postfix-files.d | |
37 | 36 | |||
38 | PKG_GROUPS?= ${POSTFIX_GROUP} ${MAILDROP_GROUP} | 37 | PKG_GROUPS?= ${POSTFIX_GROUP} ${MAILDROP_GROUP} | |
39 | PKG_USERS?= ${POSTFIX_USER}:${POSTFIX_GROUP} | 38 | PKG_USERS?= ${POSTFIX_USER}:${POSTFIX_GROUP} | |
40 | 39 | |||
41 | PKG_GECOS.${POSTFIX_USER}= Postfix User | 40 | PKG_GECOS.${POSTFIX_USER}= Postfix User | |
42 | PKG_HOME.${POSTFIX_USER}= ${POSTFIX_QUEUE_DIR} | 41 | PKG_HOME.${POSTFIX_USER}= ${POSTFIX_QUEUE_DIR} | |
43 | 42 | |||
44 | CONF_FILES= # empty | 43 | CONF_FILES= # empty | |
45 | .for i in main.cf master.cf | 44 | .for i in main.cf master.cf | |
46 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | 45 | CONF_FILES+= ${EXAMPLEDIR}/${i} ${PKG_SYSCONFDIR}/${i} | |
47 | .endfor | 46 | .endfor | |
48 | CONF_FILES_PERMS= # empty | 47 | CONF_FILES_PERMS= # empty | |
49 | 48 | |||
50 | SUBST_CLASSES+= paths | 49 | SUBST_CLASSES+= paths | |
51 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | 50 | SUBST_FILES.paths= ${WRKDIR}/mailer.conf | |
52 | SUBST_VARS.paths= PREFIX | 51 | SUBST_VARS.paths= PREFIX | |
53 | SUBST_STAGE.paths= pre-configure | 52 | SUBST_STAGE.paths= pre-configure | |
54 | 53 | |||
55 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${METADIR} ${SHLIBDIR} ${EXAMPLEDIR} ${DOCDIR} | 54 | INSTALLATION_DIRS+= ${LIBEXECDIR} ${METADIR} ${SHLIBDIR} ${EXAMPLEDIR} ${DOCDIR} | |
56 | 55 | |||
57 | post-extract: | 56 | post-extract: | |
58 | ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | 57 | ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf | |
59 | ${RM} -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | 58 | ${RM} -f ${WRKSRC}/auxiliary/MacOSX/Postfix.StartupItem/Postfix | |
60 | 59 | |||
61 | post-build: | 60 | post-build: | |
62 | .if !empty(PKG_OPTIONS:Msasl) | 61 | .if !empty(PKG_OPTIONS:Msasl) | |
63 | ${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf | 62 | ${ECHO} "pwcheck_method: ${PWCHECK_METHOD}" > ${WRKDIR}/smtpd.conf | |
64 | .endif | 63 | .endif | |
65 | 64 | |||
66 | do-install: | 65 | do-install: | |
67 | ${RM} -f ${WRKSRC}/conf/*.orig | 66 | ${RM} -f ${WRKSRC}/conf/*.orig | |
68 | .if !empty(PKG_OPTIONS:Msasl) | 67 | .if !empty(PKG_OPTIONS:Msasl) | |
69 | ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR} | 68 | ${INSTALL_DATA} ${WRKDIR}/smtpd.conf ${DESTDIR}${EXAMPLEDIR} | |
70 | .endif | 69 | .endif | |
71 | cd ${WRKSRC} && ${SH} ./postfix-install -non-interactive \ | 70 | cd ${WRKSRC} && ${SH} ./postfix-install -non-interactive \ | |
72 | ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}" | 71 | ${DESTDIR_INSTALLOPTIONS} config_directory="${EXAMPLEDIR}" | |
73 | ${INSTALL_DATA} ${WRKDIR}/mailer.conf \ | 72 | ${INSTALL_DATA} ${WRKDIR}/mailer.conf \ | |
74 | ${DESTDIR}${EXAMPLEDIR}/mailer.conf | 73 | ${DESTDIR}${EXAMPLEDIR}/mailer.conf | |
75 | ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \ | 74 | ${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/qshape/qshape.pl \ | |
76 | ${DESTDIR}${PREFIX}/sbin/qshape | 75 | ${DESTDIR}${PREFIX}/sbin/qshape | |
77 | ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \ | 76 | ${INSTALL_MAN} ${WRKSRC}/man/man1/qshape.1 \ | |
78 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | 77 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | |
79 | .for dir in ${POSTFIX_QUEUE_SUBDIR} | 78 | .for dir in ${POSTFIX_QUEUE_SUBDIR} | |
80 | ${RMDIR} ${DESTDIR}${POSTFIX_QUEUE_DIR}/${dir} | 79 | ${RMDIR} ${DESTDIR}${POSTFIX_QUEUE_DIR}/${dir} | |
81 | .endfor | 80 | .endfor | |
82 | .if ${OPSYS} == "Darwin" | 81 | .if ${OPSYS} == "Darwin" | |
83 | for f in ${DESTDIR}${PREFIX}/lib/postfix/lib*.dylib; do \ | 82 | for f in ${DESTDIR}${PREFIX}/lib/postfix/lib*.dylib; do \ | |
84 | install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \ | 83 | install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \ | |
85 | done | 84 | done | |
86 | for f in ${DESTDIR}${PREFIX}/libexec/postfix/* ${DESTDIR}${PREFIX}/sbin/*; do \ | 85 | for f in ${DESTDIR}${PREFIX}/libexec/postfix/* ${DESTDIR}${PREFIX}/sbin/*; do \ | |
87 | install_name_tool \ | 86 | install_name_tool \ | |
88 | -change @rpath/libpostfix-dns.dylib ${PREFIX}/lib/postfix/libpostfix-dns.dylib \ | 87 | -change @rpath/libpostfix-dns.dylib ${PREFIX}/lib/postfix/libpostfix-dns.dylib \ | |
89 | -change @rpath/libpostfix-global.dylib ${PREFIX}/lib/postfix/libpostfix-global.dylib \ | 88 | -change @rpath/libpostfix-global.dylib ${PREFIX}/lib/postfix/libpostfix-global.dylib \ | |
90 | -change @rpath/libpostfix-master.dylib ${PREFIX}/lib/postfix/libpostfix-master.dylib \ | 89 | -change @rpath/libpostfix-master.dylib ${PREFIX}/lib/postfix/libpostfix-master.dylib \ | |
91 | -change @rpath/libpostfix-tls.dylib ${PREFIX}/lib/postfix/libpostfix-tls.dylib \ | 90 | -change @rpath/libpostfix-tls.dylib ${PREFIX}/lib/postfix/libpostfix-tls.dylib \ | |
92 | -change @rpath/libpostfix-util.dylib ${PREFIX}/lib/postfix/libpostfix-util.dylib \ | 91 | -change @rpath/libpostfix-util.dylib ${PREFIX}/lib/postfix/libpostfix-util.dylib \ | |
93 | $$f; \ | 92 | $$f; \ | |
94 | done | 93 | done | |
95 | .endif | 94 | .endif | |
96 | 95 | |||
97 | .include "../../mk/bsd.pkg.mk" | 96 | .include "../../mk/bsd.pkg.mk" |
@@ -1,133 +1,133 @@ | @@ -1,133 +1,133 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.37 2021/07/26 15:38:10 taca Exp $ | 1 | # $NetBSD: Makefile.common,v 1.38 2021/11/08 13:58:09 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.6.2 | 5 | DISTNAME= postfix-3.6.3 | |
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 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.postfix.org/ | 10 | HOMEPAGE= http://www.postfix.org/ | |
11 | # The postfix license has only very minor diffs from cpl-1.0. | 11 | # The postfix license has only very minor diffs from cpl-1.0. | |
12 | LICENSE= cpl-1.0 | 12 | LICENSE= cpl-1.0 | |
13 | #LICENSE= postfix-license | 13 | #LICENSE= postfix-license | |
14 | 14 | |||
15 | DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo | 15 | DISTINFO_FILE= ${PKGDIR}/../../mail/postfix/distinfo | |
16 | PATCHDIR= ${PKGDIR}/../../mail/postfix/patches | 16 | PATCHDIR= ${PKGDIR}/../../mail/postfix/patches | |
17 | 17 | |||
18 | CHECK_HEADERS_SKIP+= src/global/mail_params.h | 18 | CHECK_HEADERS_SKIP+= src/global/mail_params.h | |
19 | 19 | |||
20 | .include "../../mk/bsd.prefs.mk" | 20 | .include "../../mk/bsd.prefs.mk" | |
21 | 21 | |||
22 | POSTFIX_USER?= postfix | 22 | POSTFIX_USER?= postfix | |
23 | POSTFIX_GROUP?= postfix | 23 | POSTFIX_GROUP?= postfix | |
24 | MAILDROP_GROUP?= maildrop | 24 | MAILDROP_GROUP?= maildrop | |
25 | 25 | |||
26 | # POSTFIX_QUEUE_DIR is the default queue directory for Postfix. This is | 26 | # POSTFIX_QUEUE_DIR is the default queue directory for Postfix. This is | |
27 | # merely a default, and may be changed by setting "queue_directory" in | 27 | # merely a default, and may be changed by setting "queue_directory" in | |
28 | # ${PKG_SYSCONFDIR}/main.cf. | 28 | # ${PKG_SYSCONFDIR}/main.cf. | |
29 | # | 29 | # | |
30 | POSTFIX_DATA_DIR?= ${VARBASE}/db/postfix | 30 | POSTFIX_DATA_DIR?= ${VARBASE}/db/postfix | |
31 | POSTFIX_QUEUE_DIR?= ${VARBASE}/spool/postfix | 31 | POSTFIX_QUEUE_DIR?= ${VARBASE}/spool/postfix | |
32 | POSTFIX_QUEUE_SUBDIR= active bounce corrupt defer deferred flush hold \ | 32 | POSTFIX_QUEUE_SUBDIR= active bounce corrupt defer deferred flush hold \ | |
33 | incoming maildrop pid private public saved trace | 33 | incoming maildrop pid private public saved trace | |
34 | BUILD_DEFS+= VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR | 34 | BUILD_DEFS+= VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR | |
35 | 35 | |||
36 | # CCARGS is a list of options to pass to the preprocessor/compiler. | 36 | # CCARGS is a list of options to pass to the preprocessor/compiler. | |
37 | # AUXLIBS is a list of options to pass to the linker. | 37 | # AUXLIBS is a list of options to pass to the linker. | |
38 | CCARGS= #defined | 38 | CCARGS= #defined | |
39 | AUXLIBS= ${LDFLAGS} | 39 | AUXLIBS= ${LDFLAGS} | |
40 | 40 | |||
41 | # Enable Dovecot SASL | 41 | # Enable Dovecot SASL | |
42 | CCARGS+= -DUSE_SASL_AUTH | 42 | CCARGS+= -DUSE_SASL_AUTH | |
43 | # Enable Berkeley DB map type. BDB_LIBS is defined in mk/bdb.buildlink3.mk. | 43 | # Enable Berkeley DB map type. BDB_LIBS is defined in mk/bdb.buildlink3.mk. | |
44 | CCARGS+= -DHAS_DB | 44 | CCARGS+= -DHAS_DB | |
45 | AUXLIBS+= ${BDB_LIBS} | 45 | AUXLIBS+= ${BDB_LIBS} | |
46 | 46 | |||
47 | # Disable modules by default | 47 | # Disable modules by default | |
48 | .for module in cdb ldap lmdb mysql pcre pgsql sqlite | 48 | .for module in cdb ldap lmdb mysql pcre pgsql sqlite | |
49 | CCARGS+= -DNO_${module:tu} | 49 | CCARGS+= -DNO_${module:tu} | |
50 | .endfor | 50 | .endfor | |
51 | 51 | |||
52 | # Set some default paths to override ${WRKSRC}/src/global/mail_params.h. | 52 | # Set some default paths to override ${WRKSRC}/src/global/mail_params.h. | |
53 | CCARGS+= -DDEF_COMMAND_DIR=\"${PREFIX}/sbin\" | 53 | CCARGS+= -DDEF_COMMAND_DIR=\"${PREFIX}/sbin\" | |
54 | CCARGS+= -DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\" | 54 | CCARGS+= -DDEF_CONFIG_DIR=\"${PKG_SYSCONFDIR}\" | |
55 | CCARGS+= -DDEF_DAEMON_DIR=\"${LIBEXECDIR}\" | 55 | CCARGS+= -DDEF_DAEMON_DIR=\"${LIBEXECDIR}\" | |
56 | CCARGS+= -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\" | 56 | CCARGS+= -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\" | |
57 | CCARGS+= -DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\" | 57 | CCARGS+= -DDEF_MAILQ_PATH=\"${PREFIX}/bin/mailq\" | |
58 | CCARGS+= -DDEF_MANPAGE_DIR=\"${PREFIX}/${PKGMANDIR}\" | 58 | CCARGS+= -DDEF_MANPAGE_DIR=\"${PREFIX}/${PKGMANDIR}\" | |
59 | CCARGS+= -DDEF_META_DIR=\"${PREFIX}/${METADIR}\" | 59 | CCARGS+= -DDEF_META_DIR=\"${PREFIX}/${METADIR}\" | |
60 | CCARGS+= -DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\" | 60 | CCARGS+= -DDEF_NEWALIAS_PATH=\"${PREFIX}/bin/newaliases\" | |
61 | CCARGS+= -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\" | 61 | CCARGS+= -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\" | |
62 | CCARGS+= -DDEF_README_DIR=\"${DOCDIR}\" | 62 | CCARGS+= -DDEF_README_DIR=\"${DOCDIR}\" | |
63 | CCARGS+= -DDEF_SAMPLE_DIR=\"${EXAMPLEDIR}\" | 63 | CCARGS+= -DDEF_SAMPLE_DIR=\"${EXAMPLEDIR}\" | |
64 | CCARGS+= -DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\" | 64 | CCARGS+= -DDEF_SENDMAIL_PATH=\"${PREFIX}/sbin/sendmail\" | |
65 | CCARGS+= -DDEF_SHLIB_DIR=\"${PREFIX}/${SHLIBDIR}\" | 65 | CCARGS+= -DDEF_SHLIB_DIR=\"${PREFIX}/${SHLIBDIR}\" | |
66 | 66 | |||
67 | # Override those same default paths in the installed example main.cf. | 67 | # Override those same default paths in the installed example main.cf. | |
68 | SUBST_CLASSES+= postfix | 68 | SUBST_CLASSES+= postfix | |
69 | SUBST_STAGE.postfix= post-configure | 69 | SUBST_STAGE.postfix= post-configure | |
70 | SUBST_FILES.postfix= conf/main.cf src/global/mail_params.h | 70 | SUBST_FILES.postfix= conf/main.cf src/global/mail_params.h | |
71 | SUBST_SED.postfix= \ | 71 | SUBST_SED.postfix= \ | |
72 | -e 's|^\(data_directory\) =.*|\1 = ${POSTFIX_DATA_DIR}|' | 72 | -e 's|^\(data_directory\) =.*|\1 = ${POSTFIX_DATA_DIR}|' | |
73 | SUBST_SED.postfix+= \ | 73 | SUBST_SED.postfix+= \ | |
74 | -e 's|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|' | 74 | -e 's|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|' | |
75 | SUBST_SED.postfix+= \ | 75 | SUBST_SED.postfix+= \ | |
76 | -e 's|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|' | 76 | -e 's|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|' | |
77 | SUBST_SED.postfix+= \ | 77 | SUBST_SED.postfix+= \ | |
78 | -e 's|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|' | 78 | -e 's|^\(daemon_directory\) =.*|\1 = ${LIBEXECDIR}|' | |
79 | SUBST_SED.postfix+= \ | 79 | SUBST_SED.postfix+= \ | |
80 | -e 's|^\(meta_directory\) =.*|\1 = ${PREFIX}/${METADIR}|' | 80 | -e 's|^\(meta_directory\) =.*|\1 = ${PREFIX}/${METADIR}|' | |
81 | SUBST_SED.postfix+= \ | 81 | SUBST_SED.postfix+= \ | |
82 | -e 's|^\(shlib_directory\) =.*|\1 = ${PREFIX}/${SHLIBDIR}|' | 82 | -e 's|^\(shlib_directory\) =.*|\1 = ${PREFIX}/${SHLIBDIR}|' | |
83 | SUBST_SED.postfix+= \ | 83 | SUBST_SED.postfix+= \ | |
84 | -e 's|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|' | 84 | -e 's|^\(sendmail_path\) =.*|\1 = ${PREFIX}/sbin/sendmail|' | |
85 | SUBST_SED.postfix+= \ | 85 | SUBST_SED.postfix+= \ | |
86 | -e 's|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|' | 86 | -e 's|^\(newaliases_path\) =.*|\1 = ${PREFIX}/bin/newaliases|' | |
87 | SUBST_SED.postfix+= \ | 87 | SUBST_SED.postfix+= \ | |
88 | -e 's|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|' | 88 | -e 's|^\(mailq_path\) =.*|\1 = ${PREFIX}/bin/mailq|' | |
89 | SUBST_SED.postfix+= \ | 89 | SUBST_SED.postfix+= \ | |
90 | -e 's|^\(mail_owner\) =.*|\1 = ${POSTFIX_USER}|' | 90 | -e 's|^\(mail_owner\) =.*|\1 = ${POSTFIX_USER}|' | |
91 | SUBST_SED.postfix+= \ | 91 | SUBST_SED.postfix+= \ | |
92 | -e 's|^\(setgid_group\) =.*|\1 = ${MAILDROP_GROUP}|' | 92 | -e 's|^\(setgid_group\) =.*|\1 = ${MAILDROP_GROUP}|' | |
93 | SUBST_SED.postfix+= \ | 93 | SUBST_SED.postfix+= \ | |
94 | -e 's|^\(manpage_directory\) =.*|\1 = ${PREFIX}/${PKGMANDIR}|' | 94 | -e 's|^\(manpage_directory\) =.*|\1 = ${PREFIX}/${PKGMANDIR}|' | |
95 | SUBST_SED.postfix+= \ | 95 | SUBST_SED.postfix+= \ | |
96 | -e 's|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|' | 96 | -e 's|^\(sample_directory\) =.*|\1 = ${EXAMPLEDIR}|' | |
97 | SUBST_SED.postfix+= \ | 97 | SUBST_SED.postfix+= \ | |
98 | -e 's|^\(readme_directory\) =.*|\1 = ${DOCDIR}|' | 98 | -e 's|^\(readme_directory\) =.*|\1 = ${DOCDIR}|' | |
99 | SUBST_SED.postfix+= \ | 99 | SUBST_SED.postfix+= \ | |
100 | -e '/^\#define DEF_MAIL_OWNER[ ]/s,postfix,${POSTFIX_USER},g' | 100 | -e '/^\#define DEF_MAIL_OWNER[ ]/s,postfix,${POSTFIX_USER},g' | |
101 | SUBST_SED.postfix+= \ | 101 | SUBST_SED.postfix+= \ | |
102 | -e '/^\#define DEF_SGID_GROUP[ ]/s,postdrop,${MAILDROP_GROUP},g' | 102 | -e '/^\#define DEF_SGID_GROUP[ ]/s,postdrop,${MAILDROP_GROUP},g' | |
103 | 103 | |||
104 | PKG_SYSCONFSUBDIR= postfix | 104 | PKG_SYSCONFSUBDIR= postfix | |
105 | LIBEXECDIR= ${PREFIX}/libexec/postfix | 105 | LIBEXECDIR= ${PREFIX}/libexec/postfix | |
106 | DOCDIR= ${PREFIX}/share/doc/postfix | 106 | DOCDIR= ${PREFIX}/share/doc/postfix | |
107 | EXAMPLEDIR= ${PREFIX}/share/examples/postfix | 107 | EXAMPLEDIR= ${PREFIX}/share/examples/postfix | |
108 | # Not prefixed so that we can use where relative path needed | 108 | # Not prefixed so that we can use where relative path needed | |
109 | # METADIR set for postfix-2.6.x compatibility | 109 | # METADIR set for postfix-2.6.x compatibility | |
110 | METADIR= libexec/postfix | 110 | METADIR= libexec/postfix | |
111 | SHLIBDIR= lib/postfix | 111 | SHLIBDIR= lib/postfix | |
112 | 112 | |||
113 | BUILD_TARGET= # empty | 113 | BUILD_TARGET= # empty | |
114 | MAKE_ENV+= CC=${CC:Q} OPT=${CFLAGS:Q} | 114 | MAKE_ENV+= CC=${CC:Q} OPT=${CFLAGS:Q} | |
115 | MAKE_ENV+= AUXLIBS=${AUXLIBS:Q} CCARGS=${CCARGS:Q} | 115 | MAKE_ENV+= AUXLIBS=${AUXLIBS:Q} CCARGS=${CCARGS:Q} | |
116 | 116 | |||
117 | MAKE_ENV+= DEBUG= # empty | 117 | MAKE_ENV+= DEBUG= # empty | |
118 | 118 | |||
119 | .if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h) | 119 | .if ${OPSYS} == "SunOS" && !exists(/usr/include/rpcsvc/nis_cache.h) | |
120 | CCARGS+= -DNO_NISPLUS | 120 | CCARGS+= -DNO_NISPLUS | |
121 | .endif | 121 | .endif | |
122 | 122 | |||
123 | CFLAGS.SunOS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 | 123 | CFLAGS.SunOS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 | |
124 | 124 | |||
125 | DESTDIR_INSTALLOPTIONS= -package install_root="${DESTDIR}" | 125 | DESTDIR_INSTALLOPTIONS= -package install_root="${DESTDIR}" | |
126 | 126 | |||
127 | do-configure: | 127 | do-configure: | |
128 | cd ${WRKSRC} && \ | 128 | cd ${WRKSRC} && \ | |
129 | env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \ | 129 | env ${MAKE_ENV} ${MAKE} -f Makefile.init makefiles \ | |
130 | 'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}' \ | 130 | 'CCARGS=${CCARGS}' 'AUXLIBS=${AUXLIBS}' \ | |
131 | shared=yes dynamicmaps=yes | 131 | shared=yes dynamicmaps=yes | |
132 | 132 | |||
133 | .include "../../mk/bdb.buildlink3.mk" | 133 | .include "../../mk/bdb.buildlink3.mk" |
@@ -1,12 +1,12 @@ | @@ -1,12 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.198 2021/10/26 10:54:21 nia Exp $ | 1 | $NetBSD: distinfo,v 1.199 2021/11/08 13:58:09 taca Exp $ | |
2 | 2 | |||
3 | BLAKE2s (postfix-3.6.2.tar.gz) = 76c630269f750be4665370df8a3a922a7ec1bedfe88e450140c975d8b415d863 | 3 | BLAKE2s (postfix-3.6.3.tar.gz) = 1ba19a223c40f45a0bf4e5994b2acba2ef6210ad7c524b72eb4adf7302446ce1 | |
4 | SHA512 (postfix-3.6.2.tar.gz) = 464ce9ec77e637ede91123472a0383b2bfda52102f9e9852c7191016d4fda2e14f302f2db9793887c182688c2a14dde6eeda728523196a627a8028f99555a4d9 | 4 | SHA512 (postfix-3.6.3.tar.gz) = 7179aaeeaf27838b867d9a07f9a889d7cd6b7f5053e123caef4dff2820d4df6d5be167effedde6c857b4468966b8449c631e56405e1ac2d589716fb4e3f15e3b | |
5 | Size (postfix-3.6.2.tar.gz) = 4749530 bytes | 5 | Size (postfix-3.6.3.tar.gz) = 4750833 bytes | |
6 | SHA1 (patch-aa) = c8216f133e202a7bb37682b0dbc1448f021e7c1c | 6 | SHA1 (patch-aa) = c8216f133e202a7bb37682b0dbc1448f021e7c1c | |
7 | SHA1 (patch-ag) = feccf4aba580f581953b32e6c3a2c453fcb9131c | 7 | SHA1 (patch-ag) = feccf4aba580f581953b32e6c3a2c453fcb9131c | |
8 | SHA1 (patch-ai) = b93d8b4e7a52e2c281cf0815ef2cf653c3cd7efa | 8 | SHA1 (patch-ai) = b93d8b4e7a52e2c281cf0815ef2cf653c3cd7efa | |
9 | SHA1 (patch-src_smtpd_Makefile.in) = 8133f9cceb0c1c0250d6543cb060c66288571722 | 9 | SHA1 (patch-src_smtpd_Makefile.in) = 8133f9cceb0c1c0250d6543cb060c66288571722 | |
10 | SHA1 (patch-src_smtpd_pfilter.c) = c747d2f3584f694eb7b73b19118b4d8b450cfe7f | 10 | SHA1 (patch-src_smtpd_pfilter.c) = c747d2f3584f694eb7b73b19118b4d8b450cfe7f | |
11 | SHA1 (patch-src_smtpd_pfilter.h) = 153b516da89d709d293c6086c2f126791bd945d6 | 11 | SHA1 (patch-src_smtpd_pfilter.h) = 153b516da89d709d293c6086c2f126791bd945d6 | |
12 | SHA1 (patch-src_smtpd_smtpd.c) = 5f290ec55305702986beefdbbc194f5ce7987643 | 12 | SHA1 (patch-src_smtpd_smtpd.c) = 5f290ec55305702986beefdbbc194f5ce7987643 |