aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nut-devel
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-04-06 21:44:20 +0000
committerCy Schubert <cy@FreeBSD.org>2023-04-06 21:45:49 +0000
commit3d2be436ee8b8269c3e2a63fe42616705b2270dd (patch)
tree27d16c37925d9decddd6c5affea4d5d2e409b092 /sysutils/nut-devel
parent7267b89b748860bd8dbca6d8682ebb3a541892df (diff)
downloadports-3d2be436ee8b8269c3e2a63fe42616705b2270dd.tar.gz
ports-3d2be436ee8b8269c3e2a63fe42616705b2270dd.zip
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
Diffstat (limited to 'sysutils/nut-devel')
-rw-r--r--sysutils/nut-devel/Makefile3
1 files changed, 3 insertions, 0 deletions
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}