Date: Thu, 6 Apr 2023 21:49:37 GMT From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 3d2be436ee8b - main - sysutils/nut-devel: Only install nut-usb.conf with USB option Message-ID: <202304062149.336Lnbsa072020@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d2be436ee8b8269c3e2a63fe42616705b2270dd commit 3d2be436ee8b8269c3e2a63fe42616705b2270dd 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:45:49 +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 --- 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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304062149.336Lnbsa072020>