Re: git: d356121270d7 - main - mail/postfix{,-ldap-sasl,-sasl}: Flavorize

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 29 Oct 2021 03:10:08 UTC
From: Yasuhiro Kimura <yasu@FreeBSD.org>
Subject: Re: git: d356121270d7 - main - mail/postfix{,-ldap-sasl,-sasl}: Flavorize
Date: Fri, 29 Oct 2021 05:19:53 +0900 (JST)

> I succeeded to reproduce your issue by enabling DBD option of
> mail/postfix and using database/db5 as berkeley db. I'll investigate
> and fix it ASAP.

Would you please try attached patch?

Best Regards.

---
Yasuhiro Kimura

diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index dfd8d972c4da..623250d45e41 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -36,7 +36,7 @@ sasl_CONFLICTS_INSTALL=		postfix-[0-9]* postfix-base-[0-9]* \
 COMMENT_ldap=	(with OpenLDAP and Cyrus SASL support)
 COMMENT_sasl=	(with Cyrus SASL support)
 
-USES=		cpe shebangfix
+USES=		cpe shebangfix ssl
 USE_RC_SUBR=	postfix
 USE_SUBMAKE=	yes
 
@@ -277,19 +277,20 @@ POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_LMDB=-L${LOCALBASE}/lib -llmdb"
 .endif
 
 # sed script for files in ${WRKSRC}/README_FILES ${WRKSRC}/conf ${WRKSRC}/man
-REINPLACE=	s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!; \
-		s!(_directory = )/usr/!\1${PREFIX}/!g; s!^(data_directory = \
-		/var/)lib/!\1db/!g; s!^\#(mynetworks_style = host)!\1!g; \
-		s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g; \
-		s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g; \
-		s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g; s!^(setgid_group \
-		=)!\1 maildrop!g; s!^(manpage_directory =)!\1 \
-		${MANPREFIX}/man!g; s!^((html|readme)_directory =)!\1 \
-		${READMEDIR}!g; \!^\#alias_database = \
-		dbm:/etc/mail/aliases$$!d; s!(:|= \
-		)/etc/postfix!\1$$config_directory!g; \
-		s!/etc/postfix!${ETCDIR}!g; s!^(sample_directory =)!\1 \
-		${ETCDIR}!g; \
+REINPLACE=	s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}/sbin!;\
+		s!(_directory = )/usr/!\1${PREFIX}/!g;\
+		s!^(data_directory = /var/)lib/!\1db/!g;\
+		s!^\#(mynetworks_style = host)!\1!g;\
+		s!^(sendmail_path =)!\1 ${PREFIX}/sbin/sendmail!g;\
+		s!^(newaliases_path =)!\1 ${PREFIX}/bin/newaliases!g;\
+		s!^(mailq_path =)!\1 ${PREFIX}/bin/mailq!g;\
+		s!^(setgid_group =)!\1 maildrop!g;\
+		s!^(manpage_directory =)!\1 ${MANPREFIX}/man!g;\
+		s!^((html|readme)_directory =)!\1 ${READMEDIR}!g;\
+		\!^\#alias_database = dbm:/etc/mail/aliases$$!d;\
+		s!(:|= )/etc/postfix!\1$$config_directory!g;\
+		s!/etc/postfix!${ETCDIR}!g;\
+		s!^(sample_directory =)!\1 ${ETCDIR}!g;\
 		s!($config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
 
 pre-patch: