[nut] nut updated to 2.6.4

Michal Hlavinka mhlavink at fedoraproject.org
Thu Jun 14 10:33:31 UTC 2012


commit 47759db558af49dd87e5c42186044345ca513a78
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Thu Jun 14 12:33:25 2012 +0200

    nut updated to 2.6.4

 .gitignore                    |    1 +
 nut-2.6.3-cve-2012-2944.patch |   16 ----------------
 nut-2.6.3-tmpfiles.patch      |   10 +++++-----
 nut.spec                      |   12 ++++++++----
 sources                       |    2 +-
 5 files changed, 15 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d66e3bd..6103088 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ nut-2.4.3.tar.gz
 /nut-2.6.1.tar.gz
 /nut-2.6.2.tar.gz
 /nut-2.6.3.tar.gz
+/nut-2.6.4.tar.gz
diff --git a/nut-2.6.3-tmpfiles.patch b/nut-2.6.3-tmpfiles.patch
index 85a1fc9..7fb2e24 100644
--- a/nut-2.6.3-tmpfiles.patch
+++ b/nut-2.6.3-tmpfiles.patch
@@ -1,11 +1,11 @@
-diff -up nut-2.6.3/scripts/systemd/nut-monitor.service.in.tmpfiles nut-2.6.3/scripts/systemd/nut-monitor.service.in
---- nut-2.6.3/scripts/systemd/nut-monitor.service.in.tmpfiles	2012-04-16 13:42:53.194693623 +0200
-+++ nut-2.6.3/scripts/systemd/nut-monitor.service.in	2012-04-16 13:42:56.328714795 +0200
+diff -up nut-2.6.4/scripts/systemd/nut-monitor.service.in.tmpfiles nut-2.6.4/scripts/systemd/nut-monitor.service.in
+--- nut-2.6.4/scripts/systemd/nut-monitor.service.in.tmpfiles	2012-05-02 23:35:36.000000000 +0200
++++ nut-2.6.4/scripts/systemd/nut-monitor.service.in	2012-06-14 11:38:42.408504102 +0200
 @@ -3,6 +3,7 @@ Description=Network UPS Tools - power de
  After=local-fs.target network.target nut-server.service
  
  [Service]
 +ExecStartPre=-/usr/bin/systemd-tmpfiles --create /etc/tmpfiles.d/nut-client.conf
- ExecStart=/usr/sbin/upsmon
- PIDFile=/var/run/nut/upsmon.pid
+ ExecStart=@SBINDIR@/upsmon
+ PIDFile=@PIDPATH@/upsmon.pid
  Type=forking
diff --git a/nut.spec b/nut.spec
index 3655b4d..0124557 100644
--- a/nut.spec
+++ b/nut.spec
@@ -12,15 +12,14 @@
 
 Summary: Network UPS Tools
 Name: nut
-Version: 2.6.3
-Release: 4%{?dist}
+Version: 2.6.4
+Release: 1%{?dist}
 Group: Applications/System
 License: GPLv2+ and GPLv3+
 Url: http://www.networkupstools.org/
 Source: http://www.networkupstools.org/source/2.6/%{name}-%{version}.tar.gz
 Source3: nut-client.tmpfiles
 Patch1: nut-2.6.3-tmpfiles.patch
-Patch2: nut-2.6.3-cve-2012-2944.patch
 
 Requires(pre): shadow-utils udev
 Requires(post): fileutils chkconfig 
@@ -109,7 +108,6 @@ necessary to develop NUT client applications.
 %prep
 %setup -q
 %patch1 -p1 -b .tmpfiles
-%patch2 -p1 -b .cve-2012-2944
 sed -i 's|=NUT-Monitor|=nut-monitor|'  scripts/python/app/nut-monitor.desktop
 sed -i "s|sys.argv\[0\]|'%{_datadir}/%{name}/nut-monitor/nut-monitor'|" scripts/python/app/NUT-Monitor
 sed -i 's|LIBSSL_LDFLAGS|LIBSSL_LIBS|' lib/libupsclient-config.in
@@ -168,6 +166,8 @@ make install DESTDIR=%{buildroot}
 
 rm -rf %{buildroot}%{_prefix}/html
 rm -f %{buildroot}%{_libdir}/*.la
+rm -rf docs/man
+find docs/ -name 'Makefile*' -delete
 
 pushd conf; 
 make install DESTDIR=%{buildroot}
@@ -407,6 +407,7 @@ rm -rf %{buildroot}
 %{_mandir}/man8/mge-shut.8.gz
 %{_mandir}/man8/nutupsdrv.8.gz
 %{_mandir}/man8/nut-ipmipsu.8.gz
+%{_mandir}/man8/nut-recorder.8.gz
 %{_mandir}/man8/nut-scanner.8.gz
 %{_mandir}/man8/oneac.8.gz
 %{_mandir}/man8/optiups.8.gz
@@ -491,6 +492,9 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/libnutscan.pc
 
 %changelog
+* Thu Jun 14 2012 Michal Hlavinka <mhlavink at redhat.com> - 2.6.4-1
+- nut updated to 2.6.4
+
 * Thu May 31 2012 Michal Hlavinka <mhlavink at redhat.com> - 2.6.3-4
 - fix heap-based buffer overflow due improper processing of non-printable 
   characters in random network data (CVE-2012-2944)
diff --git a/sources b/sources
index 70e09d9..08c16c3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8db00c21f8bc03add6e14d15f634ec6a  nut-2.6.3.tar.gz
+78d672fbbcd90683e49c667665a95f87  nut-2.6.4.tar.gz


More information about the scm-commits mailing list