git: 9c9aa25002bb - main - net/whois: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 11:32:58 UTC
The branch main has been updated by bofh:

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

commit 9c9aa25002bbacf51f7e617507e3ffd77cdf7b3f
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-25 10:48:03 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-25 11:32:29 +0000

    net/whois: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 net/whois/Makefile             |  1 +
 net/whois/files/patch-Makefile | 24 ++++++++++--------------
 net/whois/pkg-plist            |  6 +++---
 3 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/net/whois/Makefile b/net/whois/Makefile
index cbe3a4537994..5aa1b817a9dc 100644
--- a/net/whois/Makefile
+++ b/net/whois/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	whois
 DISTVERSIONPREFIX=	v
 DISTVERSION=	5.5.7
+PORTREVISION=	1
 CATEGORIES=	net
 
 MAINTAINER=	coco@executive-computing.de
diff --git a/net/whois/files/patch-Makefile b/net/whois/files/patch-Makefile
index 8ad003137a2c..4dbdfc539c98 100644
--- a/net/whois/files/patch-Makefile
+++ b/net/whois/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig	2019-12-31 02:05:47 UTC
+--- Makefile.orig	2020-10-03 15:43:15 UTC
 +++ Makefile
-@@ -1,5 +1,9 @@
+@@ -1,5 +1,9 @@ prefix = /usr
  prefix = /usr
  
 +ifdef PREFIX
@@ -10,7 +10,7 @@
  ifdef DESTDIR
  BASEDIR := $(DESTDIR)
  endif
-@@ -72,13 +76,13 @@ endif
+@@ -72,13 +76,13 @@ CPPFLAGS += $(DEFS) $(INCLUDES)
  CPPFLAGS += $(DEFS) $(INCLUDES)
  
  ##############################################################################
@@ -26,7 +26,7 @@
  	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(whois_LDADD) $(LIBS)
  
  mkpasswd: $(mkpasswd_OBJECTS)
-@@ -115,37 +119,37 @@ servers_charset.h: servers_charset_list make_servers_c
+@@ -115,21 +119,21 @@ afl:
  ##############################################################################
  afl:
  	-rm -f Makefile.depend
@@ -43,24 +43,20 @@
 -install-whois: whois
 +install-whois: %%MWHOIS%%
  	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
--	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
--	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man5/
+ 	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
+ 	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man5/
 -	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/
 -	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/
 -	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/share/man/man5/
-+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
-+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man5/
 +	$(INSTALL) -m 0755 %%MWHOIS%% $(BASEDIR)$(prefix)/bin/
-+	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/man/man1/%%MWHOIS%%.1
-+	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/man/man5/%%MWHOIS%%.conf.5
++	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/%%MWHOIS%%.1
++	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/share/man/man5/%%MWHOIS%%.conf.5
  
  install-mkpasswd: mkpasswd
  	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
--	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
-+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
+@@ -137,15 +141,15 @@ install-mkpasswd: mkpasswd
  	$(INSTALL) -m 0755 mkpasswd $(BASEDIR)$(prefix)/bin/
--	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/
-+	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/man/man1/
+ 	$(INSTALL) -m 0644 mkpasswd.1 $(BASEDIR)$(prefix)/share/man/man1/
  
 -install-pos:
 +install-pos: pos
diff --git a/net/whois/pkg-plist b/net/whois/pkg-plist
index 4ea2fef051a6..5eb5c18f6d74 100644
--- a/net/whois/pkg-plist
+++ b/net/whois/pkg-plist
@@ -1,8 +1,8 @@
 bin/mkpasswd
 bin/mwhois
-man/man1/mkpasswd.1.gz
-man/man1/mwhois.1.gz
-man/man5/mwhois.conf.5.gz
+share/man/man1/mkpasswd.1.gz
+share/man/man1/mwhois.1.gz
+share/man/man5/mwhois.conf.5.gz
 %%NLS%%share/locale/cs/LC_MESSAGES/mwhois.mo
 %%NLS%%share/locale/da/LC_MESSAGES/mwhois.mo
 %%NLS%%share/locale/de/LC_MESSAGES/mwhois.mo