git: 79419a7f76e1 - main - sysutils/powerdxx: Install man pages under share/man

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Tue, 27 Feb 2024 02:45:32 UTC
The branch main has been updated by jrm:

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

commit 79419a7f76e1b532890c3f3ae23c25c9f4205029
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-02-27 02:33:39 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-02-27 02:43:36 +0000

    sysutils/powerdxx: Install man pages under share/man
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 sysutils/powerdxx/Makefile              |  2 +-
 sysutils/powerdxx/files/patch-pkg_files | 15 +++++++++++++++
 sysutils/powerdxx/pkg-plist             |  8 ++++----
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/sysutils/powerdxx/Makefile b/sysutils/powerdxx/Makefile
index 03c4191b25cf..464a083822de 100644
--- a/sysutils/powerdxx/Makefile
+++ b/sysutils/powerdxx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	powerdxx
 DISTVERSION=	0.4.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/sysutils/powerdxx/files/patch-pkg_files b/sysutils/powerdxx/files/patch-pkg_files
new file mode 100644
index 000000000000..7149d2cdaaa6
--- /dev/null
+++ b/sysutils/powerdxx/files/patch-pkg_files
@@ -0,0 +1,15 @@
+--- pkg/files.orig	2024-02-27 02:31:04 UTC
++++ pkg/files
+@@ -4,8 +4,8 @@ MAN:%%CURDIR%%/README.md:%%DOCSDIR%%/README.md
+ PROGRAM:%%OBJDIR%%/loadplay:%%PREFIX%%/bin/loadplay
+ LIB:%%OBJDIR%%/libloadplay.so:%%PREFIX%%/lib/libloadplay.so
+ MAN:%%CURDIR%%/README.md:%%DOCSDIR%%/README.md
+-MAN:%%CURDIR%%/man/powerd++.8:%%PREFIX%%/man/man8/powerd++.8.gz
+-SYMLINK:powerd++.8.gz:%%PREFIX%%/man/man8/powerdxx.8.gz
+-MAN:%%CURDIR%%/man/loadrec.1:%%PREFIX%%/man/man1/loadrec.1.gz
+-MAN:%%CURDIR%%/man/loadplay.1:%%PREFIX%%/man/man1/loadplay.1.gz
++MAN:%%CURDIR%%/man/powerd++.8:%%PREFIX%%/share/man/man8/powerd++.8.gz
++SYMLINK:powerd++.8.gz:%%PREFIX%%/share/man/man8/powerdxx.8.gz
++MAN:%%CURDIR%%/man/loadrec.1:%%PREFIX%%/share/man/man1/loadrec.1.gz
++MAN:%%CURDIR%%/man/loadplay.1:%%PREFIX%%/share/man/man1/loadplay.1.gz
+ SCRIPT:%%CURDIR%%/powerd++.rc:%%PREFIX%%/etc/rc.d/powerdxx
diff --git a/sysutils/powerdxx/pkg-plist b/sysutils/powerdxx/pkg-plist
index db9ade99f9fe..51f32099510f 100644
--- a/sysutils/powerdxx/pkg-plist
+++ b/sysutils/powerdxx/pkg-plist
@@ -2,10 +2,10 @@ bin/loadplay
 bin/loadrec
 etc/rc.d/powerdxx
 lib/libloadplay.so
-man/man1/loadplay.1.gz
-man/man1/loadrec.1.gz
-man/man8/powerd++.8.gz
-man/man8/powerdxx.8.gz
+share/man/man1/loadplay.1.gz
+share/man/man1/loadrec.1.gz
+share/man/man8/powerd++.8.gz
+share/man/man8/powerdxx.8.gz
 sbin/powerd++
 sbin/powerdxx
 %%PORTDOCS%%%%DOCSDIR%%/README.md