head 1.5; access; symbols pkgsrc-2026Q2:1.5.0.48 pkgsrc-2026Q2-base:1.5 pkgsrc-2026Q1:1.5.0.46 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.44 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.42 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.40 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.38 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.36 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.34 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.32 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.30 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.28 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.26 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.24 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.22 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.20 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.18 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.16 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.14 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.12 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.10 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.8 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.6 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.4 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.2 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.4.0.112 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.92 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.114 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.110 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.108 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.106 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.104 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.102 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.100 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.98 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.96 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.94 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.90 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.88 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.86 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.84 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.82 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.80 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.78 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.76 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.74 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.72 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.70 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.68 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.66 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.64 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.62 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.60 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.58 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.56 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.54 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.52 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.50 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.48 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.46 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.44 pkgsrc-2011Q3-base:1.4 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 2020.09.19.13.50.48; author taca; state Exp; branches; next 1.4; commitid 5Wq8qcCEfJ2taFoC; 1.4 date 2006.11.15.21.46.25; author bouyer; state Exp; branches; next 1.3; 1.3 date 2002.12.01.22.32.27; author bouyer; state Exp; branches; next 1.2; 1.2 date 2000.08.05.07.31.18; 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.1.1.1 date 2000.01.21.19.15.59; author bouyer; state Exp; branches; next ; desc @@ 1.5 log @sysutils/apcupsd: update to 3.14.14 Update apcupsd package to 3.14.14. 3.14.14 -- 31 May 2016 BUG FIXES * win32: Fix missing DLLs when installing only apctray * Fixes for socket error handling. Resolves apcaccess crash when connection fails as well as several other theoretical issues. * MODBUS/USB error handling (COMMLOST) improvements for faulty USB links * Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of /proc/bus/usb. This is necessary for switching between MODBUS/USB and USB/HID on Linux. * Update GPLv2 text and FSF address to match current versions from FSF. * Various fixes for potential issues suggested by Coverity Scan * MacOS X port support for El Capitan System Integrity Protection (SIP) aka "rootless" * Fix shutdown failure on Windows when UPSNAME includes spaces * Fix building bsd-usb driver (This was broken when modbus-usb support was added.) FEATURES * Add status display for output current as well as apparent power @ text @$NetBSD: patch-ac,v 1.4 2006/11/15 21:46:25 bouyer Exp $ * Use proper directory. --- include/defines.h.orig 2006-11-15 17:33:07.000000000 +0100 +++ include/defines.h 2006-11-15 17:33:22.000000000 +0100 @@@@ -52,7 +52,7 @@@@ * sure: is better have /blah//LCK.. than /blahLCK.. */ #define APC_LOCK_PREFIX "/LCK.." -#define LOCK_DEFAULT "/var/lock" +#define LOCK_DEFAULT "/var/spool/lock" /* * This string should be the first line of the configuration file. @ 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 3 a3 1 $NetBSD: patch-ac,v 1.3 2002/12/01 22:32:27 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-ac,v 1.2 2000/08/05 07:31:18 jlam Exp $ d3 4 a6 4 --- include/apc_defines.h.orig Sun Dec 1 13:24:41 2002 +++ include/apc_defines.h Sun Dec 1 13:24:45 2002 @@@@ -86,7 +86,7 @@@@ * -RF d13 1 a13 1 * JHNC: @ 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 32 --- include/apc_defines.h.orig Thu Jul 29 04:47:46 1999 +++ include/apc_defines.h Sat Aug 5 02:52:40 2000 @@@@ -68,6 +68,12 @@@@ #define PWRFAIL "/var/run/powerfail" #endif /* __freebsd__ */ +#ifdef __NetBSD__ +# define APCCONF "/etc/apcupsd.conf" +# define UPS_STAT "/var/run/apcupsd.status" +# define PWRFAIL "/var/run/powerfail" +#endif /* __NetBSD__ */ + #ifndef APCCONF #define APCCONF "/etc/apcupsd.conf" #endif @@@@ -82,7 +88,7 @@@@ #define NOLOGIN "/etc/nologin" #define APCPID "/var/run/apcupsd.pid" -#define LOG_FILE "/var/log/apcupsd.log" +#define LOG_FILE "/var/log/apcupsd" #if USE_TMP_DIRECTORY #define APC_RE_NET "/tmp/apcupsd.re-net" @@@@ -91,7 +97,7 @@@@ #endif /* USE_TMP_DIRECTORY */ #define APC_LOCK_PREFIX "/LCK.." -#define LOCK_DEFAULT "/var/lock" +#define LOCK_DEFAULT "/var/spool/lock" #define APC_MAGIC "apcupsd-linux-4.0" d12 2 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: $ d3 32 a34 15 --- apchttp.c Wed Apr 7 18:06:41 1999 +++ apchttp.c Sun Jul 18 19:50:58 1999 @@@@ -70,7 +70,6 @@@@ #include #include -#include #include #include #include @@@@ -80,6 +79,7 @@@@ #include #include #include +#include a35 2 /* apc includes */ #include @ 1.1.1.1 log @apcupsd, a daemon to manage and monitor APC UPSes. @ text @@