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
This commit is contained in:
Cy Schubert 2023-04-06 14:44:20 -07:00
parent 7267b89b74
commit 3d2be436ee

View file

@ -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}