]> git.pld-linux.org Git - packages/nut.git/commitdiff
- up to 2.7.4 auto/th/nut-2.7.4-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 28 Jul 2017 10:08:32 +0000 (12:08 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 28 Jul 2017 10:08:32 +0000 (12:08 +0200)
nut-build.patch [new file with mode: 0644]
nut-config.patch
nut.spec
systemd-sysconfig.patch

diff --git a/nut-build.patch b/nut-build.patch
new file mode 100644 (file)
index 0000000..10b2f57
--- /dev/null
@@ -0,0 +1,11 @@
+--- nut-2.7.4/tools/nut-scanner/Makefile.am~   2015-12-29 13:08:34.000000000 +0100
++++ nut-2.7.4/tools/nut-scanner/Makefile.am    2017-07-28 12:01:22.623458373 +0200
+@@ -15,7 +15,7 @@ libnutscan_la_SOURCES = scan_nut.c scan_
+                       ../../drivers/serial.c \
+                       ../../drivers/bcmxcp_ser.c \
+-                      ../../common/common.c
++                      ../../common/common.c ../../common/str.c
+ libnutscan_la_LIBADD = $(NETLIBS) $(LIBLTDL_LIBS)
+ libnutscan_la_LDFLAGS = $(SERLIBS) -version-info 1:0:0
+ libnutscan_la_CFLAGS = -I$(top_srcdir)/clients -I$(top_srcdir)/include $(LIBLTDL_CFLAGS) -I$(top_srcdir)/drivers
index f655eeccc40e93a03ec18bb8129a8a46ae1093b6..7efbc4e9d2f36f23b1e878c68fe735755d58d6be 100644 (file)
@@ -1,15 +1,3 @@
-diff -Nuard nut-2.0.1.orig/conf/upsmon.conf nut-2.0.1/conf/upsmon.conf
---- nut-2.0.1.orig/conf/upsmon.conf    2004-10-26 11:50:12.410074640 +0200
-+++ nut-2.0.1/conf/upsmon.conf.sample  2004-10-26 11:51:12.681911928 +0200
-@@ -27,7 +27,7 @@
- #
- # This user should not have write access to upsmon.conf.
- #
--# RUN_AS_USER nut
-+# RUN_AS_USER ups
- # --------------------------------------------------------------------------
- # MONITOR <system> <powervalue> <username> <password> ("master"|"slave")
 diff -Nuard nut-2.0.1.orig/conf/upssched.conf nut-2.0.1/conf/upssched.conf
 --- nut-2.0.1.orig/conf/upssched.conf  2004-10-26 11:50:12.410074640 +0200
 +++ nut-2.0.1/conf/upssched.conf.sample.in     2004-10-26 11:50:23.295419816 +0200
 diff -Nuard nut-2.0.1.orig/conf/upssched.conf nut-2.0.1/conf/upssched.conf
 --- nut-2.0.1.orig/conf/upssched.conf  2004-10-26 11:50:12.410074640 +0200
 +++ nut-2.0.1/conf/upssched.conf.sample.in     2004-10-26 11:50:23.295419816 +0200
@@ -52,12 +40,12 @@ diff -Nuard nut-2.0.1.orig/conf/upssched.conf nut-2.0.1/conf/upssched.conf
 +# AT COMMBAD * START-TIMER upsgone 10
 +# AT COMMOK * CANCEL-TIMER upsgone
 --- nut-2.2.0/conf/upsmon.conf.sample.orig     2007-07-26 11:15:08.152047877 +0000
 +# AT COMMBAD * START-TIMER upsgone 10
 +# AT COMMOK * CANCEL-TIMER upsgone
 --- nut-2.2.0/conf/upsmon.conf.sample.orig     2007-07-26 11:15:08.152047877 +0000
-+++ nut-2.2.0/conf/upsmon.conf.sample  2007-07-26 11:17:20.131913520 +0000
++++ nut-2.2.0/conf/upsmon.conf.sample.in       2007-07-26 11:17:20.131913520 +0000
 @@ -126,7 +126,7 @@
  # information and ideas, see pager.txt in the docs directory.
  #
  # Example:
 @@ -126,7 +126,7 @@
  # information and ideas, see pager.txt in the docs directory.
  #
  # Example:
--# NOTIFYCMD /usr/local/ups/bin/notifyme
+-# NOTIFYCMD @BINDIR@/notifyme
 +# NOTIFYCMD /usr/sbin/upssched
  
  # --------------------------------------------------------------------------
 +# NOTIFYCMD /usr/sbin/upssched
  
  # --------------------------------------------------------------------------
index a8cad66b2e0d017a72d3dee6e23a5bb2134a685f..e32c48e691f1b341a211419cb51c092168e5d615 100644 (file)
--- a/nut.spec
+++ b/nut.spec
 Summary:       Network UPS Tools
 Summary(pl.UTF-8):     Sieciowe narzędzie do UPS-ów
 Name:          nut
 Summary:       Network UPS Tools
 Summary(pl.UTF-8):     Sieciowe narzędzie do UPS-ów
 Name:          nut
-Version:       2.7.2
-Release:       4
+Version:       2.7.4
+Release:       1
 License:       GPL
 Group:         Applications/System
 Source0:       http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
 License:       GPL
 Group:         Applications/System
 Source0:       http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
-# Source0-md5: c3568b42e058cfc385b46d25140dced4
+# Source0-md5: 3ba53656933d7471f95140b32a5b8d5c
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}-upsmon.init
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}-upsmon.init
@@ -27,6 +27,7 @@ Patch3:               %{name}-upssched-cmd-sysconf.patch
 Patch4:                %{name}-matrix.patch
 Patch5:                systemd-sysconfig.patch
 Patch6:                bcmxcp-off-by-one.patch
 Patch4:                %{name}-matrix.patch
 Patch5:                systemd-sysconfig.patch
 Patch6:                bcmxcp-off-by-one.patch
+Patch7:                %{name}-build.patch
 URL:           http://www.networkupstools.org/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://www.networkupstools.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -184,6 +185,7 @@ Plik wynikowy oraz nagłówek służące do tworzenia klientów NUT-a.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %build
 cp -f /usr/share/automake/config.sub .
 
 %build
 cp -f /usr/share/automake/config.sub .
@@ -233,7 +235,7 @@ for i in $RPM_BUILD_ROOT%{_sysconfdir}/*.sample; do
        mv -f $i ${i%.sample}
 done
 
        mv -f $i ${i%.sample}
 done
 
-%{!?with_usb:rm -f $RPM_BUILD_ROOT%{_udevrulesdir}/52-nut-usbups.rules}
+%{!?with_usb:rm -f $RPM_BUILD_ROOT%{_udevrulesdir}/62-nut-usbups.rules}
 
 cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
 #!/bin/sh
 
 cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
 #!/bin/sh
@@ -451,7 +453,7 @@ fi
 %{?with_usb:%{_mandir}/man8/tripplite_usb.8*}
 %{?with_usb:%{_mandir}/man8/usbhid-ups.8*}
 %{_mandir}/man8/victronups.8*
 %{?with_usb:%{_mandir}/man8/tripplite_usb.8*}
 %{?with_usb:%{_mandir}/man8/usbhid-ups.8*}
 %{_mandir}/man8/victronups.8*
-%{?with_usb:%config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-usbups.rules}
+%{?with_usb:%config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/62-nut-usbups.rules}
 %config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-ipmipsu.rules
 
 %files common
 %config(noreplace) %verify(not md5 mtime size) %{_udevrulesdir}/52-nut-ipmipsu.rules
 
 %files common
index 2f543dc650d843603cf86545fe75758ff1e98ee3..1eb43d91c01c43ae10f2444fc7fab2f8229c6a50 100644 (file)
  
 --- nut-2.6.5/configure.ac~    2012-08-06 14:37:36.000000000 +0200
 +++ nut-2.6.5/configure.ac     2013-01-13 12:42:30.807862312 +0100
  
 --- nut-2.6.5/configure.ac~    2012-08-06 14:37:36.000000000 +0200
 +++ nut-2.6.5/configure.ac     2013-01-13 12:42:30.807862312 +0100
-@@ -986,9 +986,8 @@
+@@ -1066,7 +1066,7 @@ dnl Override installation directory, wit
  dnl prefix. This is needed for 'distcheck*' targets, otherwise
  dnl files will try to get intalled to the actual system directories
  if test -n "${systemdsystemunitdir}"; then
 -      systemdsystemshutdowndir="${libdir}/systemd/system-shutdown"
 +      systemdsystemshutdowndir="/lib/systemd/system-shutdown"
        AC_MSG_RESULT(using ${systemdsystemunitdir})
  dnl prefix. This is needed for 'distcheck*' targets, otherwise
  dnl files will try to get intalled to the actual system directories
  if test -n "${systemdsystemunitdir}"; then
 -      systemdsystemshutdowndir="${libdir}/systemd/system-shutdown"
 +      systemdsystemshutdowndir="/lib/systemd/system-shutdown"
        AC_MSG_RESULT(using ${systemdsystemunitdir})
--      systemdsystemunitdir="`echo ${systemdsystemunitdir} | sed 's/\/lib/\${libdir}/'`"
  else
        AC_MSG_RESULT(no)
  else
        AC_MSG_RESULT(no)
- fi
+
This page took 0.108234 seconds and 4 git commands to generate.