From nobody Thu Mar 21 21:55:29 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V0zm21T3Xz5FcQW; Thu, 21 Mar 2024 21:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V0zm16NZBz4g55; Thu, 21 Mar 2024 21:55:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711058129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2gkLmlCK5Gm4N0yH7udxeFs5gSp/oO+VzkrYSKf/xus=; b=jCFWNz3k/db7QE0DfvaKf2qI8ErP8ZfNdBtcc7AdrAhLXUszQy/54SMTzk0kgeWRilSCDK eIZ9oyM+Wwb/LLuwhZjGkdWJ3rqlwoKcqGyoaJKwQACGcyopcqlWB1AnDu7r80LlW6j9ZJ yx2Z0IkDCFmVrLClteHcES1rMvWe8PQTXnZdSNar6+x9pDoD04QnYbD9JoMKluEQN2vmRb d9nzXrITobgPrkeYAyeGec5uLlUXTUxNbWU4XebpaLPj/TLpMwCNg9iKCwioHvLZ8K+G3s s93a8JQOWcsghDZ0ZloMNlVETh9Fb/GQ0WwX6G3X4xKEWAvt+DENuotxfQbzEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711058129; a=rsa-sha256; cv=none; b=rGBNINUqUPTm89S0BP/SbCGEkiaUGWLAJwWHT/XxD2u4Mx5fcVpqbt+WVFui1TzzBT0MX8 hnR5BS5WKwYqgo9eQg2xt1M/SQ6nhbwqdwKxkWwAWP50pcEWFH8k+W7fV1W9p593FHOFNG j+quDKrYidVY/L1mQqWfwPGH2Ohv4EolU0dcBDzRdBtEUhxZQr+Vl+XFqixk1dgMmBGRTQ QVRzPIw2W6jRbg+ZcXetip7qNDZ1L4hgUltLVk9Lf9jggjHQsCzNzl2/5+GgCWRe5Qnj0t qb9ws9IHZLgp7cigaizaCmRmF+FnfMgq1wKB5C5X0vp8ggb5pN22xDiNjs5TXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711058129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2gkLmlCK5Gm4N0yH7udxeFs5gSp/oO+VzkrYSKf/xus=; b=NaAfCVkAmCDBUWnj076nsfMSE/C7pvMG6OTTaMZZrHVohnpj549ntLxA39tUAyG/l5I4pJ 4NDM1UinST7LROAhR66jUtDGF5npzJRJPd/u0qniDrlifkkMozkM32+MAeahZHBeG0gUrf c1uWdoZFCWuIhTA9U5jE4pdPCvyl5n+CO/DlWVP5nyvS/9Ckyzx1qpnsZLR4SDY8fG3h3S q/Q+wZtNx8AksQJQtNQxV0AVXZSeOHqQTm++/AHv3NrxDtISL69hRDIN6a3gXYWLY7LIae ydPvaW0WCtDWu3rGvzjcZ93wZDSfsFVefDrk4LS3HXE3R+gpHu6qJC0oiHxuPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V0zm160fYzsg8; Thu, 21 Mar 2024 21:55:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42LLtTFB015246; Thu, 21 Mar 2024 21:55:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42LLtT7w015243; Thu, 21 Mar 2024 21:55:29 GMT (envelope-from git) Date: Thu, 21 Mar 2024 21:55:29 GMT Message-Id: <202403212155.42LLtT7w015243@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: 05e827788704 - main - mail/postfix: Update to 3.9.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 05e82778870450d8d46f4e8761dec18911f3d8cc Auto-Submitted: auto-generated The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=05e82778870450d8d46f4e8761dec18911f3d8cc commit 05e82778870450d8d46f4e8761dec18911f3d8cc Author: Juraj Lutter AuthorDate: 2024-03-21 21:01:50 +0000 Commit: Juraj Lutter CommitDate: 2024-03-21 21:46:47 +0000 mail/postfix: Update to 3.9.0 - Update to 3.9.0 - Add MongoDB maps support - regen patches. Release notes: https://postfix-mirror.horus-it.com/postfix-release/official/postfix-3.9.0.RELEASE_NOTES --- mail/postfix/Makefile | 39 +++++++++++++++----- mail/postfix/distinfo | 6 ++-- mail/postfix/files/extra-patch-blacklistd | 60 +++++++++++++++---------------- mail/postfix/pkg-plist | 1 + 4 files changed, 65 insertions(+), 41 deletions(-) diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 5d5105052b48..d43c786951dc 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -1,5 +1,5 @@ PORTNAME= postfix -DISTVERSION= 3.8.5 +DISTVERSION= 3.9.0 PORTREVISION?= 0 PORTEPOCH= 1 CATEGORIES= mail @@ -22,39 +22,52 @@ LICENSE_NAME_IPL10= IBM PUBLIC LICENSE VERSION 1.0 LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS_IPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -FLAVORS= default ldap mysql pgsql sasl sqlite +FLAVORS= default ldap mongo mysql pgsql sasl sqlite default_CONFLICTS_INSTALL= postfix-base-ldap postfix-base-sasl \ postfix-ldap postfix-sasl \ + postfix-mongo postfix-base-mongo \ postfix-mysql postfix-base-mysql \ postfix-pgsql postfix-base-pgsql \ postfix-sqlite postfix-base-sqlite ldap_PKGNAMESUFFIX= -ldap ldap_CONFLICTS_INSTALL= postfix postfix-base \ postfix-base-sasl postfix-sasl \ + postfix-mongo postfix-base-mongo \ postfix-mysql postfix-base-mysql \ postfix-pgsql postfix-base-pgsql \ postfix-sqlite postfix-base-sqlite +mongo_PKGNAMESUFFIX= -mongo +mongo_CONFLICTS_INSTALL= postfix postfix-base \ + postfix-ldap postfix-base-ldap \ + postfix-mysql postfix-base-mysql \ + postfix-pgsql postfix-base-pgsql \ + postfix-sasl postfix-base-sasl \ + postfix-sqlite postfix-base-sqlite mysql_PKGNAMESUFFIX= -mysql mysql_CONFLICTS_INSTALL= postfix postfix-base \ postfix-ldap postfix-base-ldap \ + postfix-mongo postfix-base-mongo \ postfix-pgsql postfix-base-pgsql \ postfix-sasl postfix-base-sasl \ postfix-sqlite postfix-base-sqlite pgsql_PKGNAMESUFFIX= -pgsql pgsql_CONFLICTS_INSTALL= postfix postfix-base \ postfix-ldap postfix-base-ldap \ + postfix-mongo postfix-base-mongo \ postfix-mysql postfix-base-mysql \ postfix-sasl postfix-base-sasl \ postfix-sqlite postfix-base-sqlite sasl_PKGNAMESUFFIX= -sasl sasl_CONFLICTS_INSTALL= postfix postfix-base \ postfix-base-ldap postfix-ldap \ + postfix-mongo postfix-base-mongo \ postfix-mysql postfix-base-mysql \ postfix-pgsql postfix-base-pgsql \ postfix-sqlite postfix-base-sqlite sqlite_PKGNAMESUFFIX= -sqlite sqlite_CONFLICTS_INSTALL= postfix postfix-base \ postfix-ldap postfix-base-ldap \ + postfix-mongo postfix-base-mongo \ postfix-mysql postfix-base-mysql \ postfix-pgsql postfix-base-pgsql \ postfix-sasl postfix-base-sasl @@ -73,16 +86,17 @@ SHEBANG_FILES= auxiliary/qshape/qshape.pl SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}" -CONFLICTS_INSTALL= courier-0.* opensmtpd opensmtpd-devel \ - postfix-current sendmail sendmail-devel +PORTSCOUT= limit:^3\.9\. -PORTSCOUT= limit:^3\.7\. +CONFLICTS_INSTALL= courier-0.* opensmtpd opensmtpd-devel \ + postfix postfix-base postfix-ldap-sasl \ + postfix-sasl sendmail sendmail-devel USERS= postfix GROUPS= mail maildrop postfix -OPTIONS_DEFINE= BDB BLACKLISTD CDB DOCS EAI INST_BASE LDAP LMDB MYSQL \ - NIS PCRE2 PGSQL SASL SQLITE TEST TLS +OPTIONS_DEFINE= BDB BLACKLISTD CDB DOCS EAI INST_BASE LDAP LMDB MONGO \ + MYSQL NIS PCRE2 PGSQL SASL SQLITE TEST TLS OPTIONS_DEFAULT?= BLACKLISTD EAI PCRE2 TLS OPTIONS_RADIO= RG1 OPTIONS_RADIO_RG1= SASLKMIT SASLKRB5 @@ -106,7 +120,7 @@ BLACKLISTD_DESC= Enable blacklistd support CDB_DESC= CDB maps lookups EAI_DESC= Email Address Internationalization (SMTPUTF8) support INST_BASE_DESC= Install into /usr and /etc/postfix -LDAP_DESC= LDAP maps +LDAP_DESC= LDAP maps (uses WITH_OPENLDAP_VER) LMDB_DESC= LMDB maps PCRE2_DESC= Use Perl Compatible Regular Expressions, version 2 RG1_DESC= Kerberos network authentication protocol type @@ -121,6 +135,8 @@ CDB_LIB_DEPENDS= libcdb.so:databases/tinycdb EAI_LIB_DEPENDS= libicuuc.so:devel/icu LDAP_USES= ldap LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb +MONGO_LIB_DEPENDS= libbson-1.0.so:devel/libbson \ + libmongoc-1.0.so:devel/mongo-c-driver MYSQL_USES?= mysql PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2 PGSQL_USES= pgsql @@ -275,6 +291,13 @@ IGNORE= blacklistd is only supported on FreeBSD . endif .endif +.if ${PORT_OPTIONS:MMONGO} +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" +.endif + .if ${PORT_OPTIONS:MMYSQL} DYN_EXT+= mysql POSTFIX_CCARGS+= -DHAS_MYSQL -I${LOCALBASE}/include/mysql diff --git a/mail/postfix/distinfo b/mail/postfix/distinfo index fe806b59e658..26dd38cfdb14 100644 --- a/mail/postfix/distinfo +++ b/mail/postfix/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1705933103 -SHA256 (postfix/postfix-3.8.5.tar.gz) = f3e827a2b2e410359ad25d31341970434ab07e36139f9a2ef93981b0ec564c85 -SIZE (postfix/postfix-3.8.5.tar.gz) = 4871284 +TIMESTAMP = 1711054433 +SHA256 (postfix/postfix-3.9.0.tar.gz) = 56f5e420e7c25455a4e96c19b672f80f9a0a35fb5becc9247c9e3d5dcc617f34 +SIZE (postfix/postfix-3.9.0.tar.gz) = 4953133 diff --git a/mail/postfix/files/extra-patch-blacklistd b/mail/postfix/files/extra-patch-blacklistd index 2b2bc712e667..699d7b890578 100644 --- a/mail/postfix/files/extra-patch-blacklistd +++ b/mail/postfix/files/extra-patch-blacklistd @@ -1,8 +1,6 @@ -# PR 225664: support blacklistd on FreeBSD >= 11.0 -# ---- src/smtpd/Makefile.in.orig 2021-04-18 20:45:05 UTC +--- src/smtpd/Makefile.in.orig 2024-02-29 20:13:17 UTC +++ src/smtpd/Makefile.in -@@ -2,14 +2,14 @@ SHELL = /bin/sh +@@ -2,14 +2,14 @@ SRCS = smtpd.c smtpd_token.c smtpd_check.c smtpd_chat. SRCS = smtpd.c smtpd_token.c smtpd_check.c smtpd_chat.c smtpd_state.c \ smtpd_peer.c smtpd_sasl_proto.c smtpd_sasl_glue.c smtpd_proxy.c \ smtpd_xforward.c smtpd_dsn_fix.c smtpd_milter.c smtpd_resolve.c \ @@ -20,32 +18,7 @@ TESTSRC = smtpd_token_test.c DEFS = -I. -I$(INC_DIR) -D$(SYSTYPE) CFLAGS = $(DEBUG) $(OPT) $(DEFS) ---- src/smtpd/smtpd_sasl_glue.c.orig 2020-08-30 21:03:46 UTC -+++ src/smtpd/smtpd_sasl_glue.c -@@ -149,6 +149,7 @@ - #include "smtpd.h" - #include "smtpd_sasl_glue.h" - #include "smtpd_chat.h" -+#include "pfilter.h" /* for blacklistd(8) */ - - #ifdef USE_SASL_AUTH - -@@ -350,6 +351,10 @@ int smtpd_sasl_authenticate(SMTPD_STATE *state, - else - smtpd_chat_reply(state, "535 5.7.8 Error: authentication failed: %s", - STR(state->sasl_reply)); -+ -+ -+ /* notify blacklistd of SASL authentication failure */ -+ pfilter_notify(1, vstream_fileno(state->client)); - return (-1); - } - /* RFC 4954 Section 6. */ ---- src/smtpd/pfilter.h.orig 2021-05-06 19:00:00 UTC -+++ src/smtpd/pfilter.h -@@ -0,0 +1 @@ -+void pfilter_notify(int, int); ---- src/smtpd/pfilter.c.orig 2021-05-06 19:00:00 UTC +--- src/smtpd/pfilter.c.orig 2024-03-21 21:45:18 UTC +++ src/smtpd/pfilter.c @@ -0,0 +1,19 @@ +#include "pfilter.h" @@ -67,3 +40,30 @@ + blstate = NULL; + } +} +--- src/smtpd/pfilter.h.orig 2024-03-21 21:45:18 UTC ++++ src/smtpd/pfilter.h +@@ -0,0 +1 @@ ++void pfilter_notify(int, int); +--- src/smtpd/smtpd_sasl_glue.c.orig 2023-11-12 21:41:13 UTC ++++ src/smtpd/smtpd_sasl_glue.c +@@ -153,6 +153,7 @@ + #include "smtpd.h" + #include "smtpd_sasl_glue.h" + #include "smtpd_chat.h" ++#include "pfilter.h" /* for blacklistd(8) */ + + #ifdef USE_SASL_AUTH + +@@ -358,8 +359,12 @@ int smtpd_sasl_authenticate(SMTPD_STATE *state, + else + smtpd_chat_reply(state, "535 5.7.8 Error: authentication failed: %s", + reason); ++ ++ /* notify blacklistd of SASL authentication failure */ ++ pfilter_notify(1, vstream_fileno(state->client)); + return (-1); + } ++ + /* RFC 4954 Section 6. */ + smtpd_chat_reply(state, "235 2.7.0 Authentication successful"); + if ((sasl_username = xsasl_server_get_username(state->sasl_server)) == 0) diff --git a/mail/postfix/pkg-plist b/mail/postfix/pkg-plist index 0bc26f8b07fb..09838ec67fbf 100644 --- a/mail/postfix/pkg-plist +++ b/mail/postfix/pkg-plist @@ -119,6 +119,7 @@ share/man/man5/ldap_table.5.gz share/man/man5/lmdb_table.5.gz share/man/man5/master.5.gz share/man/man5/memcache_table.5.gz +%%MONGO%%share/man/man5/mongodb_table.5.gz share/man/man5/mysql_table.5.gz share/man/man5/nisplus_table.5.gz share/man/man5/pcre_table.5.gz