git: bee748d78d65 - main - databases/libsdb: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 23 Feb 2024 03:32:34 UTC
The branch main has been updated by bofh:

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

commit bee748d78d6578b9d7e189a3c6b76b639829eff6
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-22 18:29:07 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-23 03:31:33 +0000

    databases/libsdb: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 databases/libsdb/Makefile              |  3 ++-
 databases/libsdb/files/patch-config.in |  4 ++--
 databases/libsdb/pkg-plist             | 12 ++++++------
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/databases/libsdb/Makefile b/databases/libsdb/Makefile
index 5b5433db46c0..ae2608e8eb1f 100644
--- a/databases/libsdb/Makefile
+++ b/databases/libsdb/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libsdb
 PORTVERSION=	0.10.1
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	http://siag.nu/pub/libsdb/
 DISTNAME=	sdb-${PORTVERSION}
@@ -11,7 +12,7 @@ WWW=		https://siag.nu/libsdb/
 MAKE_JOBS_UNSAFE=	yes
 
 HAS_CONFIGURE=	yes
-MAKE_ARGS=	PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}"
+MAKE_ARGS=	PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}" MANDIR="${PREFIX}/share/man"
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	VERSION="${PORTVERSION}"
diff --git a/databases/libsdb/files/patch-config.in b/databases/libsdb/files/patch-config.in
index 061a3f3a490e..1994ca0ff66b 100644
--- a/databases/libsdb/files/patch-config.in
+++ b/databases/libsdb/files/patch-config.in
@@ -6,8 +6,8 @@
  install-man:
 -	mkdir -p $(MANDIR)/man3 && cp $(MAN3) $(MANDIR)/man3
 -	mkdir -p $(MANDIR)/man8 && cp $(MAN8) $(MANDIR)/man8
-+	$(BSD_INSTALL_MAN) $(MAN3) $(DESTDIR)$(MANDIR)/man3
-+	$(BSD_INSTALL_MAN) $(MAN8) $(DESTDIR)$(MANDIR)/man8
++	$(BSD_INSTALL_MAN) $(MAN3) $(DESTDIR)/$(MANDIR)/man3
++	$(BSD_INSTALL_MAN) $(MAN8) $(DESTDIR)/$(MANDIR)/man8
  
  uninstall-man:
  	cd $(MANDIR)/man3 && rm -f $(MAN3)
diff --git a/databases/libsdb/pkg-plist b/databases/libsdb/pkg-plist
index 492bb6e160f9..d13459183a90 100644
--- a/databases/libsdb/pkg-plist
+++ b/databases/libsdb/pkg-plist
@@ -7,9 +7,9 @@ lib/libsdb.a
 lib/libsdb.so
 lib/libsdb.so.0
 lib/libsdb.so.0.10.0
-man/man3/sdb.3.gz
-man/man3/sdb_close.3.gz
-man/man3/sdb_init.3.gz
-man/man3/sdb_open.3.gz
-man/man3/sdb_query.3.gz
-man/man8/sdbd.8.gz
+share/man/man3/sdb.3.gz
+share/man/man3/sdb_close.3.gz
+share/man/man3/sdb_init.3.gz
+share/man/man3/sdb_open.3.gz
+share/man/man3/sdb_query.3.gz
+share/man/man8/sdbd.8.gz