git: 18d6180a3f6e - 2026Q3 - mail/postfix: Fix MONGO flavor

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=18d6180a3f6ef0f78fd248fa264ad037026db3f8

commit 18d6180a3f6ef0f78fd248fa264ad037026db3f8
Author:     Juraj Lutter <[email protected]>
AuthorDate: 2026-08-18 16:55:48 +0000
Commit:     Juraj Lutter <[email protected]>
CommitDate: 2026-08-18 17:01:43 +0000

    mail/postfix: Fix MONGO flavor
    
    Fix MONGO flavor by depending on libbson and mongo-c-driver contained
    in quarterly branch.
    
    Also fix pkg-plist for MONGO flavor.
    
    This is a direct commit to 2026Q3
---
 mail/postfix/Makefile  | 8 ++++----
 mail/postfix/pkg-plist | 3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index f89498cbce90..8867a34c871d 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	postfix
 DISTVERSION=	3.11.6
-PORTREVISION?=	0
+PORTREVISION?=	1
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	https://postfix-mirror.horus-it.com/postfix-release/ \
@@ -315,10 +315,10 @@ IGNORE=		blocklistd is only supported on FreeBSD
 .endif
 
 .if ${PORT_OPTIONS:MMONGO}
-USES+=			pkgconfig
 DYN_EXT+=		mongodb
-POSTFIX_CCARGS+=	-DHAS_MONGODB `pkg-config --cflags mongoc2`
-POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=`pkg-config --libs mongoc2`"
+POSTFIX_CCARGS+=	-DHAS_MONGODB -I${LOCALBASE}/include/libbson-1.0 \
+			-I${LOCALBASE}/include/libmongoc-1.0
+POSTFIX_DYN_AUXLIBS+=	"AUXLIBS_MONGODB=-L${LOCALBASE}/lib -lbson-1.0 -lmongoc-1.0"
 .endif
 
 .if ${PORT_OPTIONS:MMYSQL}
diff --git a/mail/postfix/pkg-plist b/mail/postfix/pkg-plist
index 551087d5be6c..b3063568c687 100644
--- a/mail/postfix/pkg-plist
+++ b/mail/postfix/pkg-plist
@@ -28,6 +28,7 @@ lib/postfix/libpostfix-util.so
 %%CDB%%lib/postfix/postfix-cdb.so
 %%LDAP%%lib/postfix/postfix-ldap.so
 %%LMDB%%lib/postfix/postfix-lmdb.so
+%%MONGO%%lib/postfix/postfix-mongodb.so
 %%MYSQL%%lib/postfix/postfix-mysql.so
 %%PCRE2%%lib/postfix/postfix-pcre.so
 %%PGSQL%%lib/postfix/postfix-pgsql.so
@@ -41,6 +42,7 @@ libexec/postfix/dynamicmaps.cf
 %%CDB%%libexec/postfix/dynamicmaps.cf.d/cdb.cf
 %%LDAP%%libexec/postfix/dynamicmaps.cf.d/ldap.cf
 %%LMDB%%libexec/postfix/dynamicmaps.cf.d/lmdb.cf
+%%MONGO%%libexec/postfix/dynamicmaps.cf.d/mongodb.cf
 %%MYSQL%%libexec/postfix/dynamicmaps.cf.d/mysql.cf
 %%PCRE2%%libexec/postfix/dynamicmaps.cf.d/pcre.cf
 %%PGSQL%%libexec/postfix/dynamicmaps.cf.d/pgsql.cf
@@ -64,6 +66,7 @@ libexec/postfix/postfix-non-bdb-script
 %%CDB%%libexec/postfix/postfix-files.d/cdb-files
 %%LDAP%%libexec/postfix/postfix-files.d/ldap-files
 %%LMDB%%libexec/postfix/postfix-files.d/lmdb-files
+%%MONGO%%libexec/postfix/postfix-files.d/mongodb-files
 %%MYSQL%%libexec/postfix/postfix-files.d/mysql-files
 %%PCRE2%%libexec/postfix/postfix-files.d/pcre-files
 %%PGSQL%%libexec/postfix/postfix-files.d/pgsql-files
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.