git: 26a430ac9995 - main - sysutils/hw-probe: the port had been updated to version 1.6.1

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Mon, 24 Jan 2022 08:15:48 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26a430ac999518b63d97307230b7282c05630cc8

commit 26a430ac999518b63d97307230b7282c05630cc8
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-01-24 08:14:14 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-01-24 08:14:14 +0000

    sysutils/hw-probe: the port had been updated to version 1.6.1
    
    Modify upstream source code a bit: 1) FreeBSD is definitely a known
    BSD, so add it to the corresponding list; 2) limit GhostBSD-specific
    "pkg rquery '%v' ports" command to GhostBSD: it tries to access the
    network which slows down the probing process, sometimes considerably
    (e.g. when network is not available or blocked); 3) search processes
    correctly with pgrep(1), as filtering ``ps x'' output would capture
    the grep(1) arguments themselves.
    
    Reported by:    portscout
---
 sysutils/hw-probe/Makefile | 8 ++++++--
 sysutils/hw-probe/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/sysutils/hw-probe/Makefile b/sysutils/hw-probe/Makefile
index 36573377c225..cc2231aaaa3c 100644
--- a/sysutils/hw-probe/Makefile
+++ b/sysutils/hw-probe/Makefile
@@ -1,7 +1,7 @@
 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
 
 PORTNAME=	hw-probe
-DISTVERSION=	1.6-beta2
+PORTVERSION=	1.6.1
 CATEGORIES=	sysutils perl5
 
 MAINTAINER=	danfe@FreeBSD.org
@@ -16,7 +16,6 @@ RUN_DEPENDS=	curl:ftp/curl \
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	linuxhw
-GH_TAGNAME=	d1de28b
 
 USES=		perl5
 USE_PERL5=	run
@@ -35,6 +34,11 @@ RUN_DEPENDS+=	dmidecode:sysutils/dmidecode \
 		lscpu:sysutils/lscpu
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e '/my @KNOWN_BSD/s/free/&bsd", "&/ ; \
+		s/if(checkCmd("pkg")/& and $$Name eq "ghostbsd"/ ; \
+		s/ps x | grep/pgrep -l/' ${WRKSRC}/${PORTNAME}.pl
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
diff --git a/sysutils/hw-probe/distinfo b/sysutils/hw-probe/distinfo
index e3b749bb478b..659492ca5919 100644
--- a/sysutils/hw-probe/distinfo
+++ b/sysutils/hw-probe/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1590737484
-SHA256 (linuxhw-hw-probe-1.6-beta2-d1de28b_GH0.tar.gz) = 3a313ecf60f117a7bc453dc712c8a0d0c1bcefd7ee1dee50966397a1a80ebb2f
-SIZE (linuxhw-hw-probe-1.6-beta2-d1de28b_GH0.tar.gz) = 143598
+TIMESTAMP = 1638169260
+SHA256 (linuxhw-hw-probe-1.6.1_GH0.tar.gz) = 6fe0ffb3bad9875219df60baa1d0722d0bd27f1e957d547e2f5d58a0f33382dd
+SIZE (linuxhw-hw-probe-1.6.1_GH0.tar.gz) = 161991