[nut/f16] fix upsdrvctl location in systemd files

Michal Hlavinka mhlavink at fedoraproject.org
Mon Jul 2 15:29:03 UTC 2012


commit 7761c17a99233d4d0c3994ef78b9e8b704deb292
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Mon Jul 2 17:29:00 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 1394571..11f7142 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+
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -119,6 +119,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 \
@@ -476,6 +479,9 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/libupsclient.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