git: 93a833891640 - main - net/samba413: Work around 12.4 bug with orphaned temp files

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Sun, 01 Oct 2023 19:52:47 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=93a83389164030ca740440499ac8486d7fb78261

commit 93a83389164030ca740440499ac8486d7fb78261
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2023-10-01 16:16:22 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2023-10-01 19:46:38 +0000

    net/samba413: Work around 12.4 bug with orphaned temp files
    
    Because src commit 96e101bec9 never made it into 12.4, temporary files
    are littering the staging directory and causing plist errors.  Since
    12.4 will be EOL soon, just work around the issue.
    
    PR:             255626
    Approved by:    portmgr (rene)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D42030
---
 net/samba413/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/samba413/Makefile b/net/samba413/Makefile
index d45ca530f122..472f19ea389c 100644
--- a/net/samba413/Makefile
+++ b/net/samba413/Makefile
@@ -679,6 +679,9 @@ post-install: post-install-rm-junk post-install-fix-manpages
 				-${FIND} ${STAGEDIR}${PREFIX}/lib -name '*.so*' \
 					-type f -print0 | ${XARGS} -0 -n 1 -t ${STRIP_CMD}
 .endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 # Work around bug 255626. Remove after 12.4 is EOL.
+				${RM} ${STAGEDIR}${LOCALBASE}/bin/ecp.* ${STAGEDIR}${LOCALBASE}/sbin/ecp.*
+.endif
 
 post-install-FRUIT-off:
 				${RM} ${STAGEDIR}${SAMBA4_MODULEDIR}/vfs/fruit.so