File nut-drvpath.patch of Package nut.openSUSE_Leap_42.1_Update

From 6aec760d65f0e4fa63504f09aafda66883d01e21 Mon Sep 17 00:00:00 2001
From: Pedro Monreal <pmonrealgonzalez@suse.com>
Date: Mon, 27 Mar 2017 17:34:17 +0200
Subject: [PATCH] Removed unused DRVPATH

Variable DRVPATH is not set and implies that the subsitution when using is always empty. Removed to prevent future bugs.
---
 configure.ac | 1 -
 1 file changed, 1 deletion(-)

Index: nut-2.7.1/configure.in
===================================================================
--- nut-2.7.1.orig/configure.in
+++ nut-2.7.1/configure.in
@@ -1170,7 +1170,6 @@ AC_SUBST(PIDPATH)
 AC_SUBST(STATEPATH)
 AC_SUBST(CONFPATH)
 AC_SUBST(BINDIR)
-AC_SUBST(DRVPATH)
 AC_SUBST(SBINDIR)
 AC_SUBST(PORT)
 AC_SUBST(RUN_AS_USER)
Index: nut-2.7.1/scripts/systemd/nut-driver.service.in
===================================================================
--- nut-2.7.1.orig/scripts/systemd/nut-driver.service.in
+++ nut-2.7.1/scripts/systemd/nut-driver.service.in
@@ -4,7 +4,7 @@ After=local-fs.target network.target
 StopWhenUnneeded=yes
 
 [Service]
-ExecStart=@DRVPATH@/upsdrvctl start
-ExecStop=@DRVPATH@/upsdrvctl stop
+ExecStart=@driverexecdir@/upsdrvctl start
+ExecStop=@driverexecdir@/upsdrvctl stop
 Type=forking
 
openSUSE Build Service is sponsored by