git: 6a1ed9169bfc - main - mail/postfix-current: Fix build on 15.0 with SASLKRB5

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Wed, 17 Dec 2025 10:07:46 UTC
The branch main has been updated by otis:

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

commit 6a1ed9169bfc0f316d8dc1b8be4f455d5412d3a1
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2025-12-17 10:06:20 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2025-12-17 10:07:24 +0000

    mail/postfix-current: Fix build on 15.0 with SASLKRB5
    
    Kerberos in 15.0 does not provide the old libraries.
    
    PR:             291605
    Reported by:    Christian Hennig <zeha@ccsej.de>
---
 mail/postfix-current/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile
index 920e2e20c879..ab5bc4cfb779 100644
--- a/mail/postfix-current/Makefile
+++ b/mail/postfix-current/Makefile
@@ -247,8 +247,10 @@ POSTFIX_CCARGS+=	-DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"
 .endif
 
 .if ${PORT_OPTIONS:MSASLKRB5}
-POSTFIX_AUXLIBS+=	-lkrb5 -lhx509 -lcrypto -lcrypt -lcom_err -lasn1 \
-			-lroken
+POSTFIX_AUXLIBS+=      -lkrb5 -lcrypto -lcrypt -lcom_err
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500000
+POSTFIX_AUXLIBS+=      -lasn1 -lhx509 -lroken
+.endif
 .endif
 
 .if ${PORT_OPTIONS:MSASLKMIT}