CVS commit: pkgsrc/sysutils/ups-nut

"Jonathan Perkin" <[email protected]> Fri, 7 Aug 2026 15:54:24 +0000
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	jperkin
Date:		Fri Aug  7 15:54:24 UTC 2026

Modified Files:
	pkgsrc/sysutils/ups-nut: Makefile

Log Message:
ups-nut: Fix hardcoded TOOLS_DIR reference.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 pkgsrc/sysutils/ups-nut/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 939 B)
Modified files:

Index: pkgsrc/sysutils/ups-nut/Makefile
diff -u pkgsrc/sysutils/ups-nut/Makefile:1.84 pkgsrc/sysutils/ups-nut/Makefile:1.85
--- pkgsrc/sysutils/ups-nut/Makefile:1.84	Sun May  3 16:39:13 2026
+++ pkgsrc/sysutils/ups-nut/Makefile	Fri Aug  7 15:54:24 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.84 2026/05/03 16:39:13 gdt Exp $
+# $NetBSD: Makefile,v 1.85 2026/08/07 15:54:24 jperkin Exp $
 
 .include "Makefile.common"
 
@@ -12,6 +12,13 @@ SUBST_FILES.man-so=	docs/man/*.[0-9]
 SUBST_SED.man-so=	-e 's,^\.so \([^/]*\)\.\([0-9]\)$$,.so man\2/\1.\2,'
 SUBST_NOOP_OK.man-so=	yes
 
+SUBST_CLASSES+=		paths
+SUBST_MESSAGE.paths=	Fixing hardcoded TOOLS_DIR references.
+SUBST_STAGE.paths=	post-build
+SUBST_FILES.paths=	scripts/upsdrvsvcctl/nut-driver-enumerator.sh
+SUBST_SED.paths=	-e 's,${TOOLS_CMD.tail},${TOOLS_PATH.tail},'
+SUBST_NOOP_OK.paths=	yes
+
 # Don't regenerate any files in tools/.
 TOOLS_SCRIPT.perl=	exit 1