git: 3e0f5dee8314 - main - net/nethogs: Moved man to share/man
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Feb 2024 10:05:38 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3e0f5dee83140f9d77548edaa694c79f5d29e24b
commit 3e0f5dee83140f9d77548edaa694c79f5d29e24b
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-25 09:24:54 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-25 10:05:16 +0000
net/nethogs: Moved man to share/man
Approved by: portmgr (blanket)
---
net/nethogs/Makefile | 4 ++--
net/nethogs/files/patch-doc_Makefile | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/net/nethogs/Makefile b/net/nethogs/Makefile
index a6ee081633a8..ce19e22a075a 100644
--- a/net/nethogs/Makefile
+++ b/net/nethogs/Makefile
@@ -1,7 +1,7 @@
PORTNAME= nethogs
PORTVERSION= 0.8.5
DISTVERSIONPREFIX= v
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net
MAINTAINER= anastasios@mageirias.com
@@ -21,7 +21,7 @@ USES= compiler:c++11-lang gmake shebangfix
SHEBANG_FILES= determineVersion.sh
bash_CMD= /bin/sh
-PLIST_FILES= man/man8/nethogs.8.gz \
+PLIST_FILES= share/man/man8/nethogs.8.gz \
sbin/nethogs
post-install:
diff --git a/net/nethogs/files/patch-doc_Makefile b/net/nethogs/files/patch-doc_Makefile
new file mode 100644
index 000000000000..f4dd7125e9dc
--- /dev/null
+++ b/net/nethogs/files/patch-doc_Makefile
@@ -0,0 +1,24 @@
+--- doc/Makefile.orig 2024-02-25 09:26:05 UTC
++++ doc/Makefile
+@@ -1,15 +1,7 @@ UNAME_S := $(shell uname -s)
+ all:
+
+ UNAME_S := $(shell uname -s)
+-ifeq ($(UNAME_S),FreeBSD)
+- ifeq ($(PREFIX),/usr/local)
+- man8 := $(PREFIX)/man/man8
+- else
+- man8 := $(PREFIX)/share/man/man8
+- endif
+-else
+- man8 := $(PREFIX)/share/man/man8
+-endif
++man8 := $(PREFIX)/share/man/man8
+
+ install: nethogs.8
+ install -d -m 755 $(DESTDIR)$(man8)
+@@ -17,4 +9,3 @@ uninstall:
+
+ uninstall:
+ rm $(DESTDIR)$(man8)/nethogs.8 || true
+-