git: 2ce476eea4a3 - main - mail/exim: re-add support for Alternative SRS

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Thu, 09 Nov 2023 07:05:16 UTC
The branch main has been updated by pi:

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

commit 2ce476eea4a37b1735316edc26a5d8df2bb3e48e
Author:     Chris Collins <chrysalis@chrysalisnet.org>
AuthorDate: 2023-11-09 07:03:17 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2023-11-09 07:03:17 +0000

    mail/exim: re-add support for Alternative SRS
    
    PR:             266465
    Approved by:    fluffy (maintainer, implicit)
    Author:         Chris Collins <chrysalis@chrysalisnet.org>
---
 mail/exim/Makefile | 4 ++++
 mail/exim/options  | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 6f6cdcdcb702..b0a55786060b 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -497,6 +497,10 @@ SEDLIST+=	-e 's,XX_SPF_FLAGS_XX,,' \
 .if ${PORT_OPTIONS:MSRS}
 SEDLIST+=	-e 's,XX_SRS_FLAGS_XX,-DSUPPORT_SRS,' \
 		-e 's,XX_SRS_LIBS_XX,,'
+.elif ${PORT_OPTIONS:MOLD_SRS}
+LIB_DEPENDS+=	libsrs_alt.so:mail/libsrs_alt
+SEDLIST+=	-e 's,XX_SRS_FLAGS_XX,-DEXPERIMENTAL_SRS_ALT,' \
+		-e 's,XX_SRS_LIBS_XX,-L${LOCALBASE}/lib -lsrs_alt,'
 .else
 SEDLIST+=	-e 's,XX_SRS_FLAGS_XX,,' \
 		-e 's,XX_SRS_LIBS_XX,,'
diff --git a/mail/exim/options b/mail/exim/options
index d8da470bef74..2b47a03e9135 100644
--- a/mail/exim/options
+++ b/mail/exim/options
@@ -58,8 +58,9 @@ OPTIONS_RADIO_TLS=	TLS GNUTLS
 TLS_DESC=	TLS support
 OPTIONS_RADIO_LS=	SA_EXIM
 LS_DESC=	Local scan patch
-OPTIONS_RADIO_SRSR=	SRS
+OPTIONS_RADIO_SRSR=	SRS OLD_SRS
 SRSR_DESC=	Sender Rewriting Scheme
+OLD_SRS_DESC=	Enable Alternative Sender Rewriting Scheme
 OPTIONS_RADIO=	TLS LS SRSR
 
 OPTIONS_GROUP_AUTH=	AUTH_CRAM_MD5 AUTH_DOVECOT AUTH_PLAINTEXT AUTH_RADIUS AUTH_SASL AUTH_SPA AUTH_TLS SASLAUTHD PAM PASSWD