git: 9773228bf9e1 - 2026Q3 - mail/postfix: Update to 3.11.6

Juraj Lutter <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch 2026Q3 has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9773228bf9e1dba332f7c39f0396870ddd0aee2f

commit 9773228bf9e1dba332f7c39f0396870ddd0aee2f
Author:     Juraj Lutter <[email protected]>
AuthorDate: 2026-08-14 16:57:36 +0000
Commit:     Juraj Lutter <[email protected]>
CommitDate: 2026-08-14 17:06:36 +0000

    mail/postfix: Update to 3.11.6
    
    - Update to 3.11.6
    - Fix MONGO flavor
    - Properly pass CFLAGS and LDFLAGS for mongo-c-driver, based on [1]
    
    PR:             297519
    (cherry picked from commit c01b34960fd5fbdc25249139e49f3c5a3baae1ef)
---
 mail/postfix/Makefile | 10 ++++++----
 mail/postfix/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 5e7013906981..838ef999dec0 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	postfix
-DISTVERSION=	3.11.5
+DISTVERSION=	3.11.6
 PORTREVISION?=	0
 PORTEPOCH=	1
 CATEGORIES=	mail
@@ -110,6 +110,8 @@ OPTIONS_SLAVE=		PGSQL
 OPTIONS_SLAVE=		SASL
 .elif ${FLAVOR:U} == sqlite
 OPTIONS_SLAVE=		SQLITE
+.elif ${FLAVOR:U} == mongo
+OPTIONS_SLAVE=		MONGO
 .endif
 .if !empty(FLAVOR) && ${FLAVOR:U} != default
 OPTIONS_FILE=	${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options
@@ -311,10 +313,10 @@ IGNORE=		blocklistd is only supported on FreeBSD
 .endif
 
 .if ${PORT_OPTIONS:MMONGO}
+USES+=			pkgconfig
 DYN_EXT+=		mongodb
-POSTFIX_CCARGS+=	-DHAS_MONGODB -I${LOCALBASE}/include/libmongoc-1.0 \
-			-I${LOCALBASE}/include/libbson-1.0
-POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=-L${LOCALBASE}/lib -lmongoc-1.0 -lbson-1.0"
+POSTFIX_CCARGS+=	-DHAS_MONGODB `pkg-config --cflags mongoc2`
+POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=`pkg-config --libs mongoc2`"
 .endif
 
 .if ${PORT_OPTIONS:MMYSQL}
diff --git a/mail/postfix/distinfo b/mail/postfix/distinfo
index 658a11d6952a..82ccd1137fb7 100644
--- a/mail/postfix/distinfo
+++ b/mail/postfix/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1783368607
-SHA256 (postfix/postfix-3.11.5.tar.gz) = 4a6ab3d0e9390989fa201fc6c446045fc702c4e16e7a247c3ae261c9e9bee610
-SIZE (postfix/postfix-3.11.5.tar.gz) = 5287872
+TIMESTAMP = 1786708118
+SHA256 (postfix/postfix-3.11.6.tar.gz) = b9a748705b1cab0a4afcbe42f934c82a33b342ba3229017fb508c71700078d07
+SIZE (postfix/postfix-3.11.6.tar.gz) = 5289392
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.