git: c01b34960fd5 - main - mail/postfix: Update to 3.11.6

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

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

commit c01b34960fd5fbdc25249139e49f3c5a3baae1ef
Author:     Juraj Lutter <[email protected]>
AuthorDate: 2026-08-14 16:57:36 +0000
Commit:     Juraj Lutter <[email protected]>
CommitDate: 2026-08-14 16:59:29 +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
---
 mail/postfix/Makefile | 15 +++++++--------
 mail/postfix/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index e2ccd870d78f..91cfd0d354cf 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	postfix
-DISTVERSION=	3.11.5
-PORTREVISION?=	1
+DISTVERSION=	3.11.6
+PORTREVISION?=	0
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	https://postfix-mirror.horus-it.com/postfix-release/ \
@@ -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
@@ -145,9 +147,6 @@ SASL_LIB_DEPENDS=		libsasl2.so:security/cyrus-sasl2
 SQLITE_USES=			sqlite
 TLSRPT_LIB_DEPENDS=		libtlsrpt.so:mail/libtlsrpt
 
-MONGOC_VERSION!=		cd ${.CURDIR}/../../devel/mongo-c-driver; \
-				make -V DISTVERSION
-
 ALL_TARGET=		default
 
 .include <bsd.port.options.mk>
@@ -314,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/mongoc-${MONGOC_VERSION} \
-			-I${LOCALBASE}/include/bson-${MONGOC_VERSION}
-POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=-L${LOCALBASE}/lib -lmongoc2 -lbson2"
+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.