git: 47bc21b4c75c - main - net-mgmt/nstat: Fix build

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 02 Jan 2023 12:29:38 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=47bc21b4c75cbbbb93b13404c737c742cbcc599b

commit 47bc21b4c75cbbbb93b13404c737c742cbcc599b
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-01-02 12:26:40 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-01-02 12:28:39 +0000

    net-mgmt/nstat: Fix build
    
    Packport upstream commit 887938e948bb3f835c3554b482ad315df6cbbc0c to
    follow change in intel-pcm (run-time dependency). While at it adjust
    run-time dependency in Makefile.
    
    Reported by:    pkg-fallout
    Approved by:    portmgr (blanket)
---
 net-mgmt/nstat/Makefile | 7 +++++--
 net-mgmt/nstat/distinfo | 4 +++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/net-mgmt/nstat/Makefile b/net-mgmt/nstat/Makefile
index 9461efcd6ab0..876b4bc22a00 100644
--- a/net-mgmt/nstat/Makefile
+++ b/net-mgmt/nstat/Makefile
@@ -3,6 +3,9 @@ PORTVERSION=	1.0
 PORTREVISION=	4
 CATEGORIES=	net-mgmt
 
+PATCH_SITES=	https://github.com/gallatin/${PORTNAME}/commit/
+PATCHFILES=	887938e948bb3f835c3554b482ad315df6cbbc0c.patch:-p1
+
 MAINTAINER=	swills@FreeBSD.org
 COMMENT=	Replacement for bw/netstat/vmstat/pcm-memory.x
 WWW=		https://github.com/gallatin/nstat
@@ -11,8 +14,8 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${RUN_DEPENDS_${ARCH}}
-RUN_DEPENDS_i386=	pcm.x:sysutils/intel-pcm
-RUN_DEPENDS_amd64=	pcm.x:sysutils/intel-pcm
+RUN_DEPENDS_i386=	pcm-memory:sysutils/intel-pcm
+RUN_DEPENDS_amd64=	pcm-memory:sysutils/intel-pcm
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	gallatin
diff --git a/net-mgmt/nstat/distinfo b/net-mgmt/nstat/distinfo
index 635af93ae35b..e556657116d1 100644
--- a/net-mgmt/nstat/distinfo
+++ b/net-mgmt/nstat/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1615940729
+TIMESTAMP = 1672661994
 SHA256 (gallatin-nstat-1.0-89b3844_GH0.tar.gz) = 6a7f6ba599f4765bc1d2da808fa1a86eb1041ef7c1105f6fff8c3e00953af89c
 SIZE (gallatin-nstat-1.0-89b3844_GH0.tar.gz) = 5195
+SHA256 (887938e948bb3f835c3554b482ad315df6cbbc0c.patch) = 17a47b4a73b7a30b04d0c0beb571b7217339a5db40479d2521949ae271df99f6
+SIZE (887938e948bb3f835c3554b482ad315df6cbbc0c.patch) = 1197