forked from Lainports/freebsd-ports
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:
parent
7267b89b74
commit
3d2be436ee
1 changed files with 3 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue