git: 9cdbb352f6eb - main - net/ntopng: Move man pages to share/man.

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Fri, 01 Mar 2024 23:40:22 UTC
The branch main has been updated by madpilot:

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

commit 9cdbb352f6eb37f60b48cbada8984c39eebc42ec
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-03-01 23:40:01 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2024-03-01 23:40:01 +0000

    net/ntopng: Move man pages to share/man.
---
 net/ntopng/Makefile                    |  1 +
 net/ntopng/files/patch-configure.ac.in | 11 ++++++++++-
 net/ntopng/pkg-plist                   |  2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/net/ntopng/Makefile b/net/ntopng/Makefile
index 208855654859..d75deed86053 100644
--- a/net/ntopng/Makefile
+++ b/net/ntopng/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ntopng
 PORTVERSION=	6.0.d20240102
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net
 
diff --git a/net/ntopng/files/patch-configure.ac.in b/net/ntopng/files/patch-configure.ac.in
index ccb3bc112353..f0b7cc680a7e 100644
--- a/net/ntopng/files/patch-configure.ac.in
+++ b/net/ntopng/files/patch-configure.ac.in
@@ -1,4 +1,4 @@
---- configure.ac.in.orig	2023-11-03 09:27:20 UTC
+--- configure.ac.in.orig	2024-01-02 16:25:47 UTC
 +++ configure.ac.in
 @@ -142,40 +142,8 @@ LIBPCAP=-lpcap
  MAKE=make
@@ -213,3 +213,12 @@
  fi
  
  AC_CHECK_LIB([expat], [XML_ParserCreate], expat=true)
+@@ -818,7 +733,7 @@ fi
+   INSTALL_DIR=${ac_default_prefix}
+ fi
+ 
+-if test $SYSTEM = "Darwin"; then
++if test $SYSTEM = "Darwin" -o $SYSTEM = "FreeBSD"; then
+   MAN_DIR=$INSTALL_DIR/share/man
+ else
+   MAN_DIR=$INSTALL_DIR/man
diff --git a/net/ntopng/pkg-plist b/net/ntopng/pkg-plist
index daf4c255c643..2a0ace77ea95 100644
--- a/net/ntopng/pkg-plist
+++ b/net/ntopng/pkg-plist
@@ -1,6 +1,6 @@
 bin/ntopng
 bin/ntopng-geoip2update.sh
-man/man8/ntopng.8.gz
+share/man/man8/ntopng.8.gz
 %%DATADIR%%/httpdocs/css/README.md
 %%DATADIR%%/httpdocs/css/select2.min.css
 %%DATADIR%%/httpdocs/dist/0a1b701f5563c2288281.ttf