head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.6 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.4 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.2 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.4.0.42 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.40 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.38 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.36 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.34 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.32 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.30 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.28 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.26 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.24 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.22 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.20 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.18 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.16 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.14 pkgsrc-2008Q1:1.4.0.12 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.10 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.8 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.6 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.4 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.2 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.3.0.26 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.24 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.22 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.20 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.18 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.16 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.14 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.12 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.10 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.8 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.6 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.4 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.2 netbsd-1-6-1-base:1.3 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2011.08.01.14.54.51; author bouyer; state dead; branches; next 1.4; 1.4 date 2006.11.15.21.46.25; author bouyer; state Exp; branches 1.4.42.1; next 1.3; 1.3 date 2002.12.01.22.32.26; author bouyer; state Exp; branches; next 1.2; 1.2 date 2000.08.05.07.31.17; author jlam; state Exp; branches; next 1.1; 1.1 date 2000.01.21.19.15.59; author bouyer; state Exp; branches 1.1.1.1; next ; 1.4.42.1 date 2011.08.07.09.39.48; author tron; state dead; branches; next ; 1.1.1.1 date 2000.01.21.19.15.59; author bouyer; state Exp; branches; next ; desc @@ 1.5 log @Update to 3.14.9. Dragonfly users, please test that is still builds ! pkgsrc change: as snmp support doesn't depend on net-snmp anymore, remove snmp option and always build snmp support. cgi option now depend on graphics/gd/ User-visible changes sinces 3.14.3: 2010-08-30 14:18 adk0212 * src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp: Add support for MGE SNMP MIB. Contributed by Lars Täer 2010-07-30 18:04 adk0212 * src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h, rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h: Add support for RFC1628 SNMP MIB. Refactor APC MIB and create MibStrategy struct for associating MIB/CI mapping with corresponding processing function. RFC1628 strategy is coded per the MIB but untested. 2010-01-10 10:29 adk0212 * include/defines.h, src/apctest.c, src/drivers/usb/usb.c: Add apctest support for reading/setting self-test interval on USB. Also show current setting in UPS status. Contributed by James Belleau 2009-10-25 11:03 adk0212 * configure, autoconf/config.h.in, autoconf/configure.in, autoconf/variables.mak.in, include/struct.h, platforms/etc/apcupsd.conf.in, src/drivers/Makefile, src/drivers/drivers.c, src/drivers/snmplite/Makefile, src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h, src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp, src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp, src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c, src/lib/apcstatus.c: Add SNMP Lite driver which does not depend on net-snmp library. This makes it more portable and eliminates need to move libsnmp.so to /lib in order to do a killpower on systems where /usr is unmounted. 2009-09-01 20:30 adk0212 * src/apctest.c: Implement battery calibration in apctest for USB models. Thanks to James Belleau for the original implementation which has been modified somewhat in this commit. 2009-05-02 10:30 adk0212 * src/action.c: Change log level of UPS self-test messages to WARNING from ALERT. Given that self-test messages are routine, they do not belong at LOG_ALERT. Contributed by Dave Ewart . 2009-04-25 10:58 adk0212 * src/lib/apcconfig.c: Remove EVENTFILE, EVENTFILEMAX config directives. These were replaced by the plural versions that are in use today (EVENTSFILE, EVENTSFILEMAX) almost 10 years ago. It's time to kill the old names. (h/t Trevor Roydhouse ) 2009-03-02 17:48 adk0212 * doc/apcupsd.man, include/drivers.h, include/extern.h, src/action.c, src/apctest.c, src/apcupsd.c, src/device.c, src/options.c, src/drivers/drivers.c, src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c, src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c, src/drivers/usb/usb.h, src/lib/apclock.c: Add support for turning the UPS off completely. This complements existing hibernate (aka killpower) functionality. Turn-off is implemented for apcsmart and USB drivers, subject to support for the relevant commands in the UPS itself. Contributed by Keith Campbell . 2008-06-29 11:12 adk0212 * src/action.c: Fix bug in LOWBATT glitch handling. We must examine LOWBATT for changes every time thru the status loop, not just during the OnBattery state. Otherwise we can miss the initial LOWBATT assertion, which defeats the glitch rejection logic. 2008-05-06 20:16 skoona * src/gapcmon/gapcmon.c: Corrected the use of NOMPOWER and the calc of current usage amount 2008-05-04 11:13 adk0212 * src/drivers/usb/usb.c: Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes (RS 500) report decivolts instead of volts. Reported by Kirill S. Bychkov . 2008-01-27 12:00 adk0212 * include/struct.h, platforms/etc/apcupsd.conf.in, platforms/mingw/apcupsd.conf.in, src/device.c, src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c, src/lib/apcconfig.c: Add POLLTIME directive to control UPS polling interval. NETTIME is accepted as a synonym for compatibility with old config files. @ text @$NetBSD: patch-aa,v 1.4 2006/11/15 21:46:25 bouyer Exp $ --- doc/apcupsd.man.orig 2005-09-13 14:34:36.000000000 +0200 +++ doc/apcupsd.man 2006-11-15 17:30:21.000000000 +0100 @@@@ -8,15 +8,15 @@@@ .SH NAME apcupsd \- daemon for most APC's UPS for Linux .SH SYNOPSIS -.B /sbin/apcupsd +.B @@@@PREFIX@@@@/sbin/apcupsd .br -.B /etc/apcupsd/apccontrol +.B @@@@SYSCONFDIR@@@@/apcupsd/apccontrol .br -.B /etc/apcupsd/apcupsd.conf +.B @@@@SYSCONFDIR@@@@/apcupsd/apcupsd.conf .br -.B /sbin/apcaccess +.B @@@@PREFIX@@@@/sbin/apcaccess .br -.B /sbin/apcnetd +.B @@@@PREFIX@@@@/sbin/apcnetd .br .SH DESCRIPTION .LP @@@@ -38,7 +38,7 @@@@ conditions is met, apcupsd will inform users about this fact. The shutdown is made by script calls to -"/etc/apcupsd/apccontrol", which is called by "apcupsd". +"@@@@SYSCONFDIR@@@@/apcupsd/apccontrol", which is called by "apcupsd". Consequently, no changes to /etc/inittab are necessary. There is no communication between apcupsd and init(1) process. Apcupsd modifies the halt script so that at the end of the shutdown @@@@ -75,7 +75,7 @@@@ .TP .B \-c --configure Attempts to configure the UPS EPROM to the values specified in the -configuration file "/etc/apcupsd/apcupsd.conf". +configuration file "@@@@SYSCONFDIR@@@@/apcupsd/apcupsd.conf". This option is now deprecated (not supported) and should not be used. Instead use the apctest program, which has an interactive EEPROM configuration. @@@@ -85,7 +85,7 @@@@ .TP .B \-f --config-file Specifies the location of the configuration file. The default -is: /etc/apcupsd/apcupsd.conf +is: @@@@SYSCONFDIR@@@@/apcupsd/apcupsd.conf .TP .B \-k --killpower Attempt to turn the UPS off. This option is normally only @@@@ -100,12 +100,12 @@@@ .SH CONFIGURATION It may be necessary to change the configuration information in the file -"/etc/apcupsd/apcupsd.conf" to meet your needs and to correspond to your +"@@@@SYSCONFDIR@@@@/apcupsd.conf" to meet your needs and to correspond to your configuration. This file is a plain ASCII file and you can use your favorite editor to change it. .LP Configuration commands in -.B /etc/apcupsd/apcupsd.conf +.B @@@@SYSCONFDIR@@@@/apcupsd.conf are: .LP @@@@ -399,7 +399,7 @@@@ are disabled or set to default values. Currently, there is not a known way for early signals to be sent to BASIC Ports. MINUTES are set to 0. .SH FILES -.B /etc/apcupsd/apcupsd.conf +.B @@@@SYSCONFDIR@@@@/apcupsd/apcupsd.conf - configuration file. .br .B /var/log/apcupsd.status @@@@ -415,9 +415,9 @@@@ These events are sent to the system log, optionally sent to the temporary events file (/var/log/apcupsd.events), -and they also generate a call to /etc/apcupsd/apccontrol +and they also generate a call to @@@@SYSCONFDIR@@@@/apcupsd/apccontrol which in turn will call any scripts you have placed in the -/etc/apcupsd directory. +@@@@SYSCONFDIR@@@@/apcupsd directory. .SH DATA format If the DATATIME configuration command is set nonzero, @ 1.4 log @Update to 3.12.4. Summary of changes since 3.8.6: * Support for USB UPSe (not enabled in pkgsrc) * new networking driver (net) that uses the NIS interface rather than the older master/slave networking * The apctest program has been enhanced to do EEPROM programming in a much more interactive way than the prior versions. * Added a ONBATTERYDELAY config, time to switch to onbattery state after a power failure. New event "offbattery", which is the same as mainsback but only sent if we got to state onbattery * new snmp driver, with trap support. * Battery disconnect and reconnect events @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2002/12/01 22:32:26 bouyer Exp $ @ 1.4.42.1 log @Pullup ticket #3493 - requested by bouyer sysutils/apcupsd: build fix Revisions pulled up: - sysutils/apcupsd/Makefile 1.62 - sysutils/apcupsd/PLIST 1.13 - sysutils/apcupsd/distinfo 1.15 - sysutils/apcupsd/options.mk 1.3 - sysutils/apcupsd/patches/patch-aa deleted - sysutils/apcupsd/patches/patch-ae 1.7 - sysutils/apcupsd/patches/patch-af 1.7 - sysutils/apcupsd/patches/patch-ag 1.5 - sysutils/apcupsd/patches/patch-ai 1.5 - sysutils/apcupsd/patches/patch-aj 1.8 - sysutils/apcupsd/patches/patch-al 1.5 - sysutils/apcupsd/patches/patch-an 1.6 - sysutils/apcupsd/patches/patch-ao 1.7 --- Module Name: pkgsrc Committed By: bouyer Date: Mon Aug 1 14:54:51 UTC 2011 Modified Files: pkgsrc/sysutils/apcupsd: Makefile PLIST distinfo options.mk pkgsrc/sysutils/apcupsd/patches: patch-ae patch-af patch-ag patch-ai patch-aj patch-al patch-an patch-ao Removed Files: pkgsrc/sysutils/apcupsd/patches: patch-aa Log Message: Update to 3.14.9. Dragonfly users, please test that is still builds ! pkgsrc change: as snmp support doesn't depend on net-snmp anymore, remove snmp option and always build snmp support. cgi option now depend on graphics/gd/ User-visible changes sinces 3.14.3: 2010-08-30 14:18 adk0212 * src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp: Add support for MGE SNMP MIB. Contributed by Lars Täer 2010-07-30 18:04 adk0212 * src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h, rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h: Add support for RFC1628 SNMP MIB. Refactor APC MIB and create MibStrategy struct for associating MIB/CI mapping with corresponding processing function. RFC1628 strategy is coded per the MIB but untested. 2010-01-10 10:29 adk0212 * include/defines.h, src/apctest.c, src/drivers/usb/usb.c: Add apctest support for reading/setting self-test interval on USB. Also show current setting in UPS status. Contributed by James Belleau 2009-10-25 11:03 adk0212 * configure, autoconf/config.h.in, autoconf/configure.in, autoconf/variables.mak.in, include/struct.h, platforms/etc/apcupsd.conf.in, src/drivers/Makefile, src/drivers/drivers.c, src/drivers/snmplite/Makefile, src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h, src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp, src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp, src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c, src/lib/apcstatus.c: Add SNMP Lite driver which does not depend on net-snmp library. This makes it more portable and eliminates need to move libsnmp.so to /lib in order to do a killpower on systems where /usr is unmounted. 2009-09-01 20:30 adk0212 * src/apctest.c: Implement battery calibration in apctest for USB models. Thanks to James Belleau for the original implementation which has been modified somewhat in this commit. 2009-05-02 10:30 adk0212 * src/action.c: Change log level of UPS self-test messages to WARNING from ALERT. Given that self-test messages are routine, they do not belong at LOG_ALERT. Contributed by Dave Ewart . 2009-04-25 10:58 adk0212 * src/lib/apcconfig.c: Remove EVENTFILE, EVENTFILEMAX config directives. These were replaced by the plural versions that are in use today (EVENTSFILE, EVENTSFILEMAX) almost 10 years ago. It's time to kill the old names. (h/t Trevor Roydhouse ) 2009-03-02 17:48 adk0212 * doc/apcupsd.man, include/drivers.h, include/extern.h, src/action.c, src/apctest.c, src/apcupsd.c, src/device.c, src/options.c, src/drivers/drivers.c, src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c, src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c, src/drivers/usb/usb.h, src/lib/apclock.c: Add support for turning the UPS off completely. This complements existing hibernate (aka killpower) functionality. Turn-off is implemented for apcsmart and USB drivers, subject to support for the relevant commands in the UPS itself. Contributed by Keith Campbell . 2008-06-29 11:12 adk0212 * src/action.c: Fix bug in LOWBATT glitch handling. We must examine LOWBATT for changes every time thru the status loop, not just during the OnBattery state. Otherwise we can miss the initial LOWBATT assertion, which defeats the glitch rejection logic. 2008-05-06 20:16 skoona * src/gapcmon/gapcmon.c: Corrected the use of NOMPOWER and the calc of current usage amount 2008-05-04 11:13 adk0212 * src/drivers/usb/usb.c: Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes (RS 500) report decivolts instead of volts. Reported by Kirill S. Bychkov . 2008-01-27 12:00 adk0212 * include/struct.h, platforms/etc/apcupsd.conf.in, platforms/mingw/apcupsd.conf.in, src/device.c, src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c, src/lib/apcconfig.c: Add POLLTIME directive to control UPS polling interval. NETTIME is accepted as a synonym for compatibility with old config files. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2006/11/15 21:46:25 bouyer Exp $ @ 1.3 log @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 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2000/08/05 07:31:17 jlam Exp $ d3 3 a5 8 --- doc/apcupsd.man.orig Fri Feb 2 23:46:33 2001 +++ doc/apcupsd.man Sun Dec 1 13:13:59 2002 @@@@ -4,19 +4,19 @@@@ .\" LP paragraph .\" IP indented paragraph .\" TP hanging label -.TH apcupsd 8 "APC UPS management under Linux -- November 1999" +.TH apcupsd 8 "APC UPS management under Unix -- November 1999" d7 1 a7 2 -apcupsd \- daemon for most APC's UPS for Linux +apcupsd \- daemon for most APC's UPS for Unix d9 2 a10 2 -.B /sbin/apcupsd +.B @@@@PREFIX@@@@/sbin/apcupsd d13 1 a13 1 +.B @@@@SYSCONFDIR@@@@/apccontrol d16 1 a16 1 +.B @@@@SYSCONFDIR@@@@/apcupsd.conf d26 2 a27 12 @@@@ -29,7 +29,7 @@@@ above shutdown conditions is met, "apcupsd" will inform users about this fact. -The shutdown is made by script calls to "/etc/apcupsd/apccontrol", which +The shutdown is made by script calls to "@@@@SYSCONFDIR@@@@/apccontrol", which is called by "apcupsd". Consequently, no changes to /etc/inittab are necessary. There is no communication between "apcupsd" and init(1) process. Apcupsd modifies the halt script so that at the end of the shutdown @@@@ -50,22 +50,18 @@@@ has a network connection with the slaves and sends them information about the UPS status. d29 7 a35 5 -.LP -RedHat and S.u.S.E. versions of Linux have direct install support. All -other "FLAVORS" of Linux will need some fussing with to get the install -correct. .SH OPTIONS d40 5 a44 4 +configuration file "@@@@SYSCONFDIR@@@@/apcupsd.conf". .TP .B \-d --debug Turns on debugging output for a NETSLAVE or a NETMASTER. d49 1 a49 1 +is: @@@@SYSCONFDIR@@@@/apcupsd.conf d53 1 a53 10 @@@@ -74,7 +70,7 @@@@ .TP .B \-n --rename-ups Attempts to change the UPS name stored in the UPS EPROM -to that specified in your "/etc/apcupsd/apcupsd.conf" file. +to that specified in your "@@@@SYSCONFDIR@@@@/apcupsd.conf" file. .TP .B \-u --update-battery-date Attempts to update the battery date stored in the UPS EPROM. Normally @@@@ -88,12 +84,12 @@@@ d68 3 a70 12 @@@@ -131,7 +127,7 @@@@ -- .br Please specify which device is used for UPS communication. -The default is /dev/ttyS[0|1|2|3]. +The default is /dev/tty0[0|1|2|3]. .LP .B LOCKFILE -- @@@@ -615,13 +611,13 @@@@ .br 940-0023A Simple Signal UNIX, [BROKEN STILL]. d73 1 a73 1 +.B @@@@SYSCONFDIR@@@@/apcupsd.conf d76 2 a77 11 -.B /etc/apcupsd/apcupsd.status +.B /var/run/apcupsd.status - STATUS file .br -.B /etc/apcupsd/apcupsd.events +.B /var/log/apcupsd.events - where up to the last 50 events are stored for the network information server. .SH EVENTS @@@@ -630,8 +626,8 @@@@ ... d80 1 a80 1 -to the temporary events file (/etc/apcupsd/apcupsd.events), d82 1 a82 2 +to the temporary events file (/var/run/apcupsd.events), +and they also generate a call to @@@@SYSCONFDIR@@@@/apccontrol d84 2 a85 1 /etc/apcupsd directory. d87 2 @ 1.2 log @Update apcupsd to 3.6.2. Package provided by Greg Woods in pkg/10552. Changes from version 3.5.8: Network is fully functional under non-threaded compile. Possible fix for "pipe_master_status" calls on slaves. Added 940-1524C smart signal cable support. Added internationalization support. There is _only_ the support but no current code is written for the intl package. It can be compiled in, but intl strings have still to be translated (to be done in the future). Added new configuration options to reduce init time of daemon. powersc CONFIG powersc NAME powersc BATTERY Fixes a FIFO error @ text @d1 1 a1 1 $NetBSD$ d3 8 a10 3 --- doc/apcupsd.man.orig Thu Jul 29 03:46:32 1999 +++ doc/apcupsd.man Sat Aug 5 02:52:40 2000 @@@@ -8,13 +8,13 @@@@ d12 2 a13 1 apcupsd \- daemon for Most APCC's UPS support under Linux d18 2 a19 2 -.B /sbin/powersc +.B @@@@PREFIX@@@@/sbin/powersc d21 2 a22 1 .B /etc/apcupsd.conf d25 5 a29 1 +.B @@@@PREFIX@@@@/bin/apcaccess d32 45 a76 11 This daemon can be used for controlling the APC SmartUPS. During a power @@@@ -23,7 +23,7 @@@@ about this fact. If power is not restored, a system shutdown will follow when the battery is exausted, a timeout (seconds) expires, or runtime minutes based on internal values based on power consumption rates. The -whole shutdown is now made by script calls to the "/sbin/powersc" +whole shutdown is now made by script calls to the "@@@@PREFIX@@@@/sbin/powersc" file called by "apcupsd", so no changes in the inittab are necessary. There is now no communication between "apcupsd" and init(1) process. .LP @@@@ -46,7 +46,7 @@@@ d78 5 a82 4 It is necessary to write configuration info to the file "/etc/apcupsd.conf". This file is a plain ASCII file and you can use your favorite editor for -configuration. For simple configuration, see enclosed sample file. +configuration. For simple configuration, see sample file in @@@@PREFIX@@@@/etc d85 4 a88 2 .B /etc/apcupsd.conf @@@@ -54,7 +54,7 @@@@ d90 1 a90 8 .B CONTROL -- -.B /sbin/powersc +.B @@@@PREFIX@@@@/sbin/powersc .br Name of control script called by "apcupsd". .LP @@@@ -121,7 +121,7 @@@@ d99 1 a99 15 @@@@ -163,7 +163,7 @@@@ --