git: fa59329dc39b - main - sysutils/nut*: Fixup docs

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 09 May 2022 18:11:28 UTC
The branch main has been updated by cy:

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

commit fa59329dc39bf1fd50cea94febc0739704bbf200
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-05-08 13:36:30 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 17:49:29 +0000

    sysutils/nut*: Fixup docs
    
    Documentation refers to /usr/local/ups. Refer to ${PREFIX} instead.
    
    PR:             263856
    Reviewed by:    clear.screen@orange.fr
---
 sysutils/nut-devel/Makefile | 3 ++-
 sysutils/nut/Makefile       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index f40a1a065584..7aea1a1f7a28 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	nut
 PORTVERSION=	${NUT_COMMIT_DATE}
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils
 PKGNAMESUFFIX=	-devel
 # MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
@@ -131,6 +131,7 @@ NSS_CONFIGURE_WITH=	nss
 post-patch:
 	@${REINPLACE_CMD} -i '' -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/autogen.sh
 	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/bin/env python|${PYTHON_CMD}|'
+	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/local/ups|${PREFIX}|'
 
 pre-configure:
 	cd ${WRKSRC} && ./autogen.sh
diff --git a/sysutils/nut/Makefile b/sysutils/nut/Makefile
index e1569eebacea..fcb96c79ad9d 100644
--- a/sysutils/nut/Makefile
+++ b/sysutils/nut/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	nut
 PORTVERSION=	2.8.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
 
@@ -116,6 +116,7 @@ NSS_CONFIGURE_WITH=	nss
 
 post-patch:
 	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/bin/env python|${PYTHON_CMD}|'
+	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/local/ups|${PREFIX}|'
 
 pre-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nut