From 93a83389164030ca740440499ac8486d7fb78261 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Sun, 1 Oct 2023 13:16:22 -0300 Subject: [PATCH] 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 d45ca530f1221..472f19ea389c4 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