pkgsrc/sysutils/apcupsd/patches/patch-ab
bouyer 9d1c4a507a Update to 3.8.5. Summary of changes since 3.6.2:
. New network interface to publish to clients the UPS status
. New master/server network code that is more fault tolerant
. Internationalization
. Use GNU getopt
. Logging on syslog
. Events logged in a file like APC's PowerChute
. Sync code removed: now only async processes are used
. Updated documentation (HTTP version)
. Bug fixes and enhancements: too many to tell them all
. no more powersc script, is has been remplaced with apccontrol
. In master/slave configurations, all masters and slaves
  must be updated at the same time. Version 3.8.0 is not
  compatible with versions prior to 3.8.0-pre4.
. Support for the Back-UPS Office series of UPSes
. Fixed dumb UPSes working with the Custom Simple cable.
. Correction of a buffer overflow on certain newer UPSes.
. More fault tolerant on startup in master/slave configuration.
. Additional STATUS variables (number of times on battery,
  amount of time on batteries, time/date of last transfer to
  batteries, apcupsd start time/date).
. apctest program for testing serial ports.
. Automatic notification of certain events by email.
. Detects Self Test and reports it as such rather than a
  Power Failure.
. For SmartUPSes, apcupsd does a much better job of adapting
  to the actual features of the UPS and is more efficient.
. Add Battery Runtime Calibration to apctest
. UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name
  from UPS, if not found, uses hostname, finally "default".
. Added Ambient Temperature and Humidity to multimon (Carl Erhorn)

A number of the configuration statements have changed since versions 3.6.2.
You should either take the new apcupsd.conf file and modify it, or update your
existing file. In general, we recommend starting with the new file.

If you have used a prior version of apcupsd, the CONTROL script file
(/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol.
Consequently, the CONTROL configuration statement is obsolete. The following
configuration statements have been replaced by scripts called from
SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete:
BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD.
If you use the master/slave networking code, please be aware that the
2002-12-01 22:32:25 +00:00

64 lines
1.7 KiB
Text

$NetBSD: patch-ab,v 1.3 2002/12/01 22:32:27 bouyer Exp $
--- examples/apcupsd.master.conf.orig Sun Dec 1 13:17:57 2002
+++ examples/apcupsd.master.conf Sun Dec 1 13:20:07 2002
@@ -33,11 +33,11 @@
#
#DEVICE <string> /dev/<serial port>
# name of your serial port
-DEVICE /dev/ttyS0
+DEVICE /dev/tty01
#
#LOCKFILE <path to lockfile>
# path for serial port lock file
-LOCKFILE /var/lock
+LOCKFILE /var/spool/lock
#
#
#
@@ -80,7 +80,7 @@
# information server. If netstatus is on, a network information
# server process will be started for serving the STATUS and
# EVENT data over the network (used by CGI programs).
-NETSERVER on
+NETSERVER off
#
# SERVERPORT <port> default is 7000
# port to use for sending STATUS and EVENTS data over the network.
@@ -91,7 +91,7 @@
#
# If you want the last few EVENTS to be available over the network
# by the network information server, you must define an EVENTSFILE.
-EVENTSFILE /etc/apcupsd/apcupsd.events
+EVENTSFILE /var/log/apcupsd.events
#
#
#
@@ -102,7 +102,7 @@
STATTIME 0
#
# STATFILE
-STATFILE /etc/apcupsd/apcupsd.status
+STATFILE /var/run/apcupsd.status
#
#
# LOGSTATS [ on | off ] on enables, off disables
@@ -134,15 +134,15 @@
#
# UPSCLASS [ standalone | shareslave | sharemaster | netslave | netmaster ]
# normally standalone unless you share a UPS with multiple machines.
-UPSCLASS netmaster
+UPSCLASS standalone
#
# Unless you want to share the UPS (power multiple machines).
# this should be disable
# UPSMODE [ disable | share | net | sharenet ]
-UPSMODE net
+UPSMODE disable
#
#NETACCESS <string> [ true | false ] Enable Network Access Support
-NETACCESS true
+NETACCESS false
#
# NETTIME <int>
NETTIME 10