git: 8e4a70bc104c - main - sysutils/am-utils: Disable Secure RPC DES in 15-CURRENT

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 11 Aug 2025 20:23:39 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e4a70bc104c6bd44f62516d5f504c5850ef5f7f

commit 8e4a70bc104c6bd44f62516d5f504c5850ef5f7f
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-08-11 20:08:42 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-08-11 20:09:53 +0000

    sysutils/am-utils: Disable Secure RPC DES in 15-CURRENT
    
    15-CURRENT removed Secure RPC DES in src 7ac276298b72. Disable it.
---
 sysutils/am-utils/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sysutils/am-utils/Makefile b/sysutils/am-utils/Makefile
index a05f153e473f..e89b1fdafbd5 100644
--- a/sysutils/am-utils/Makefile
+++ b/sysutils/am-utils/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	am-utils
 PORTVERSION=	6.2
-PORTREVISION=	13
+PORTREVISION=	14
 PORTEPOCH=	1
 CATEGORIES=	sysutils net
 MASTER_SITES=	https://download.filesystems.org/am-utils/ \
@@ -44,11 +44,19 @@ OPTIONS_SUB=	yes
 USE_RC_SUBR=	amd
 .endif
 
+.include <bsd.port.pre.mk>
+
 post-patch:
 	@${RM} ${WRKSRC}/doc/am-utils.info*
 
+
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500059)
+post-configure:
+	@${ECHO_CMD} '#undef HAVE_RPC_AUTH_DES_H' >> ${WRKSRC}/config.h
+.endif
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>