git: 5569738064d7 - main - security/nmap: Use EXTRACT_AFTER_ARGS

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Tue, 21 May 2024 19:56:10 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5569738064d7d6eabe931bf2975fe2ef2b284210

commit 5569738064d7d6eabe931bf2975fe2ef2b284210
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-21 19:11:58 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-21 19:56:02 +0000

    security/nmap: Use EXTRACT_AFTER_ARGS
    
    To decrease I/O load skip extracting files instead of removing after
    extraction
    
    PR:             278742
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 security/nmap/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/security/nmap/Makefile b/security/nmap/Makefile
index 820e26ffb6ca..c3b20bc1ae9d 100644
--- a/security/nmap/Makefile
+++ b/security/nmap/Makefile
@@ -21,6 +21,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 .if !defined(MASTERDIR)
 
 USES=		tar:bzip2 gmake cpe
+
+# XXX limit results if we do a grep in the sources!
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/mswin32 \
+			--no-same-owner --no-same-permissions
+
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 
@@ -54,10 +59,6 @@ CONFIGURE_ARGS+=--without-localdirs \
 
 .include <bsd.port.options.mk>
 
-# XXX limit results if we do a grep in the sources!
-post-extract:
-	@${RM} -r ${WRKSRC}/mswin32
-
 .if exists(/usr/lib/libibverbs.a)
 # Link with libibverbs is needed by static libpcap
 post-patch-PCAP-on: