2.2.2

Tue May  6 11:13:42 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - configure.in: final version bump to 2.2.2.
 - m4/nut_check_libhal.m4: fix the HAL_CALLOUT_PATH for distcheck 
 
Mon May  5 12:15:31 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - clients/Makefile.am: fix the use of libupsclient

Sun May  4 12:45:32 UTC 2008 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - data/driver.list: added two models supported by megatec
 - drivers/megatec.c: don't show a temp reading if it's clearly bogus

Wed Apr 30 15:14:34 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - m4/nut_check_libhal.m4: fix the HAL addon install path on SuSE x86_64
   [backported from r1470] (from Stanislav Brabec, SuSE)
   
Wed Apr 30 07:38:24 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - packaging/opensuse/nut.spec.in: fix broken shell scripting
   [backported from r1466]

Tue Apr 29 08:46:53 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - packaging/opensuse: add packaging for SuSE / openSUSE
   [backported from r1464]

2.2.2-pre3

Fri Apr 25 15:39:33 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - configure.in: change version to 2.2.2-pre3.

Fri Apr 25 15:39:32 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - packaging/debian: synchronize with the official package and update
   according to the many changes in 2.2.2. For more information, refer to
   packaging/debian/changelog

Fri Apr 25 14:10:47 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - man/Makefile.am: smarter fix for libupsclient-config.1

Tue Apr 22 20:13:00 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 * clients/upsclient.[ch]:
   - add read buffer (so that we can read in larger chunks, instead of
     character by character) [ r1407 ]
   - the context buffer is now statically allocated (since we always
     need it) [ r1407 ]
   - code cleanup [ r1407 ]
   - functions in common/common.c will not be available to clients
     that are linked to the library [ r1452 ]

Tue Apr 22 19:45:34 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - man/Makefile.am: fix dependencies for libupsclient-config.1 and
   netxml-ups.8 [ backported r1452 ]

Tue Apr 22 17:58:12 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/usbhid-ups: only check once for input reports in
   upsdrv_updateinfo() to prevent lockups if the UPS floods the
   driver (some Tripplite units will generate one each time you
   ask them) [ backported r1450 ]

2.2.2-pre2

Mon Apr 14 12:21:21 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - configure.in: change version to 2.2.2-pre2.

Mon Apr 14 09:48:54 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: add internal fault as separate alarm status,
   removed unused status and alarm bits

Mon Apr 14 09:21:34 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - drivers/main-hal.c: fix a bitwising error on setup_signals.

Mon Apr 14 06:47:51 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: don't spam the syslog if we can't connect to
   the UPS

Sat Apr 12 20:17:04 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upssched.c: fix typo (clears wrong variable)

Sat Apr 12 07:08:49 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: backported from the trunk r1437 (re)connect timeout
   (add requirement for build neon >= 0.25.0)

Sat Apr  5 14:30:00 UTC 2008 / Alexander I. Gordeev <lasaine@lvk.cs.msu.su>

 - added several devices supported by megatec_usb to the compatibility
   list and udev script.

Sat Apr  5 14:13:30 UTC 2008 / Alexander I. Gordeev <lasaine@lvk.cs.msu.su>

 - drivers/megatec_usb.c: changed the default subdriver from agiler
   to agiler-old for several devices known for incompatibility with
   agiler subdriver.

Sat Apr  5 14:05:39 UTC 2008 / Alexander I. Gordeev <lasaine@lvk.cs.msu.su>

 - drivers/megatec_usb.c: (backported from trunk r1423)
   resurrected an old stable version of agiler subdriver.

Sat Apr  5 14:54:38 UTC 2008 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - data/drivers.list: added models supported by megatec and megatec_usb
 - drivers/megatec.c: backport from the trunk (better at handling bad data)

Sat Apr  5 13:49:46 UTC 2008 / Alexander I. Gordeev <lasaine@lvk.cs.msu.su>

 - drivers/megatec_usb.c: (backported from trunk r1168, r1211)
   added reconnect support.

Sat Apr  5 13:41:43 UTC 2008 / Alexander I. Gordeev <lasaine@lvk.cs.msu.su>

 - drivers/megatec_usb.c: (backported from trunk r1151)
   merged all functionality of get_data_krauler
   to set_data_krauler thus removing most sources of code duplication
   in krauler subdriver.

Wed Apr  2 20:09:41 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - common/state.[ch]: make the command list sorted (so that commands
   will be listed in alphabetic order by upscmd)

2.2.2-pre1

Wed Apr  2 14:22:02 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - configure.in: change version to 2.2.2-pre1.
 - UPGRADING: fix a typo

Tue Apr  1 09:03:20 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - include/Makefile.am: remove GNU Make extensions from rule to create
   nut_version.h, and handle case where svnversion does not exist.
   (backport from trunk, r1207, Charles Lepple)

Mon Mar 31 19:21:05 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: parameter checking would segfault on NULL
   pointers in upscli_read/sendline

Thu Mar 27 20:24:54 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: default to 5 seconds if pollinterval is not
   specified (to prevent overloading older NMCs by default)

Thu Mar 27 15:39:43 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - UPGRADING: prefer calling "upsmon -c fsd" for usbhid-ups testing
 
Wed Mar 26 09:47:32 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - ChangeLog: trimmed everything previous to 2.2.0

Wed Mar 26 09:47:32 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - NEWS, UPGRADING: completion for 2.2.2 release

Tue Mar 25 20:09:12 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: partially revert r1395 (breaks the LIST
   command, that depends on reading replies line-by-line)

Tue Mar 25 18:47:41 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: performance improvement

Tue Mar 25 18:40:00 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: lower read timeout from the default (neon)
   value of 60 seconds to 10 seconds (to prevent the server from
   declaring the driver stale)

Fri Mar 21 09:59:23 UTC 2008 / Arnaud Quette <ArnaudQuette@Eaton.com>

 - replace "--with-lib" by "--with-dev" since we now always distribute
   the shared version of libupsclient. This change allow to build and
   install the static version of libupsclient, along with its helpers
   and manpages.

Mon Mar 24 15:19:33 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - server/upsd.c: fix memory leak

Sun Mar 23 20:20:57 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: handle all communications with the server
   through upscli_sendline/readline to prevent blocking on I/O
   calls when the server is not responding (while still allowing
   it a couple of seconds to reply)

Sun Mar 23 20:00:29 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 * drivers/usbhid-ups:
   - changes in the way we tell the UPS to shutdown
   - reformatted hidparser
   - the variable passed to the conversion functions in the HID-to-NUT
     mapping is now a double and not a long anymore (to maintain
     resolution for non-integer values)
   - added some additional parameters and three phase support for the
     mge-hid subdriver

Thu Mar 20 20:11:55 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/netxml-ups: missing return statement caused the driver to
   ignore communication failures (will now report properly after three
   consecutive failures)

Tue Mar 18 10:31:42 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * Integrated Power Management (HAL integration)
   - general rework of {dstate,main}-hal.ch, using GMainLoop,
   - done some code cleaning and removal,
   - add support for DBus methods (with Shutdown and SetBeeper),
   - complete the documentation to mention the DBus (RW) interface.
     (backported from trunk, r1356)

Mon Mar 17 10:23:24 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/bestups: backport from the trunk (r1337) which added
   additional information and fixes 'battery.voltage.nominal'

Sat Mar  8 21:00:07 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/powerpanel: backport from the trunk (now includes support
   for the CyberPower OP series)

Sat Mar  8 20:01:24 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsc.c: reverse this change from r1322, that causes upsc
   to segfault when running it with the -l or -L options

Thu Mar  6 20:45:49 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - scripts/Makefile.am: this completes the backport of HAL support
   from the trunk

Wed Mar  5 22:01:06 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - scripts/hal/ups-nut-device.fdi: name was changed

Wed Mar  5 21:16:30 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - fix HAL support [Alioth Bug #304156] (backport from r1294)
 - only include target specific CFLAGS and LDFLAGS only if target is
   actually used (backport from r1296 and r1297)
 - add netxml-ups driver

Sat Mar  1 19:24:09 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/liebert-hid.c: Add support for some additional params.

Sat Mar  1 19:01:16 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: Use strtok_r() instead of strtok(), so that
   we don't accidentally interfer with the caller (strtok() is not
   guaranteed to be reentrant).

Mon Feb 25 20:38:45 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/hidparser.c: Allocate twice the maximum number of reports
   we expect (MAX_REPORTS), to allow for bogus/duplicate reports.

Mon Feb 25 12:34:32 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * data/driver.list:
   - add APC BACK-UPS XS LCD (reported by Chad Miller), (backport from trunk)
   - USB completion for Powerware (for PW5115 and PW9120)

Fri Feb 22 19:14:04 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/*.c: The upscli_disconnect() function does no longer LOGOUT
   from the server. Adding this to the clients that use this to prevent
   the server from logging warnings.

Fri Feb 22 19:12:20 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/skel.c: Added setvar function.

Fri Feb 22 18:45:54 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/mge-hid.c: HU_FLAG_ABSENT implies that the value isn't stored
   in the UPS, so the HU_FLAG_STATIC is redundant.
 - drivers/usbhid-ups.c: Allow changing server side variables (bugfix).

Tue Feb 19 13:05:00 UTC 2008 / Kjell Claesson <kjell.claesson@epost.tidanet.se>

 - Fix scripts/udev/nut-usbups.rules.in to include Powerware 5115 9120 and
   all the powerware using the PHOENIXTEC interface.

Fri Feb 15 15:29:08 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * Integrated Power Management (HAL integration):
   - fix the reporting of the battery technology,
   - fix the reporting of levels by adding a warning and a critical level,
   - report battery granularity,
   - only report the charging status if the battery charge is below 100 %,
   - report the current battery computed state (capacity_state),
   - report battery.alarm.{design,unit}

Thu Feb 14 08:47:32 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 - man/megatec_usb.8, man/upscode2.8, man/bcmxcp.8, man/bcmxcp_usb.8,
   man/solis.8, man/rhino.8: fix various errors (backport from the trunk r1304)

Wed Feb 13 19:47:32 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/genericups.c: output signal overrides must be handled
   in upsdrv_initups(), since we might go straight to upsdrv_shutdown()
   afterwards.

Wed Feb 13 02:10:27 UTC 2008 / Charles Lepple <clepple@gmail.com>

 - drivers/bestfcom.c: Patch from Chris Adams to accept output from older
   Ferrups models.

Fri Feb  8 19:56:23 UTC 2008 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - drivers/megatec.c: flush buffers before ser_send_*/ser_get_* to avoid a
   possible loss of synchronization if the buffer happens to have garbage.
 - drivers/megatec_usb.c: dummy ser_flush_io function to please megatec.

Fri Feb  8 07:08:49 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - common/common.c,include/common.h: cleanup and change the arguments
   to the upsdebug_hex() function so that it no longer requires casting
   to an unsigned char.

Mon Feb  4 08:33:02 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 - data/driver.list: list Nitram Elite 2005 with "powerpanel or nitram or
   cpsups" (backport from trunk and reported by Pierre-Louis Bonicoli)

Sun Feb  3 21:43:56 UTC 2008 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - man/megatec.8: updated from the trunk.

Sun Feb  3 21:34:23 UTC 2008 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - data/driver.list: A couple more models supported by megatec.
 - data/megatec.c: backport from the trunk.

Sun Feb  3 20:47:24 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/upsdrvctl.c: Pass "-u" flag to the driver also in shutdown
   mode. Print actual command line when debugging. [Peter Selinger]

Sun Feb  3 15:07:34 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsclient.c: Fix memory leak when connection to the server
   is lost 

Sun Feb  3 11:27:38 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/nitram.c: Array subscript out of range.

Sun Feb  3 11:21:16 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - drivers/libhid.c: Remove unused variable from HIDGetItemData() and
   HIDGetDataItem(). Discard reports with paths that end in 0x00000000
   when parsing INPUT reports. Display all reports in HIDDumpTree().
 - drivers/usbhid-ups.c: Don't use the data we receive through input
   reports, but retreive the feature report (only the report number is
   used to determine which one to get).

Sun Feb  3 10:36:36 UTC 2008 / Arjen de Korte <arjen@de-korte.org>

 - server/access.c: On x86 it is only valid to do a left shift operation
   for 0-31 bits, so the ACL 0.0.0.0/0 was broken. Reverted to the old
   method of calculating the CIDR bitmask. [Thomas Jarosch]

Fri Feb  1 22:04:30 UTC 2008 / Kjell Claesson <kjell.claesson@epost.tidanet.se>

 - drivers/bcmxcp.c, drivers/nut_usb.c, drivers/nut_usb.h: (backport from the trunk)
   Changed to version 0.14. Fix for PW5115 and PW9120 running on usb.

Fri Feb  1 15:22:04 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 - include/common.h: move the config.h include before timehead.h so
   that this last use it (thanks to Thomas Jarosch).

Tue Jan 29 13:54:36 UTC 2008 / Charles Lepple <clepple@gmail.com>

 - drivers/oneac.c, data/driver.list: (backport from the trunk) add updated
   Oneac driver, and round out the driver list for this driver.

Mon Jan 28 11:28:32 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * driver.list: (backport from the trunk) add compatibility information for
   - Atlantis Land and Mustek Powermust Office 650 (reported by
     Andrea Zicchetti)
   - Oneac XAU models

Sat Jan 26 21:16:45 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * clients/Makefile.am: backport from the trunk.
   - set libupsclient version to 1.0.0
   - use the shared version of libupsclient for LDADD
 - docs/protocol.txt: mention libupsclient

Sat Jan 26 21:16:45 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 - lib/Makefile.am: only install libupsclient-config if pkg-config support is
   disabled.
 - man/libupsclient-config.1: created (Debian Lintian QA report)

Fri Jan 18 14:03:01 UTC 2008 / Arnaud Quette <aquette.dev@gmail.com>

 * snmp-ups: backported from the trunk.
   - mgemib.h: add support for MGE* Environment Sensor (ref 66 846).
     This adds the data ambient.temperature and ambient.humidity.
   - snmp-ups.c: fix the handling of multiplier on ambient.temperature
     for units other than APC. Bump driver release to 0.421 since
     there are still differences with the trunk version.

2.2.1

Fri Dec 21 10:59:01 UTC 2007 / Arnaud Quette <arnaudquette@eaton.com>

 - Bump the release version to 2.2.1

2.2.1-pre2

Mon Dec 17 15:15:17 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - NEWS: more completion for the upcoming 2.2.1 release.

Sun Dec 16 20:19:36 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - Changed the default installation directory for pkg-config files,
   following a suggestion of Stanislav Brabec. The new default
   location is ${libdir}/pkgconfig. This is still configurable via
   the --with-pkgconfig-dir=PATH option and can be turned off with
   --without-pkgconfig-dir.

Sun Dec 16 20:10:41 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - conf/upssched.conf.sample: Insert STATEPATH into default PIPEFN
   and LOCKFN.

Sun Dec 16 19:53:51 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - conf/upsstats-single.html.sample, conf/upsstats.html.sample:
   The snmp driver reports 3-phase variables which APC's claims to
   support but returns junk for. Doing IFSUPP against the L2
   variables rather than the L1 ones. [George Ross]

Sun Dec 16 19:43:41 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - configure.in, m4/ax_create_stdint_h.m4: Added the AX_CREATE_STDINT_H
   macro to create our own header file with fixed width types.
 - <various>: Use above mentioned header file, instead of <stdint.h>.

Sun Dec 16 16:15:56 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/upshandler.h,dstate.h,dstate-hal.h: The return values for
   the setvar() and instcmd() handlers are now an enum value, to add
   return values easily.

Wed Dec 12 21:03:23 UTC 2007 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 * drivers/megatec.c: backported from the trunk.
   - the "ondelay" and "offdelay" parameters are now being honored
     when the UPS shuts down, like they should be.
   - rewrite documentation for "ondelay" since this timer starts
     counting the moment the UPS is turned off, and not the
     moment line power is restored.
   - Remove "ups.delay.start" and "ups.delay.shutdown" variables
     since they would only affect instant commands. Use only the
     driver parameters "ondelay" and "offdelay".

Wed Dec 12 20:29:51 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/apcsmart.[ch]: Add support for older Smart-UPS devices.

Wed Dec 12 20:22:39 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/usbhid-ups.c: Don't attempt to reconnect after receiving
   an unexpected error message, but instead just log a message and
   continue (this is in line with earlier behaviour).

Tue Dec 11 20:11:02 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - <various>: Include <stdint.h> where needed (and don't include it
   when not needed). Also make sure to only include it, if it exists.

Tue Dec 11 19:38:18 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/bestfcom.c: Delay values in ser_get_ functions used
   milliseconds instead of microseconds. Driver now also shows power
   values from the UPS (backported from trunk).

Tue Dec 11 19:35:45 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/tripplite-hid.c: Workaround for firmware bug in the AVR 550U
   where reading 'UPS.PowerSummary.iDeviceChemistry' string would crash
   the UPS (backported from trunk).

Mon Nov 26 13:45:06 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/tripplitesu.c: Fixed copy-paste error in this driver that
   dates back from the conversion to the new serial I/O functions a
   couple of years back.

Sun Nov  4 20:08:53 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/hidparser.c: Fix non-portable type conversions.

Thu Oct 18 17:51:07 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - data/drivers.list: add Belkin F6H375-USB compatibility through
   megatec_usb (depending on vendorid)

Mon Oct 15 11:14:06 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - data/drivers.list: add Powerware 9110 compatibility through upscode2

Mon Oct 15 08:12:28 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - scripts/udev/nut-usbups.rules.in: Make udev rules compatible with
   newer kernels compiled without CONFIG_USB_DEVICE_CLASS.

2.2.1-pre1

Tue Oct  2 12:04:27 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - Changelog: some reformating.
 - NEWS: completion for the upcoming 2.2.1 release.
 - data/driver.list: added MGE Office Protection Systems compatibility
   information for US models.
 - configure.in: change version to 2.2.1-pre1.

Fri Sep 28 15:56:17 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 Backported from the trunk:
 - improved usbhid-ups driver
 - support for the Liebert PowerSure Personal XT
 - naming change of the 'beeper.(on|off)' to 'beeper.(enable|disable|mute)'
 - coding changes without impact on the functional behaviour

Wed Sep 26 20:50:15 UTC 2007 / Kjell Claesson <kjell.claesson@epost.tidanet.se>

 - Changed the 'ups.voltage.nominal' to 'output.voltage.nominal' in bcmxcp driver.

Mon Sep 24 18:01:56 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - conf/upsmon.conf.sample: List the default values for NOTIFYMSG
   and NOTIFYFLAG. [Alioth Feature Requests #302016]

Tue Sep 18 18:13:36 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/usbhid-ups.c: Always check the validity of a HID-to-NUT
   mapping (instcmd and setvar). It's pointless to try to change a
   variable or execute a command that isn't valid for *this* UPS.

Wed Sep 12 22:09:11 UTC 2007 / Carlos Rodrigues <carlos.efr@mail.telepac.pt>

 - drivers/megatec.c: backported from the trunk.
 - drivers/megatec_usb.c: added ser_set_dtr/ser_set_rts stubs required
   by the megatec backport.
 - data/driver.list: added some models supported by megatec already
   listed in the trunk.

Tue Sep 11 14:21:17 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - clients/upsclient.h: add a typedef UPSCONN on UPSCONN_t since
   the renaming of the former broke the external client application
   compatibility. This is only temporary, and client applications
   will have to adapt their code, using pkg-config / libupclient-config
   and some #defines.
 - UPGRADING: add a (doubled for both 2.2.0 and 2.2.1) message to warn
   client applications developers of the above change.

Tue Sep 11 12:47:10 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - data/driver.list: Added MGE Office Protection Systems compatibility
   information.

Sun Sep  9 19:17:34 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/apcsmart.h: Missed this one in r1097.
 - drivers/serial.[ch]: Added handling modem control lines, to make
   backporting drivers from the trunk easier.
 - data/new-drivers.txt: Document new status flags and modem control
   line functions.

Sun Sep  9 18:43:51 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/tripplite_usb.c: Fix potential segfault.

Sat Sep  8 18:58:17 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - clients/upsmon.c: Only change the polling frequency if the OL/OB
   state changes.
 - data/driver.list: Added a couple of Belkin models as supported,
   as well as Jasuny USPS.
 - drivers/apc-hid.c: The vendor specific formatting modified the
   hd->Product that was passed to it (which should not happen here).
   Also changed 'ups.power.nominal' to 'ups.realpower.nominal' for
   some CyberPower UPS'es that support this.
 - drivers/apcsmart.c: Added support for some vintage UPS'es.
 - drivers/belkin-hid.c: Added two productid's for supported models,
   fixed memory leak in vendor specific formatting and fixed faulty
   input report for low battery that resurfaced now that we have a
   report buffer.
 - drivers/hidparser.c: Fix uninitialized data causing usbhid-ups to
   attempt to allocate vast amounts of memory and crashing the driver.
 - drivers/libhid.c: Fix some harmless memory leaks, lower time to
   wait for input reports and fixed physical<->logical conversion
   functions. Return from HIDDumpTree when nut_debug_level is too
   low to output the results to prevent delays while reading reports
   that are listed in the report descriptor, but are in fact not
   used/available.
 - drivers/libusb.c: Fix libusb_open function that leaks memory on
   every attempt to reconnect. Removed some unused variables.
 - drivers/mge-hid.c: Corrected wrong HID-to-NUT variable mapping and
   corrected logical error ('not zero' is not equivalent to 'equal to
   one').
 - drivers/upscode2.c: Removed alarm_init() and alarm_commit(), which
   are a no-op if alarm_set() is not in between.
 - drivers/usbhid-ups.c: Fix for Belkin low battery bug is now in the
   subdriver, fixed potential segfaults and minor memory leaks.
 - server/upsd.c: Don't check client filedescriptors we already know
   are no longer connected.
 - scripts/hal/20-ups-nut-device.fdi: Added missing entries.
 - scripts/hotplug/libhid.usermap: Added Belkin devices.
 - scripts/udev/nut-usbups.rules.in: Added Belkin devices.

Sat Sep  8 16:16:15 UTC 2007 / Kjell Claesson <kjell.claesson@epost.tidanet.se>

 * drivers/bcmxcp.c: 
   - Fix bug in shutdown function. Did not read shutdown time from ups.conf.
   - Changes to the alarm_init and alarm_commit (see previous commit by Arjen).
   - Add ToDo list in driver, And patch for loadsegment shutdown.
 * driver/bcmxcp_usb.c: Fixed cast in call to usb_interrupt_read.

Sat Sep  8 15:32:35 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - dstate.c: Previous update was wrong version. Fixed. Sorry about
   that.

Sat Sep  8 15:23:34 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - dstate.c, dstate-hal.c: simplified the way how alarms are handled.
   The status_commit() function should not be called *before*
   alarm_commit() to make this work.
 - gamatronic.c: implement the above.

Fri Sep  7 11:51:22 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - fixes the NUT versioning on exported SVN trees, due to i18n
   translation of the "exported" keyword. This resulted in
   <nut version>- instead of <nut version> only, without the "-"

Tue Jul 10 13:47:01 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - lib/libupsclient.pc.in, lib/libupsclient-config.in: fix a typo
   (missing "LIB" prefix on the SSL_*FLAGS)

2.2.0

Thu Jul  5 12:48:39 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 Final polishing:
 - NEWS: remove the reference to docs/packaging.txt
 - INSTALL: add a note about binary packages installation preference
   over source installation 
 - configure.in: bumped version number to 2.2.0

Mon Jul  2 14:47:14 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - mge-hid.c: fix battery.type (static data)
 - configure.in, libupsclient.pc: add some missing variables useful
   for external NUT applications (sysconfdir, statepath, nutuser)
 - hal/20-ups-nut-device.fdi: update unknow manufacturer name

Fri Jun 29 07:19:42 UTC 2007 / Arnaud Quette <aquette.dev@gmail.com>

 - libhid.c: fix Notification handling. It previously caused
   false online / on battery fluctuation with newhidups / usbhid-ups
   when no notification was received.

Tue Jun 26 19:39:55 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - docs/new-drivers.txt: Update to reflect changes in the way we
   deal with dstate_dataok() and dstate_datastale(). Historically
   it was needed to call these regularly, to prevent staleness
   warnings. This is no longer needed, now the server will PING
   drivers it has not heard of recently. If they answer with PONG,
   they won't be flagged stale anymore, no matter how long ago
   dstate_dataok() was called.

Tue Jun 26 19:14:17 UTC 2007 / Arjen de Korte <arjen@de-korte.org>

 - drivers/safenet.c: Don't hide call to dstate_dataok() in helper
   function.

*** File trimmed here 26 June 2007 ***

For entries before this point, start with version 2.2.1 and work back.
