git: 656cff21a750 - main - sysutils/pftop: Move man pages to share/man

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 05 Mar 2024 23:39:55 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=656cff21a7503ebfba1c62e94b1650e54c616db9

commit 656cff21a7503ebfba1c62e94b1650e54c616db9
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-03-05 22:37:52 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-03-05 23:35:48 +0000

    sysutils/pftop: Move man pages to share/man
    
    Approved by:    portmgr (blanket)
---
 sysutils/pftop/Makefile             |  5 +++--
 sysutils/pftop/files/patch-Makefile | 11 +++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index dcfc75b187af..db045837aed4 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pftop
 PORTVERSION=	0.10
+PORTREVISION=	1
 CATEGORIES=	sysutils net
 
 MAINTAINER=	grembo@FreeBSD.org
@@ -31,7 +32,7 @@ CFLAGS+=	-DHAVE_ALTQ=1
 MAKE_ARGS+=	CSTD=gnu89
 MAKE_ENV+=	__MAKE_CONF=/dev/null
 
-PLIST_FILES=	man/man8/pftop.8.gz \
-		sbin/pftop
+PLIST_FILES=	sbin/pftop \
+		share/man/man8/pftop.8.gz
 
 .include <bsd.port.mk>
diff --git a/sysutils/pftop/files/patch-Makefile b/sysutils/pftop/files/patch-Makefile
new file mode 100644
index 000000000000..33dccc89d8fe
--- /dev/null
+++ b/sysutils/pftop/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2023-11-13 12:00:08 UTC
++++ Makefile
+@@ -13,7 +13,7 @@ MAN=	pftop.8
+ CFLAGS+= -Wall -Wno-unneeded-internal-declaration -DOS_LEVEL=${OSLEVEL}
+ LDADD+= -L${LOCALBASE}/lib -lcurses -lpfctl
+ 
+-MANDIR=${LOCALBASE}/man/man
++MANDIR=${LOCALBASE}/share/man/man
+ BINDIR=${LOCALBASE}/sbin
+ 
+ .y.c: