In recent sysutils/apcupsd package versions the apcaccess tool has been "downsized" to its minimal "status" functionality, thus the developer(s) have stripped down a lot of code from it -- from the Changelog:
2007-08-03 11:17 adk0212
Remove lots of obsolete code. 'status' is now the only supported
However, together with this "downsizing" operation some critical functionality: the tools is not able anymore to fetch the apcuspd daemon binding point (host:port) from its configuration file; by default it can query only the localhost:3551 address.
This will impact running the tool for non-default apcupsd configurations. While it previously was able to correctly read daemon binding point from the configuration file, it can no longer do so in the new versions.
Fix: I have backported some minimal code from the 3.12.4 sources to restore the missing functionality (reading host:port configuration from the configuration file). See patch attached (raises PORTREVISION).
Patch attached with submission follows:
How-To-Repeat: Configure your apcupsd daemon (in /usr/local/etc/apcupsd/apcupsd.conf) to run on a non-default IP and/or port. Running the "apcaccess [status]" command will fail now, including when ran from the default-action scripts like "commok" , "offbattery, "onbattery", etc. This will show up in email reports and web interface.
Over to maintainer (via the GNATS Auto Assign Tool)
itetcu 2008-03-31 17:21:57 UTC
FreeBSD ports repository
sysutils/apcupsd Makefile distinfo
- update to 3.14.3
- more OPTIONS to let the user choose what he needs to have compiled
- don't allow drivers to be compiled if user wants only the client
- chase netsnmp shared lib version
- provide internationalization support
- provide backup location on my server for the pdf manual and don't IGNORE the
file in distinfo anymore
- patch apcaccess to be able to fetch the host:port from the config file 
- add patch to allow usb driver to compile 
PR: ports/121141 
Submitted by: Adrian Penisoara , Stefan Lambrev 
Revision Changes Path
1.55 +85 -17 ports/sysutils/apcupsd/Makefile
1.22 +6 -5 ports/sysutils/apcupsd/distinfo
1.1 +51 -0 ports/sysutils/apcupsd/files/patch-src__apcaccess.c (new)
1.1 +32 -0 ports/sysutils/apcupsd/files/patch-src__drivers__usb__bsd__bsd-usb.c (new)
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"