git: 5f41178a7873 - main - databases/unixODBC: Fix paths in manpages

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Thu, 28 Aug 2025 15:46:43 UTC
The branch main has been updated by michaelo:

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

commit 5f41178a78739d94d0343797a4b2e0dc4da8d7be
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2025-08-27 19:49:52 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-08-28 15:46:31 +0000

    databases/unixODBC: Fix paths in manpages
    
    Manpages aren't filtered during install for LOCALBASE, fix that.
    
    Approved by:    jrm (mentor), brnrd (maintainer)
    Differential Revision:  https://reviews.freebsd.org/D52193
---
 databases/unixODBC/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile
index 7cc274e40626..12a5ba670120 100644
--- a/databases/unixODBC/Makefile
+++ b/databases/unixODBC/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	unixODBC
 PORTVERSION=	2.3.12
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 MASTER_SITES=	http://www.unixodbc.org/ \
 		ftp://ftp.unixodbc.org/pub/unixODBC/
@@ -28,6 +28,9 @@ PORTDOCS=	*
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|\.ini$$|.ini.sample|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} \
+		-e 's|/etc|${LOCALBASE}/etc|' \
+		-e 's|/usr/lib|${LOCALBASE}/lib|' ${WRKSRC}/man/*.[1-9]
 
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}