git: 5a42024d4a23 - main - devel/lnphost: Move man pages to share/man

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 06 Mar 2024 10:49:07 UTC
The branch main has been updated by eduardo:

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

commit 5a42024d4a23e22803a71fc50dff79de5048cacc
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-03-06 10:47:36 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-03-06 10:48:40 +0000

    devel/lnphost: Move man pages to share/man
    
    Approved by:    portmgr (blanket)
---
 devel/lnphost/Makefile             | 3 ++-
 devel/lnphost/files/patch-Makefile | 8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/devel/lnphost/Makefile b/devel/lnphost/Makefile
index aa44db4830c6..5d09b2c35bae 100644
--- a/devel/lnphost/Makefile
+++ b/devel/lnphost/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lnphost
 PORTVERSION=	1.0a
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	SF
 
@@ -16,7 +17,7 @@ CFLAGS+=	-DHAVE_STRING_H
 PLIST_FILES=	bin/lnpdump \
 		lib/lnphost.a \
 		include/lnphost.h \
-		man/man1/lnpdump.1.gz
+		share/man/man1/lnpdump.1.gz
 
 MAKE_ARGS=	PREFIX=${STAGEDIR}${PREFIX}
 
diff --git a/devel/lnphost/files/patch-Makefile b/devel/lnphost/files/patch-Makefile
index 754e1d46dffd..fc627be98bb9 100644
--- a/devel/lnphost/files/patch-Makefile
+++ b/devel/lnphost/files/patch-Makefile
@@ -1,6 +1,6 @@
 --- Makefile.orig	2005-03-18 16:20:31 UTC
 +++ Makefile
-@@ -8,16 +8,20 @@ else
+@@ -8,16 +8,20 @@ PROGRAMS=$(patsubst %.c,%$(EXT),$(wildcard *.c))
  endif
  
  PROGRAMS=$(patsubst %.c,%$(EXT),$(wildcard *.c))
@@ -10,12 +10,12 @@
  
 -all: $(PROGRAMS)
 +BINDIR=${PREFIX}/bin
-+MANDIR=${PREFIX}/man/man1
++MANDIR=${PREFIX}/share/man/man1
 +LIBDIR=${PREFIX}/lib
 +INCDIR=${PREFIX}/include
-+
-+all: $(PROGRAMS) $(LIBS)
  
++all: $(PROGRAMS) $(LIBS)
++
  clean:
 -	make -C Docs clean
 -	rm -f *~ */*~