git: d8aaf784e18b - 2023Q2 - sysutils/nut-devel: Only install nut-usb.conf with USB option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Apr 2023 22:11:02 UTC
The branch 2023Q2 has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=d8aaf784e18b64eb765fd0515ac4f4bcd2bba65f commit d8aaf784e18b64eb765fd0515ac4f4bcd2bba65f Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2023-04-06 21:44:20 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2023-04-06 21:50:54 +0000 sysutils/nut-devel: Only install nut-usb.conf with USB option ${LOCALBASE}/etc/devd/nut-usb.conf was installed unconditionally. This is incorrect. It should only be installed when the USB option is selected. MFH: 2023Q2 (cherry picked from commit 3d2be436ee8b8269c3e2a63fe42616705b2270dd) --- sysutils/nut-devel/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile index 82b70c4f3cca..d16f0c9a808b 100644 --- a/sysutils/nut-devel/Makefile +++ b/sysutils/nut-devel/Makefile @@ -1,5 +1,6 @@ PORTNAME= nut PORTVERSION= ${NUT_COMMIT_DATE} +PORTREVISION= 1 CATEGORIES= sysutils PKGNAMESUFFIX= -devel # MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/ @@ -147,7 +148,9 @@ pre-configure: pre-install: @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nut +.if ${PORT_OPTIONS:MUSB} @${REINPLACE_CMD} -e 's/device-name\*/cdev/g' ${WRKSRC}/scripts/devd/nut-usb.conf +.endif post-install: @${MKDIR} ${STAGEDIR}${STATEDIR}