[nut/f17] fix upsdrvctl location in systemd files

Michal Hlavinka mhlavink at fedoraproject.org
Mon Jul 2 15:49:45 UTC 2012


commit fcc1dbfb3f0cf5ff5077c1bb4695c74c87f57b25
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Mon Jul 2 17:49:43 2012 +0200

    fix upsdrvctl location in systemd files

 nut.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/nut.spec b/nut.spec
index be59ee8..8bcb931 100644
--- a/nut.spec
+++ b/nut.spec
@@ -14,7 +14,7 @@
 Summary: Network UPS Tools
 Name: nut
 Version: 2.6.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Applications/System
 License: GPLv2+
 Url: http://www.networkupstools.org/
@@ -115,6 +115,9 @@ sed -i 's|LIBSSL_LDFLAGS|LIBSSL_LIBS|' lib/libupsclient-config.in
 sed -i 's|LIBSSL_LDFLAGS|LIBSSL_LIBS|' lib/libupsclient.pc.in
 
 %build
+sed -i scripts/systemd/nutshutdown.in -e 's|@SBINDIR@/upsdrvctl|@driverexecdir@/upsdrvctl|'
+sed -i scripts/systemd/nut-driver.service.in -e 's|@SBINDIR@/upsdrvctl|@driverexecdir@/upsdrvctl|'
+
 autoreconf -i
 %configure \
     --with-all \
@@ -485,6 +488,9 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/libnutscan.pc
 
 %changelog
+* Mon Jul 02 2012 Michal Hlavinka <mhlavink at redhat.com> - 2.6.4-2
+- fix upsdrvctl location in systemd files
+
 * Thu Jun 14 2012 Michal Hlavinka <mhlavink at redhat.com> - 2.6.4-1
 - nut updated to 2.6.4
 


More information about the scm-commits mailing list