aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuraj Lutter <otis@FreeBSD.org>2026-08-14 18:22:53 +0000
committerJuraj Lutter <otis@FreeBSD.org>2026-08-14 18:25:37 +0000
commit43f616e0729cae0b0bc136b85d6f220d8b42eb78 (patch)
tree2a9924a169e270899fb0b2b870ee3faa28437f04
parent493e333346e9a17a5acb76d1893e514b55f5751d (diff)
mail/postfix-current: Update to 3.12-20260812
And while here, also streamline the Makefile with mail/postfix (cherry picked from commit 732dc831f3d405cbbe6c9d551d942de08243fe44)
-rw-r--r--mail/postfix-current/Makefile38
-rw-r--r--mail/postfix-current/distinfo6
2 files changed, 32 insertions, 12 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index 442b95fb1708..b8104a969cf7 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -1,5 +1,5 @@
PORTNAME= postfix
-DISTVERSION= 3.12-20260706
+DISTVERSION= 3.12-20260812
PORTREVISION?= 0
PORTEPOCH= 6
CATEGORIES= mail
@@ -74,7 +74,10 @@ sqlite_CONFLICTS_INSTALL= postfix-current postfix-current-base \
postfix-current-sasl postfix-current-base-sasl
COMMENT_ldap= (with OpenLDAP support)
+COMMENT_mysql= (with MySQL support)
+COMMENT_pgsql= (with PostgreSQL support)
COMMENT_sasl= (with Cyrus SASL support)
+COMMENT_sqlite= (with SQLite support)
USES= cpe shebangfix ssl
USE_RC_SUBR= postfix
@@ -84,10 +87,11 @@ SHEBANG_FILES= auxiliary/qshape/qshape.pl
SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"
+PORTSCOUT= limit:^3\.12\.
+
CONFLICTS_INSTALL= courier-0.* opensmtpd opensmtpd-devel \
postfix postfix-base postfix-ldap-sasl \
- postfix-sasl postfix35 sendmail \
- sendmail-devel
+ postfix-sasl sendmail sendmail-devel
USERS= postfix
GROUPS= mail maildrop postfix
@@ -99,8 +103,16 @@ OPTIONS_RADIO= RG1
OPTIONS_RADIO_RG1= SASLKMIT SASLKRB5
.if ${FLAVOR:U} == ldap
OPTIONS_SLAVE= LDAP
+.elif ${FLAVOR:U} == mysql
+OPTIONS_SLAVE= MYSQL
+.elif ${FLAVOR:U} == pgsql
+OPTIONS_SLAVE= PGSQL
.elif ${FLAVOR:U} == sasl
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
@@ -136,7 +148,7 @@ SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SQLITE_USES= sqlite
TLSRPT_LIB_DEPENDS= libtlsrpt.so:mail/libtlsrpt
-ALL_TARGET= default
+ALL_TARGET= default
.include <bsd.port.options.mk>
@@ -169,8 +181,16 @@ BROKEN= error: OpenSSL-1.1.1 is the minimum supported version. LibreSSL is not
.if ${PORT_OPTIONS:MINST_BASE}
.if ${FLAVOR:U} == ldap
PKGNAMESUFFIX= -current-base-ldap
+.elif ${FLAVOR:U} == mysql
+PKGNAMESUFFIX= -current-base-mysql
+.elif ${FLAVOR:U} == pgsql
+PKGNAMESUFFIX= -current-base-pgsql
.elif ${FLAVOR:U} == sasl
PKGNAMESUFFIX= -current-base-sasl
+.elif ${FLAVOR:U} == sqlite
+PKGNAMESUFFIX= -current-base-sqlite
+.elif ${FLAVOR:U} == mongo
+PKGNAMESUFFIX= -current-base-mongo
.else
PKGNAMESUFFIX= -current-base
.endif
@@ -196,7 +216,7 @@ READMEDIR= ${DOCSDIR}
READMEDIR= no
.endif
-# dynamic direcory location
+# dynamic directory location
DAEMONDIR= ${PREFIX}/libexec/postfix
SHLIB_DIRECTORY= ${PREFIX}/lib/postfix
# new proposed location is ETCDIR (see README_FILES/INSTALL)
@@ -296,10 +316,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}
@@ -366,7 +386,7 @@ REINPLACE= s!^PATH=.*!PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PREFIX}/bin:${PREFIX}
\!^\#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!^(sample_directory =)!\1 ${ETCDIR}!g;\
s!($$config_directory/(access|aliases|canonical|generic|header_checks|relocated|transport|virtual):f:root:-:644:)p1!\1o!;
post-patch:
diff --git a/mail/postfix-current/distinfo b/mail/postfix-current/distinfo
index 7728018cd331..5ad8b1ebb807 100644
--- a/mail/postfix-current/distinfo
+++ b/mail/postfix-current/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1783407669
-SHA256 (postfix/postfix-3.12-20260706.tar.gz) = 57c4e6d87ad68e0066e8cb46a0d0d8947ba7acf3747b02a13c834a304278b94d
-SIZE (postfix/postfix-3.12-20260706.tar.gz) = 5407246
+TIMESTAMP = 1786729879
+SHA256 (postfix/postfix-3.12-20260812.tar.gz) = 6bc8212233aef9806f334749056d489df4c8c334850d795142a3a54b767499eb
+SIZE (postfix/postfix-3.12-20260812.tar.gz) = 5422364