head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.46 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.44 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.42 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.40 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.38 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.36 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.34 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.32 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.30 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.28 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.26 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.24 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.22 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.20 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.18 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.16 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.14 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.12 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.10 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.8 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.6 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.4 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.2 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.6.0.108 pkgsrc-2020Q2-base:1.6 pkgsrc-2020Q1:1.6.0.88 pkgsrc-2020Q1-base:1.6 pkgsrc-2019Q4:1.6.0.110 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.6.0.106 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.6.0.104 pkgsrc-2019Q2-base:1.6 pkgsrc-2019Q1:1.6.0.102 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.100 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.98 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.96 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.94 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.92 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.90 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.86 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.84 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.82 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.80 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.78 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.76 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.74 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.72 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.70 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.68 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.66 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.64 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.62 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.60 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.58 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.56 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.54 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.52 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.50 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.48 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.46 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.44 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.42 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.40 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.38 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.36 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.34 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.32 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.30 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.28 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.26 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.24 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.22 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.20 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.18 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.16 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.14 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.12 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.10 pkgsrc-2008Q1:1.6.0.8 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.6 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.4 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.2 pkgsrc-2007Q2-base:1.6 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.7 date 2020.09.19.13.50.48; author taca; state Exp; branches; next 1.6; commitid 5Wq8qcCEfJ2taFoC; 1.6 date 2007.06.15.21.15.39; author bouyer; state Exp; branches; next 1.5; 1.5 date 2007.06.15.19.05.56; author bouyer; state Exp; branches; next 1.4; 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.7 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-ab,v 1.6 2007/06/15 21:15:39 bouyer Exp $ * Accept connection from localhost default. * Use proper directory. --- platforms/etc/apcupsd.conf.in.orig 2007-06-15 22:21:18.000000000 +0200 +++ platforms/etc/apcupsd.conf.in 2007-06-15 22:28:16.000000000 +0200 @@@@ -180,7 +180,7 @@@@ # NIS will listen for connections only on that interface. Use the # loopback address (127.0.0.1) to accept connections only from the # local machine. -NISIP @@NISIP@@ +NISIP 127.0.0.1 # NISPORT default is 3551 as registered with the IANA # port to use for sending STATUS and EVENTS data over the network. @@@@ -191,7 +191,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 @@LOGDIR@@/apcupsd.events +EVENTSFILE /var/db/apcupsd.events # EVENTSFILEMAX # By default, the size of the EVENTSFILE will be not be allowed to exceed @@@@ -231,7 +231,7 @@@@ STATTIME 0 # Location of STATUS file (written to only if STATTIME is non-zero) -STATFILE @@LOGDIR@@/apcupsd.status +STATFILE /var/run/apcupsd.status # LOGSTATS [ on | off ] on enables, off disables # Note! This generates a lot of output, so if @ 1.6 log @Use a more up-to-date config file as example Add rc.d keywords to the startup script both suggested by Bernd Ernesti. @ text @d1 4 a4 1 $NetBSD: patch-ab,v 1.5 2007/06/15 19:05:56 bouyer Exp $ @ 1.5 log @Update to 3.14.1, based on patches sent in PR pkg/35594 and pkg/36246. As a side effect this should make apcupsd build on netbsd-4 and current. pkgsrc changes: cgi and snmp are now enabled by default. Relevant changes since 3.12.4: Unreliable MASTER/SLAVE networking mode is removed PowerChute Network Shutdown driver (protocol available in the AP9617 family of smart slot modules) New configuration directives to set paths at runtime @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2006/11/15 21:46:25 bouyer Exp $ d3 10 a12 167 --- examples/apcupsd.master.conf.orig 2002-05-28 15:34:19.000000000 +0200 +++ examples/apcupsd.master.conf 2007-06-15 17:12:48.000000000 +0200 @@@@ -1,78 +1,120 @@@@ ## apcupsd.conf v1.1 ## -# -# for apcupsd release 3.8.0 -# -# "apcupsd" POSIX config file -# -# If you have used a prior version of apcupsd, the CONTROL script file -# (/sbin/powersc) has now been replaced by /etc/apcupsd/apccontrol. -# Consequently, the CONTROL configuration statement is obsolete. -# The following configuration statements have been replaced by scripts -# called from /etc/apcupsd/apccontrol, and thus are obsolete: -# BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, -# and TIMECMD. # +# for apcupsd release 3.10.6 (10 October 2003) - freebsd # +# "apcupsd" POSIX config file # # ========= General configuration parameters ============ # +# UPSNAME xxx +# Use this to give your UPS a name in log files and such. This +# is particulary useful if you have multiple UPSes. This does not +# set the EEPROM. +#UPSNAME +# # UPSCABLE [ simple | smart | -# 940-00(20B,23A,24B,24C,24G,95A,95B,95C) | +# 940-00(20B,20C,23A,24B,24C,24G,95A,95B,95C) | # 940-15(24C) | -# ether ] +# ether, usb ] # defines the type of cable that you have. UPSCABLE smart # +# Old types, still valid, are mapped to the new generic drives +# automatically # UPSTYPE [ backups | sharebasic | netups | # backupspro | smartvsups | # newbackupspro | backupspropnp | # smartups | matrixups | sharesmart ] +# +# *** NEW TYPES FOR GENERIC DRIVERS *** +# UPSTYPE [ dumb | apcsmart | net | usb | snmp | test] # defines the type of UPS you have. UPSTYPE smartups # # #DEVICE /dev/ -# name of your serial port -DEVICE /dev/ttyS0 +# name of your UPS device +# +# Here a table of the possible devices related with the UPS drivers. +# +# NOTE!!! for USB devices, please use a form indicated below +# including the [0-15] as written! +# +# Driver Device Description +# dumb /dev/tty** Serial character device +# apcsmart /dev/tty** Serial character device +# usb /dev/usb/hid/hiddev[0-15] If you follow our naming scheme +# usb /dev/usb/hiddev[0-15] On some systems +# net hostname:port Network link to a master apcupsd +# through NIS +# snmp hostname:port:vendor:community +# SNMP Network link to an SNMP-enabled +# UPS device. Vendor is the MIB used by +# the UPS device: can be "APC" or "RFC" +# where APC is the powernet MIB and RFC +# is the IETF's rfc1628 UPS-MIB. +# Port is usually 161. +DEVICE /dev/tty01 # #LOCKFILE # path for serial port lock file -LOCKFILE /var/lock +LOCKFILE /var/spool/lock # # # # ======== configuration parameters used during power failures ========== # -# BATTERYLEVEL 10 +# Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so +# the first that occurs will cause the initation of a shutdown. +# +# If during a power failure, the remaining battery percentage +# (as reported by the UPS) is below or equal to BATTERYLEVEL, +# apcupsd will initiate a system shutdown. BATTERYLEVEL 5 # -# MINUTES