2007-01-15 23:27:08 +00:00
|
|
|
|
#
|
2008-05-09 20:13:02 +00:00
|
|
|
|
# spec file for package nut (Version 2.2.2)
|
2007-01-15 23:27:08 +00:00
|
|
|
|
#
|
2008-04-14 18:19:17 +00:00
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:27:08 +00:00
|
|
|
|
#
|
2008-09-26 13:20:02 +00:00
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-15 23:27:08 +00:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2008-04-14 18:19:17 +00:00
|
|
|
|
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
Name: nut
|
2008-05-08 21:47:36 +00:00
|
|
|
|
BuildRequires: apache2-devel dbus-1-devel gd-devel hal-devel libneon-devel libopenssl-devel libusb-devel net-snmp-devel openssl-devel pkg-config tcpd-devel
|
2008-05-09 20:13:02 +00:00
|
|
|
|
# for directory ownership:
|
|
|
|
|
BuildRequires: pm-utils
|
2007-08-09 23:24:28 +00:00
|
|
|
|
License: GPL v2 or later
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Group: Hardware/UPS
|
|
|
|
|
Provides: smartups
|
|
|
|
|
Obsoletes: smartups
|
|
|
|
|
Conflicts: apcupsd
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Summary: Network UPS Tools Core (Unbreakable Power Supply Monitoring)
|
|
|
|
|
Version: 2.2.2
|
2008-12-15 13:57:44 +00:00
|
|
|
|
Release: 64
|
2007-10-22 16:32:43 +00:00
|
|
|
|
Url: http://www.networkupstools.org/
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Source1: upsd.init
|
|
|
|
|
Source2: README.SUSE
|
|
|
|
|
Source3: upsd-early-powerdown.init
|
|
|
|
|
Source4: upsd.dbus-1
|
2007-10-22 16:32:43 +00:00
|
|
|
|
Source5: nut.firewall.in
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Source6: nut-disable-hal-hid-ups.fdi
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Source7: nut.sleep
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Patch: nut-preconfig.patch
|
|
|
|
|
Patch3: nut-notifyflag.patch
|
|
|
|
|
Patch4: nut-powersave.patch
|
2007-10-22 16:32:43 +00:00
|
|
|
|
Patch6: nut-udev.patch
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Patch8: nut-libtool.patch
|
|
|
|
|
Patch11: nut-intptr.patch
|
|
|
|
|
Patch12: nut-hal.patch
|
2007-01-15 23:27:08 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-26 13:20:02 +00:00
|
|
|
|
PreReq: pwdutils /bin/chown
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Requires: nut-package = %{version}
|
2007-08-09 23:24:28 +00:00
|
|
|
|
%define apache_serverroot %(%{_sbindir}/apxs2 -q datadir 2>/dev/null || %{_sbindir}/apxs -q PREFIX)
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%define CGIPATH %{apache_serverroot}/cgi-bin
|
2007-08-09 23:24:28 +00:00
|
|
|
|
%define HTMLPATH %{apache_serverroot}/htdocs
|
|
|
|
|
%define MODELPATH %{_prefix}/lib/ups/driver
|
|
|
|
|
%define STATEPATH %{_localstatedir}/lib/ups
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%define CONFPATH %{_sysconfdir}/ups
|
|
|
|
|
%define USER upsd
|
2007-10-22 16:32:43 +00:00
|
|
|
|
%define GROUP daemon
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%define LBRACE (
|
|
|
|
|
%define RBRACE )
|
|
|
|
|
%define QUOTE "
|
|
|
|
|
%define BACKSLASH \\
|
|
|
|
|
# Collect all devices listed in ups-nut-device.fdi:
|
|
|
|
|
%define USBDRIVERS %(set -x ; bunzip2 <%{S:0} | fgrep -a -A4 usb_device.vendor_id | tr '%{BACKSLASH}n' '-' | tr 'a-z' 'A-Z' | sed 's/--/%{BACKSLASH}n/g' | sed 's/^.*USB_DEVICE%{BACKSLASH}.VENDOR_ID%{QUOTE} INT=%{QUOTE}0X%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}.*USB_DEVICE%{BACKSLASH}.PRODUCT_ID%{QUOTE} INT=%{QUOTE}0X%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}.*INFO%{BACKSLASH}.ADDONS%{QUOTE} TYPE=%{QUOTE}STRLIST%{QUOTE}>%{BACKSLASH}%{LBRACE}[^<]*%{BACKSLASH}%{RBRACE}<.*$/%{BACKSLASH}3=modalias%{LBRACE}usb:v%{BACKSLASH}1p%{BACKSLASH}2d*dc*dsc*dp*ic*isc*ip*%{RBRACE}/')
|
|
|
|
|
# Package provides driver for USB HID UPSes, but people can live with hal addon:
|
|
|
|
|
Enhances: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed -n s/^HALD-ADDON-USBHID-UPS=//p | tr '%{BACKSLASH}n' ' ')
|
|
|
|
|
# Package provides the only avalailable driver for other USB UPSes:
|
|
|
|
|
Supplements: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed '/^HALD-ADDON-USBHID-UPS=/d;s/^.*=//' | tr '%{BACKSLASH}n' ' ')
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Core package of Network UPS Tools.
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%package drivers-net
|
|
|
|
|
License: GPL v2 or later
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Summary: Network UPS Tools - Extra Networking Drivers (for Network Monitoring)
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Group: Hardware/UPS
|
|
|
|
|
Requires: %{name}-classic = %{version}
|
|
|
|
|
Enhances: %{name}-classic
|
|
|
|
|
# for update from openSUSE <= 10.3, SLE <= 10
|
|
|
|
|
Provides: nut:%{_prefix}/lib/ups/driver/snmp-ups
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%description drivers-net
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Networking drivers for the Network UPS Tools. You will need them
|
|
|
|
|
altogether with nut-classic to provide UPS networking support.
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
|
|
|
|
|
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
|
|
|
|
|
|
|
|
|
%package -n libupsclient1
|
|
|
|
|
License: GPL v2 or later
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Summary: Network UPS Tools Library (Unbreakable Power Supply Monitoring)
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n libupsclient1
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Shared library for the Network UPS Tools.
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
|
|
|
|
|
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
2007-01-15 23:27:08 +00:00
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%package classic
|
2008-04-14 18:19:17 +00:00
|
|
|
|
License: GPL v2 or later
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Summary: Network UPS Tools Classic Package (Monitoring Server)
|
2007-08-09 23:24:28 +00:00
|
|
|
|
Group: Hardware/UPS
|
|
|
|
|
Requires: %{name} = %{version}
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Provides: nut-package = %{version}
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Conflicts: %{name}-hal
|
|
|
|
|
Requires: %{_bindir}/pgrep %{_bindir}/pkill %{_bindir}/grep %{_bindir}/fgrep %{_sbindir}/lsusb %{_bindir}/readlink
|
2008-12-15 13:57:44 +00:00
|
|
|
|
PreReq: %insserv_prereq pwdutils /bin/chown /bin/chmod %{_bindir}/fgrep %{_bindir}/grep %{_bindir}/sed %{_bindir}/head %{_bindir}/md5sum
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Requires: powersave
|
|
|
|
|
# for update from openSUSE <= 10.3, SLE <= 10
|
|
|
|
|
Provides: nut:%{_sbindir}/upsmon
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%description classic
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Classic package of Network UPS Tools.
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
2008-05-09 20:13:02 +00:00
|
|
|
|
This is the standard installation that uses a layered approach to
|
|
|
|
|
connect all of the NUT parts.
|
|
|
|
|
|
|
|
|
|
Drivers are provided for a wide assortment of equipment. They
|
|
|
|
|
understand the specific language of each UPS and map it back to a
|
|
|
|
|
compatibility layer. This means both an expensive "smart" protocol UPS
|
|
|
|
|
and a simple "power strip" model can be handled transparently.
|
|
|
|
|
|
|
|
|
|
This information is cached by the network server upsd, which then
|
|
|
|
|
answers queries from the clients. upsd contains a number of access
|
|
|
|
|
control features to limit the abilities of the clients. Only
|
|
|
|
|
authorized hosts may monitor or control your UPS hardware if you wish.
|
|
|
|
|
Since the notion of monitoring over the network is built into the
|
|
|
|
|
software, you can hang many systems off one large UPS and they will all
|
|
|
|
|
shut down together.
|
|
|
|
|
|
|
|
|
|
Clients such as upsmon check on the status of the hardware and do
|
|
|
|
|
things when necessary. The most important task is shutting down the
|
|
|
|
|
operating system cleanly before the UPS runs out of power. Other
|
|
|
|
|
programs are also provided to log UPS status regularly, monitor status
|
|
|
|
|
through your web browser, and more.
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
|
|
|
|
|
|
|
|
|
%package hal
|
|
|
|
|
License: GPL v2 or later
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Summary: Network UPS Tools Support for HAL (HAL/D-BUS Integration)
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Group: Hardware/UPS
|
|
|
|
|
Requires: %{name} = %{version}
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Provides: nut-package = %{version}
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Conflicts: %{name}-classic
|
|
|
|
|
Requires: hal >= 0.5.8
|
|
|
|
|
|
|
|
|
|
%description hal
|
2008-05-09 20:13:02 +00:00
|
|
|
|
HAL package of Network UPS Tools is intended for use with supported USB
|
|
|
|
|
devices on HAL enabled desktops (Gnome and KDE).
|
|
|
|
|
|
|
|
|
|
Using this approach, you don't have to configure NUT files, nor to
|
|
|
|
|
manually start components, nor to install a specific NUT client.
|
|
|
|
|
|
|
|
|
|
Upon plugging your USB UPS, the right driver will be automatically
|
|
|
|
|
launched, and the according Power Manager GUI will pop up.
|
|
|
|
|
|
|
|
|
|
Note that this feature is still beta and incomplete. But it represents
|
|
|
|
|
a major evolution, and a huge user experience improvement!
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
|
|
|
|
|
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
|
|
|
|
|
|
|
|
|
%package cgi
|
|
|
|
|
License: GPL v2 or later
|
2008-05-26 21:17:26 +00:00
|
|
|
|
Summary: Network UPS Tools Web Server Support (UPS Status Pages)
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Group: Hardware/UPS
|
|
|
|
|
Requires: %{name}-classic = %{version}
|
|
|
|
|
Enhances: %{name}-classic
|
|
|
|
|
Supplements: packageand(%{name}-classic:apache2)
|
|
|
|
|
# for update from openSUSE <= 10.3, SLE <= 10
|
|
|
|
|
Provides: nut:/srv/www/cgi-bin/upsstats.cgi
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%description cgi
|
2008-05-09 20:13:02 +00:00
|
|
|
|
Web server support package for the Network UPS Tools.
|
|
|
|
|
|
2008-06-02 23:06:36 +00:00
|
|
|
|
Predefined URL is http://localhost/nut/index.html
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
2007-08-09 23:24:28 +00:00
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
2007-08-09 23:24:28 +00:00
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
License: GPL v2 or later
|
|
|
|
|
Summary: Network UPS Tools (Unbreakable Power Supply Monitoring)
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Network UPS Tools is a collection of programs which provide a common
|
|
|
|
|
interface for monitoring and administering UPS hardware.
|
|
|
|
|
|
|
|
|
|
Detailed information about supported hardware can be found in
|
|
|
|
|
/usr/share/doc/packages/nut.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Arnaud Quette <aquette.dev@gmail.com, ArnaudQuette@Eaton.com, aquette@debian.org>
|
|
|
|
|
Russell Kroll <rkroll@exploits.org>
|
|
|
|
|
Stephen Brown <steve@datalimbo.net>
|
|
|
|
|
Bill Carlson <wcarlson@wkks.org>
|
|
|
|
|
Ben Collver <collver@softhome.net>
|
|
|
|
|
Luca Filipozzi <lfilipoz@debian.org>
|
|
|
|
|
Matthew Gabeler-Lee <msg2@po.cwru.edu>
|
|
|
|
|
Bruno Hall
|
|
|
|
|
Bo Kersey - VirCIO - Managed Server Solutions <bo@vircio.com>
|
|
|
|
|
Rick Lyons <rick@powerup.com.au>
|
|
|
|
|
Jeremy Maccelari <visualn@iafrica.com, jeremy@visuals.co.za>
|
|
|
|
|
Philippe Marzouk <philm@users.sourceforge.net>
|
|
|
|
|
Theodor A. Milkov <zimage@delbg.com>
|
|
|
|
|
Mark Powell <medp@primagraphics.co.uk>
|
|
|
|
|
Lars Balker Rasmussen <lbr@mjolner.dk>
|
|
|
|
|
Carlos Rodrigues <carlos.efr@mail.telepac.pt>
|
|
|
|
|
David Santinoli <david@santinoli.com>
|
|
|
|
|
Peter Selinger <selinger@users.sourceforge.net>
|
|
|
|
|
Kirill Smelkov <kirr@mns.spb.ru>
|
|
|
|
|
John Stone <johns@megapixel.com>
|
|
|
|
|
Technorama Ltd. <oss-list-ups@technorama.net>
|
|
|
|
|
Jason Thomas <jason@topic.com.au>
|
|
|
|
|
Simon Rozman <simon@rozman.net>
|
|
|
|
|
Len J White <lwhite@darkfires.net>
|
|
|
|
|
Walt Holman <walt_h@lorettotel.net>
|
2007-08-09 23:24:28 +00:00
|
|
|
|
Fabio Di Niro <blaxwan@users.sourceforge.net>
|
2008-05-08 21:47:36 +00:00
|
|
|
|
Arjen de Korte <arjen@de-korte.org>
|
|
|
|
|
H<EFBFBD>vard Lygre <hklygre@online.no>
|
|
|
|
|
Niels Baggesen <niels@baggesen.net>
|
|
|
|
|
Niklas Edmundsson <nikke@acc.umu.se>
|
|
|
|
|
Olli Savia <ops@iki.fi>
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%prep
|
2008-05-09 20:13:02 +00:00
|
|
|
|
%setup -q
|
|
|
|
|
cp -a %{S:1} %{S:2} %{S:3} %{S:4} %{S:5} %{S:7} .
|
2008-05-08 21:47:36 +00:00
|
|
|
|
cp -a %{S:6} 20-nut-disable-hal-hid-ups.fdi
|
2007-01-15 23:27:08 +00:00
|
|
|
|
mv upsd-early-powerdown.init upsd-early-powerdown
|
|
|
|
|
%patch
|
|
|
|
|
%patch3
|
|
|
|
|
%patch4
|
2008-04-25 14:34:19 +00:00
|
|
|
|
%if %suse_version < 1030
|
|
|
|
|
%patch6 -R
|
2007-10-22 16:32:43 +00:00
|
|
|
|
%endif
|
2008-04-14 18:19:17 +00:00
|
|
|
|
%patch8
|
2007-10-22 16:32:43 +00:00
|
|
|
|
sed -i "s/@UPSD_USER@/%{USER}/g" upsd.init conf/upsmon.conf.sample
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%patch11
|
|
|
|
|
%if %suse_version > 1030
|
|
|
|
|
%patch12
|
|
|
|
|
%endif
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2007-08-09 23:24:28 +00:00
|
|
|
|
autoreconf -f -i
|
|
|
|
|
%configure\
|
|
|
|
|
--sysconfdir=%{CONFPATH}\
|
|
|
|
|
--datadir=%{_datadir}/nut\
|
|
|
|
|
--with-all\
|
2008-05-08 21:47:36 +00:00
|
|
|
|
--with-dev\
|
2007-08-09 23:24:28 +00:00
|
|
|
|
--with-linux-hiddev=%{_includedir}/linux/hiddev.h\
|
|
|
|
|
--with-htmlpath=%{HTMLPATH}\
|
|
|
|
|
--with-cgipath=%{CGIPATH}\
|
|
|
|
|
--with-statepath=%{STATEPATH}\
|
|
|
|
|
--with-drvpath=%{MODELPATH}\
|
|
|
|
|
--with-user=%{USER}\
|
2007-10-22 16:32:43 +00:00
|
|
|
|
--with-group=%{GROUP}
|
2007-08-09 23:24:28 +00:00
|
|
|
|
make %{?jobs:-j%jobs}
|
2007-10-22 16:32:43 +00:00
|
|
|
|
PORT=$(sed -n 's/#define PORT //p' config.log)
|
2008-05-08 21:47:36 +00:00
|
|
|
|
if test "$PORT" = 3493 ; then
|
2007-10-22 16:32:43 +00:00
|
|
|
|
PORT=nut
|
|
|
|
|
fi
|
|
|
|
|
sed s/@PORT@/$PORT/ <nut.firewall.in >nut.firewall
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{STATEPATH}
|
|
|
|
|
# SuSE rc
|
2007-08-09 23:24:28 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
|
install -m 755 upsd.init $RPM_BUILD_ROOT%{_sysconfdir}/init.d/upsd
|
|
|
|
|
ln -sf ../..%{_sysconfdir}/init.d/upsd $RPM_BUILD_ROOT%{_sbindir}/rcupsd
|
2007-10-22 16:32:43 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{STATEPATH}
|
2007-08-09 23:24:28 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
|
|
|
|
|
install -m 644 upsd.dbus-1 $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/upsd.conf
|
|
|
|
|
rename .sample "" $RPM_BUILD_ROOT%{_sysconfdir}/ups/*.sample
|
2007-10-22 16:32:43 +00:00
|
|
|
|
%if %suse_version >= 1030
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
|
|
|
|
cp nut.firewall $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/nut
|
|
|
|
|
%endif
|
2008-05-08 21:47:36 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/20thirdparty
|
|
|
|
|
install -m 644 20-nut-disable-hal-hid-ups.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/20thirdparty/
|
2008-05-09 20:13:02 +00:00
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pm/sleep.d
|
|
|
|
|
install nut.sleep $RPM_BUILD_ROOT%{_sysconfdir}/pm/sleep.d/80nut
|
2007-10-23 23:41:52 +00:00
|
|
|
|
# Rename web pages to not conflict with apache2-example-pages or user home page:
|
2008-06-02 23:06:36 +00:00
|
|
|
|
mkdir $RPM_BUILD_ROOT%{HTMLPATH}/nut $RPM_BUILD_ROOT%{CGIPATH}/nut
|
|
|
|
|
mv $RPM_BUILD_ROOT%{HTMLPATH}/*.{html,png} $RPM_BUILD_ROOT%{HTMLPATH}/nut/
|
|
|
|
|
mv $RPM_BUILD_ROOT%{CGIPATH}/*.cgi $RPM_BUILD_ROOT%{CGIPATH}/nut
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
%pre
|
2007-10-22 16:32:43 +00:00
|
|
|
|
usr/sbin/useradd -r -o -g %{GROUP} -s /bin/false \
|
|
|
|
|
-c "UPS daemon" -d /sbin %{USER} 2>/dev/null || :
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
|
|
|
|
%post
|
2008-05-08 21:47:36 +00:00
|
|
|
|
# Be sure that all files are owned by a dedicated user.
|
2008-09-26 13:20:02 +00:00
|
|
|
|
bin/chown -R %{USER}:%{GROUP} %{STATEPATH}
|
2008-05-08 21:47:36 +00:00
|
|
|
|
|
|
|
|
|
%post -n libupsclient1 -p /sbin/ldconfig
|
|
|
|
|
|
2008-12-15 13:57:44 +00:00
|
|
|
|
%pre classic
|
|
|
|
|
usr/sbin/useradd -r -o -g %{GROUP} -s /bin/false \
|
|
|
|
|
-c "UPS daemon" -d /sbin %{USER} 2>/dev/null || :
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%post classic
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%{fillup_and_insserv -f -n upsd}
|
|
|
|
|
# Generate initial passwords.
|
|
|
|
|
if usr/bin/fgrep -q "password = @UPSD_INITIAL_MASTER_PASSWORD@" %{CONFPATH}/{upsmon.conf,upsd.users} ; then
|
|
|
|
|
UPSD_INITIAL_MASTER_PASSWORD=$(usr/bin/head -c 20 /dev/urandom | usr/bin/md5sum | usr/bin/head -c 10)
|
|
|
|
|
usr/bin/sed -i s/@UPSD_INITIAL_MASTER_PASSWORD@/$UPSD_INITIAL_MASTER_PASSWORD/ %{CONFPATH}/{upsmon.conf,upsd.users}
|
|
|
|
|
fi
|
|
|
|
|
if usr/bin/fgrep -q "password = @UPSD_INITIAL_SLAVE_PASSWORD@" %{CONFPATH}/upsd.users ; then
|
|
|
|
|
UPSD_INITIAL_SLAVE_PASSWORD=$(usr/bin/head -c 20 /dev/urandom | usr/bin/md5sum | usr/bin/head -c 10)
|
|
|
|
|
usr/bin/sed -i s/@UPSD_INITIAL_SLAVE_PASSWORD@/$UPSD_INITIAL_SLAVE_PASSWORD/ %{CONFPATH}/upsd.users
|
|
|
|
|
fi
|
|
|
|
|
# Be sure that all files are owned by a dedicated user.
|
2007-10-22 16:32:43 +00:00
|
|
|
|
bin/chown %{USER}:root %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
|
2007-01-15 23:27:08 +00:00
|
|
|
|
bin/chmod 600 %{CONFPATH}/upsd.conf %{CONFPATH}/upsmon.conf %{CONFPATH}/upsd.users
|
|
|
|
|
# Install HALT_POWERDOWN_INSERT
|
2007-08-09 23:24:28 +00:00
|
|
|
|
if usr/bin/grep -q '^HALT_POWERDOWN_INSERT="\(%{_sysconfdir}/init\.d/upsd try-powerdown\|\)"' etc/sysconfig/shutdown ; then
|
|
|
|
|
usr/bin/sed -i 's:^\(HALT_POWERDOWN_INSERT="\).*"[[:space:]]*:\1%{_sysconfdir}/init.d/upsd try-powerdown":' etc/sysconfig/shutdown
|
2007-01-15 23:27:08 +00:00
|
|
|
|
else
|
2007-08-09 23:24:28 +00:00
|
|
|
|
echo >&2 "nut: WARNING: Unknown value of HALT_POWERDOWN_INSERT in %{_sysconfdir}/sysconfig/shutdown."
|
2007-01-15 23:27:08 +00:00
|
|
|
|
echo >&2 " Keeping unchanged. Should be:"
|
2007-08-09 23:24:28 +00:00
|
|
|
|
echo >&2 "HALT_POWERDOWN_INSERT=\"%{_sysconfdir}/init.d/upsd try-powerdown\""
|
2007-01-15 23:27:08 +00:00
|
|
|
|
fi
|
2007-08-09 23:24:28 +00:00
|
|
|
|
# Silently remove %{_sysconfdir}/sysconfig/smartups. File is now obsolete and
|
2007-01-15 23:27:08 +00:00
|
|
|
|
# values are copied to not replaced config files.
|
2007-08-09 23:24:28 +00:00
|
|
|
|
# %{_sysconfdir}/sysconfig/smartups was last present in SuSE Linux 10.0
|
|
|
|
|
rm -f %{_sysconfdir}/sysconfig/smartups
|
2007-01-15 23:27:08 +00:00
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%preun classic
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%{stop_on_removal upsd}
|
|
|
|
|
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%postun -n libupsclient1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun classic
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%{restart_on_update upsd}
|
|
|
|
|
# Remove HALT_POWERDOWN_INSERT
|
2007-08-09 23:24:28 +00:00
|
|
|
|
if test $1 -eq 0 -a ! -f %{_sysconfdir}/init.d/upsd ; then
|
|
|
|
|
if usr/bin/grep -q '^HALT_POWERDOWN_INSERT="%{_sysconfdir}/init\.d/upsd try-powerdown"' etc/sysconfig/shutdown ; then
|
|
|
|
|
usr/bin/sed -i 's:^\(HALT_POWERDOWN_INSERT="\)%{_sysconfdir}/init\.d/upsd try-powerdown":\1":' etc/sysconfig/shutdown
|
2007-01-15 23:27:08 +00:00
|
|
|
|
else
|
2007-08-09 23:24:28 +00:00
|
|
|
|
echo >&2 "nut: WARNING: Unknown value of HALT_POWERDOWN_INSERT in %{_sysconfdir}/sysconfig/shutdown."
|
2007-01-15 23:27:08 +00:00
|
|
|
|
echo >&2 " Keeping unchanged. Should be:"
|
|
|
|
|
echo >&2 "HALT_POWERDOWN_INSERT=\"\""
|
|
|
|
|
fi
|
2007-08-09 23:24:28 +00:00
|
|
|
|
if test -f %{_sysconfdir}/init.d/upsd-early-powerdown ; then
|
|
|
|
|
echo >&2 "nut: WARNING: You may want to remove your %{_sysconfdir}/init.d/upsd-early-powerdown."
|
2007-01-15 23:27:08 +00:00
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
%insserv_cleanup
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2007-08-09 23:24:28 +00:00
|
|
|
|
%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README README.SUSE UPGRADING upsd-early-powerdown docs/FAQ docs/*.txt docs/cables
|
|
|
|
|
%dir %{_prefix}/lib/ups
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%dir %{_prefix}/lib/ups/driver
|
|
|
|
|
%{_prefix}/lib/ups/*
|
|
|
|
|
%exclude %{_prefix}/lib/ups/driver/snmp-ups
|
|
|
|
|
%exclude %{_prefix}/lib/ups/driver/netxml-ups
|
2007-08-09 23:24:28 +00:00
|
|
|
|
%{_datadir}/nut
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%{_datadir}/hal/fdi/policy/20thirdparty/20-nut-disable-hal-hid-ups.fdi
|
2007-08-09 23:24:28 +00:00
|
|
|
|
%doc %{_mandir}/man8/*.*
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%exclude %doc %{_mandir}/man8/ups*.*
|
|
|
|
|
%exclude %doc %{_mandir}/man8/netxml-ups*.*
|
|
|
|
|
%exclude %doc %{_mandir}/man8/snmp-ups*.*
|
|
|
|
|
%{MODELPATH}
|
|
|
|
|
%attr(700,%{USER},%{GROUP}) %{STATEPATH}
|
|
|
|
|
|
|
|
|
|
%files drivers-net
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_prefix}/lib/ups/driver/snmp-ups
|
|
|
|
|
%{_prefix}/lib/ups/driver/netxml-ups
|
|
|
|
|
%doc %{_mandir}/man8/netxml-ups*.*
|
|
|
|
|
%doc %{_mandir}/man8/snmp-ups*.*
|
|
|
|
|
|
|
|
|
|
%files -n libupsclient1
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files classic
|
|
|
|
|
%defattr(-,root,root)
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%config(noreplace) %{CONFPATH}/hosts.conf
|
|
|
|
|
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsd.conf
|
|
|
|
|
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsd.users
|
|
|
|
|
%config(noreplace) %attr(600,%{USER},root) %{CONFPATH}/upsmon.conf
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%dir %{CONFPATH}
|
2007-01-15 23:27:08 +00:00
|
|
|
|
%config(noreplace) %{CONFPATH}/ups.conf
|
|
|
|
|
%config(noreplace) %{CONFPATH}/upsset.conf
|
|
|
|
|
%config(noreplace) %{CONFPATH}/upssched.conf
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%doc %{_mandir}/man5/*.*
|
|
|
|
|
%doc %{_mandir}/man8/ups*.*
|
|
|
|
|
%{_sbindir}/*
|
2008-05-09 20:13:02 +00:00
|
|
|
|
%{_sysconfdir}/dbus-1/system.d/upsd.conf
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%if %suse_version >= 1030
|
|
|
|
|
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/nut
|
|
|
|
|
%endif
|
|
|
|
|
%{_sysconfdir}/init.d/upsd
|
2008-05-09 20:13:02 +00:00
|
|
|
|
%{_sysconfdir}/pm/sleep.d/80nut
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%{_sysconfdir}/udev/rules.d/*.rules
|
|
|
|
|
|
|
|
|
|
%files cgi
|
|
|
|
|
%defattr(-,root,root)
|
2008-06-02 23:06:36 +00:00
|
|
|
|
%{CGIPATH}/nut
|
|
|
|
|
%{HTMLPATH}/nut
|
2008-05-08 21:47:36 +00:00
|
|
|
|
%config(noreplace) %{CONFPATH}/upsstats-single.html
|
|
|
|
|
%config(noreplace) %{CONFPATH}/upsstats.html
|
|
|
|
|
|
|
|
|
|
%files hal
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_datadir}/hal/fdi/information/20thirdparty/20-ups-nut-device.fdi
|
|
|
|
|
%{_libdir}/hal/*
|
2007-08-09 23:24:28 +00:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%doc %{_mandir}/man3/*.*
|
2008-04-14 18:19:17 +00:00
|
|
|
|
|
2007-02-25 22:32:45 +00:00
|
|
|
|
%changelog
|
2008-12-15 13:57:44 +00:00
|
|
|
|
* Tue Dec 09 2008 ro@suse.de
|
|
|
|
|
- add pre script for classic package to add the user also
|
|
|
|
|
before this package is installed
|
2008-09-26 13:20:02 +00:00
|
|
|
|
* Fri Sep 26 2008 sbrabec@suse.cz
|
|
|
|
|
- Fixed PreReq, useradd must be installed for %%pre (bnc#429557).
|
|
|
|
|
- Sync permissions in scriptlets and file list.
|
2008-06-02 23:06:36 +00:00
|
|
|
|
* Wed May 28 2008 sbrabec@suse.cz
|
|
|
|
|
- nut-cgi: Fixed and documented URLs (bnc#354388#c10).
|
|
|
|
|
- README.SUSE: Fixed name of the most common USB HID driver.
|
2008-05-26 21:17:26 +00:00
|
|
|
|
* Mon May 26 2008 sbrabec@suse.cz
|
|
|
|
|
- Provide and Require nut-package (bnc#337059#c3).
|
2008-05-09 20:13:02 +00:00
|
|
|
|
* Fri May 09 2008 sbrabec@suse.cz
|
|
|
|
|
- Added suspend hook (bnc#230267).
|
|
|
|
|
- Updated to final version 2.2.2 (bnc#385133):
|
|
|
|
|
* added two models supported by megatec
|
|
|
|
|
* includes build fixes from patches
|
2008-05-08 21:47:36 +00:00
|
|
|
|
* Wed Apr 30 2008 sbrabec@suse.cz
|
|
|
|
|
- Added hardware modaliases for solver.
|
|
|
|
|
- Fixed generating of NUT firewall rule (bnc#385111).
|
|
|
|
|
- Installed HAL FDI to disable hald-addon-hid-ups (bnc#385253).
|
|
|
|
|
- Split nut-classic and hut-hal variants to separate subpackages
|
|
|
|
|
(bnc#337059).
|
|
|
|
|
- Split networking drivers and web server into separate packages to
|
|
|
|
|
reduce dependencies (bnc#156614).
|
|
|
|
|
- Split shared library according to shared library policy.
|
|
|
|
|
- Updated README.SuSE.
|
|
|
|
|
- Updated to version 2.2.2-pre3 (bnc#385133):
|
|
|
|
|
* support for new devices: APC BACK-UPS XS LCD, Atlantis Land,
|
|
|
|
|
Mustek Powermust Office 650, Oneac XAU models, Powerware PW5115
|
|
|
|
|
and PW9120 (USB), Nitram Elite 2005.
|
|
|
|
|
* Advanced Integrated Power Management (NUT HAL integration).
|
|
|
|
|
* Shutdown handling has been reworked.
|
|
|
|
|
* Support for MGE UPS SYSTEMS 3 phases units has been added.
|
|
|
|
|
* snmp-ups now supports MGE* Environment Sensor (ref 66 846).
|
|
|
|
|
* The ambient.temperature reporting has also been fixed for units
|
|
|
|
|
other than APC.
|
|
|
|
|
* the netxml-ups driver has appeared to support MGE* network
|
|
|
|
|
HTTP/XML cards.
|
|
|
|
|
* The shared library installed by default.
|
|
|
|
|
* powerpanel has reach a new step toward the replacement of
|
|
|
|
|
nitram and cpsups drivers.
|
|
|
|
|
* many changes, cleanup and fixes to the NUT core and various
|
|
|
|
|
drivers.
|
2008-04-25 14:34:19 +00:00
|
|
|
|
* Thu Apr 24 2008 sbrabec@suse.cz
|
|
|
|
|
- Updated to version 2.2.1:
|
|
|
|
|
* support for new devices: all MGE Office Protection Systems
|
|
|
|
|
units, Advice TopGuard 2000, Belkin F6H375-USB, Dynamix
|
|
|
|
|
UPS1700D, Effekta RM2000MH, Jageson Technology Jasuny USPS,
|
|
|
|
|
Powercom SMK-1500A and SXL-1500A, PowerWalker Line-Interactive
|
|
|
|
|
VI 400/800 and 600, Powerware 9110, UNITEK Alpha 2600, UPSonic
|
|
|
|
|
CXR1000, some vintage serial APC UPSs.
|
|
|
|
|
* Improvements, fixes and backports to usbhid-ups.
|
|
|
|
|
* Updated udev rules.
|
|
|
|
|
* megatec and megatec_usb drivers backported.
|
|
|
|
|
* development files improved.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Apr 14 2008 schwab@suse.de
|
|
|
|
|
- Work around misuse of libtool.
|
|
|
|
|
* Thu Oct 25 2007 sbrabec@suse.cz
|
2007-10-25 23:49:39 +00:00
|
|
|
|
- Fixed use of uninitialized memory (#331749#c13).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Oct 23 2007 sbrabec@suse.cz
|
2007-10-23 23:41:52 +00:00
|
|
|
|
- Renamed web pages to prevent conflicts.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Oct 22 2007 sbrabec@suse.cz
|
2007-10-22 16:32:43 +00:00
|
|
|
|
- Fixed udev USB rules for current kernels (#331749).
|
|
|
|
|
- Added SuSEfirewall2 rule and fixed documentation (#335466).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Aug 07 2007 sbrabec@suse.cz
|
2007-08-09 23:24:28 +00:00
|
|
|
|
- Updated to version 2.2.0:
|
|
|
|
|
* New build infrastructure, with shared library.
|
|
|
|
|
* Support for HAL and Plug and Play.
|
|
|
|
|
* New drivers.
|
|
|
|
|
* Support for many new devices.
|
|
|
|
|
* IPv6 support.
|
|
|
|
|
* Client commands now defaults to localhost.
|
|
|
|
|
* Driver improvements.
|
|
|
|
|
* Documentation improvements.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed May 16 2007 olh@suse.de
|
2007-05-17 09:49:23 +00:00
|
|
|
|
- Buildrequires libusb -> libusb-devel
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Feb 20 2007 mvaner@suse.cz
|
2007-02-25 22:32:45 +00:00
|
|
|
|
- Comparison with string literal (bug #232417)
|
|
|
|
|
- setcmd-literal.patch
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Sep 18 2006 anosek@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed compiler warning: array subscript out of range [#204417]
|
|
|
|
|
(overflow.patch)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Sep 01 2006 anosek@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- updated to 2.0.4
|
|
|
|
|
* A bug has been fixed in NUT core to support resuming from
|
|
|
|
|
suspend-to-disk. This should also fix other similar issues,
|
|
|
|
|
like time synchronisation through the NTP.
|
|
|
|
|
* The mge-shut driver now better detects the Low Battery status,
|
|
|
|
|
support new models and fixes some wrong status and data.
|
|
|
|
|
It also fixes some issue where the UPS wasn't restarting
|
|
|
|
|
(refer to mge-shut manpage).
|
|
|
|
|
* The genericups custom configuration through ups.conf
|
|
|
|
|
is working again
|
|
|
|
|
* The genericups driver type 22 also support CyberPower 725SL
|
|
|
|
|
(and maybe others SL models)
|
|
|
|
|
* The new megatec driver, which will replace a bunch of drivers
|
|
|
|
|
by nut 2.2 (refer to docs/megatec.txt and UPGRADING) has been
|
|
|
|
|
backported from the trunk (Development tree). The powermust
|
|
|
|
|
driver has also received some attention.
|
|
|
|
|
* The new rhino driver was added to support Microsol Rhino UPS
|
|
|
|
|
hardware. The solis has also been improved for solaris
|
|
|
|
|
compatibility, and internal / external shutdown programming.
|
|
|
|
|
Solis can now save external shutdown programming to ups,
|
|
|
|
|
and support new cables for solis 3
|
|
|
|
|
- dropped obsolete patch (nut-2.0.4-memset.patch)
|
|
|
|
|
- fixed subscript out of range [#185610] (overflow.patch)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Jun 23 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Typo fix in the init script.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Apr 27 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Work correctly, if port is a symlink (168611#c6).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Apr 25 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Fixed init script to behave correctly for port = auto (#168611).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Mar 24 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Typo fixes.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Mar 21 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Added D-BUS policy file (#159668).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Mar 20 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Support for UPS powerdown using HALT_POWERDOWN_INSERT.
|
|
|
|
|
- Added upsd-early-powerdown template and improved README.SUSE.
|
|
|
|
|
- Remove obsolete /etc/sysconfig/smartups in %%post.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Mar 17 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- README.SUSE fixes (Marius Tomaschewski).
|
|
|
|
|
- Init script fix.
|
|
|
|
|
- Install all driver manual pages.
|
|
|
|
|
- Use new powersave-notify path.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Mar 15 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Build all available drivers.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Mar 14 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Improved README.SUSE and predefined configuration.
|
|
|
|
|
- Checks and fixes in the init script.
|
|
|
|
|
- Improved notify flags, integrate with powersave.
|
|
|
|
|
(Some fixes provided by Marius Tomaschewski.)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Mar 10 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Fixed memset error in upsrw.c.
|
|
|
|
|
- Fixed upsmon typo in the init script.
|
|
|
|
|
- Preconfigure upsd with one local UPS as default.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Mar 09 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 2.0.3.
|
|
|
|
|
- Removed SuSEconfig, wrote new init script
|
|
|
|
|
(#27721, #141948, #156614).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Feb 20 2006 mmarek@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fix array index out of range
|
|
|
|
|
[#133610] (overflow.patch)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- converted neededforbuild to BuildRequires
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Jan 12 2006 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 2.0.3-pre2.
|
2008-12-15 13:57:44 +00:00
|
|
|
|
* Wed Nov 02 2005 dmueller@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- don't build as root
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Aug 01 2005 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 2.0.2.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Jan 21 2005 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 2.0.1-pre4.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Aug 23 2004 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 2.0.0.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Apr 19 2004 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- build with apache2
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Apr 14 2004 aj@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- build without kernel-source.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Mar 23 2004 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Force-define HID_MAX_USAGES (kernel 2.6.4 include file bug, should
|
|
|
|
|
be fixed in later kernels).
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Feb 09 2004 sbrabec@suse.cz
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Updated to version 1.4.1.
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Oct 02 2003 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- adapted pre-configuration and startscript to reflect changes
|
|
|
|
|
in 1.4.0
|
|
|
|
|
- changed file-permissions
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Sep 29 2003 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 1.4.0
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Aug 19 2003 mmj@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Add sysconfig metadata [#28939]
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Jun 26 2003 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 1.2.2
|
|
|
|
|
- removed config-check in init-script
|
2008-12-15 13:57:44 +00:00
|
|
|
|
* Fri Jun 20 2003 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- added directories to filelist
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue May 13 2003 mmj@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- use %%defattr
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Feb 20 2003 mmj@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Add sysconfig metadata [#22688]
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Aug 06 2002 olh@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- use X-UnitedLinux-Should-Start
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Aug 05 2002 olh@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Required-start: setserial, add Prereq
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Aug 02 2002 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- adapt server-root
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Sat Jul 27 2002 kukuk@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fix SuSEconfig.nut:
|
2007-02-25 22:32:45 +00:00
|
|
|
|
- don't include rc.config [Bug #17267]
|
|
|
|
|
- use correct path to sysconfig directory
|
2008-12-15 13:57:44 +00:00
|
|
|
|
* Fri Jul 26 2002 adrian@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fix neededforbuild
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue May 28 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.50.0
|
|
|
|
|
- changed init-script to use upsdrvctl
|
|
|
|
|
(make it possible to change config-files manually without
|
|
|
|
|
changing /etc/sysconfig/smartups)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Apr 09 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.45.5
|
|
|
|
|
- fixed SuSEconfig.nut to sysconfig scheme
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Feb 01 2002 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- changed neededforbuild <libpng> to <libpng-devel-packages>
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Sat Jan 12 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- little ifarch fix again :-(
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Jan 11 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- changed rc.config.d leftover in rcups
|
|
|
|
|
- build hidups on all archs excluding s390 (finally)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Jan 08 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- build hidups only on i386
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Jan 03 2002 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- build hidups driver for EXPERIMENTAL USB usage
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Dec 12 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- updated to 0.45.3
|
|
|
|
|
- removed START_SMARTUPS
|
|
|
|
|
- renamed package to nut
|
|
|
|
|
- b2zipped sources
|
|
|
|
|
- moved rc.config.d/smartups.rc.config -> sysconfig/smartups
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Oct 22 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed init-script to POWERDOWN correctly (#11909)
|
|
|
|
|
- added rc.config variable UPSLOG_INTERVAL
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Sep 18 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- changed STATEPATH to /var/lib/ups according to FHS (#8678)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Sep 07 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- added Conflicts: apcupsd
|
|
|
|
|
(/usr/local/httpd/cgi-bin/multimon.cgi is in both packages)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Sep 03 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- added a patch to be able to write the POWERDOWNFLAG to
|
|
|
|
|
only-root-writable directories
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Aug 13 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.45.1
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Jun 18 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.45.0
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Apr 27 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- minor changes in init-script to avoid premature aborts
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Apr 19 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- minor changes on %%config-files and %%clean
|
|
|
|
|
- changed upsd-exec-group to uucp
|
|
|
|
|
- added libjpeg freetype2 freetype2-devel xf86
|
|
|
|
|
to neededforbuild
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Apr 17 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- init-script cleanup: try-restart and exitcodes
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Mar 23 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.44.3
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Mar 16 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- minor changes in init-script and documentation
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Jan 04 2001 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.44.2
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Dec 14 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed case in rc-script
|
|
|
|
|
- move SuSE scripts and configs out of the diff
|
|
|
|
|
- minor changes in config for insserv (use macros)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Nov 27 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- moved /sbin/init.d -> /etc/init.d
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Nov 24 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- init script more LSB compliant
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Nov 22 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- improved runlevel position
|
|
|
|
|
- spec now uses %%{_tmppath}
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Nov 21 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- removed runlevel-links from spec-file and moved to insserv
|
|
|
|
|
- added init information to rc-script
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Nov 20 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- minor changes in rc-script (status)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Nov 15 2000 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed neededforbuild gdlib -> gd gd-devel
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Nov 09 2000 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- neededforbuild gd -> perl-GD
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Nov 08 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- adapted rc-script to use rc.status
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Oct 05 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed typo in SuSEconfig.smartups
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Sep 18 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- update to 0.44.1
|
|
|
|
|
- new spec-file (with buildroot etc.)
|
|
|
|
|
- fixed rc-script for server/client
|
|
|
|
|
- added SuSEconfig.smartups
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Sep 14 2000 stark@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed rc-script (added . /etc/rc.config)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Jul 11 2000 lemsi@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- bugfix in ups start-script
|
|
|
|
|
- changed /etc/rc.config to /etc/rc.config.d/smartups.rc.config
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Mon Feb 28 2000 kukuk@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- Move most variables from rc.config -> rc.config.d
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Feb 24 2000 lemsi@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- new version
|
|
|
|
|
- the orginal source is renamed, new name is nut-0.XX.X.tar.gz
|
|
|
|
|
- added 2 new variables in rc.config; GENERICUPS_MODEL; SMARTUPS_MASTER
|
|
|
|
|
- model check in rcups for genericups
|
|
|
|
|
- starting all 4 deamons in rcups
|
|
|
|
|
- new binary-installpath /usr/sbin
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Wed Nov 10 1999 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed postinstall: (its post and not pre)
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Tue Oct 26 1999 lemsi@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- added 2 new variables in rc.config; SMARTUPS_DEVICE; SMARTUPS_MODEL
|
|
|
|
|
- modified rcups and smartups.spec
|
|
|
|
|
- sending mail after instalation
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Fri Oct 15 1999 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- added libpng to neededforbuild (now needed for libgd)
|
2008-12-15 13:57:44 +00:00
|
|
|
|
* Thu Oct 14 1999 ro@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- fixed patch arg
|
2008-04-14 18:19:17 +00:00
|
|
|
|
* Thu Oct 14 1999 ray@suse.de
|
2007-01-15 23:27:08 +00:00
|
|
|
|
- new package
|