git: fef406ce4148 - main - sysutils/pftop: Fix non-root build

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Mon, 13 Nov 2023 23:40:55 UTC
The branch main has been updated by grembo:

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

commit fef406ce4148bba5bc754e8ef7c50ac29a059b83
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2023-11-13 23:39:22 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2023-11-13 23:39:22 +0000

    sysutils/pftop: Fix non-root build
    
    Brings back local do-install target, as it's simpler and
    doesn't require bumping the port revision.
---
 sysutils/pftop/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index c05b8533eaf0..5487cc91154a 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -34,4 +34,10 @@ MAKE_ENV+=	__MAKE_CONF=/dev/null
 PLIST_FILES=	man/man8/pftop.8.gz \
 		sbin/pftop
 
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/pftop \
+		${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/pftop.8 \
+		${STAGEDIR}${MANPREFIX}/man/man8
+
 .include <bsd.port.mk>