BSD Ports

sysutils/apcupsd 3.14.14_6 FreeBSD

Set of programs for controlling APC UPS

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
sysutils
Package size
166.0 KiB, 567.9 KiB installed

Description

"apcupsd" can be used for controlling all APC UPS models

It can monitor and log the current power and battery status, perform automatic shutdown, and can run in network mode in order to power down other hosts on a LAN

In the other systems

SystemPortVersion
FreeBSDsysutils/apcupsd3.14.14_6
OpenBSDsysutils/apcupsd3.14.14p7
NetBSDsysutils/apcupsd3.14.14nb10
DragonFlysysutils/apcupsd3.14.14_6

Install

Binary package:

pkg install apcupsd

From the ports tree:

cd /usr/ports/sysutils/apcupsd/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	apcupsd>0:sysutils/apcupsd

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.14.14_63.14.14_63.14.14_43.14.14_63.14.14_6
FreeBSD:14:quarterly3.14.14_63.14.14_6n/a3.14.14_63.14.14_6
FreeBSD:15:latest3.14.14_63.14.14_6n/a3.14.14_63.14.14_6
FreeBSD:15:quarterly3.14.14_63.14.14_6n/an/an/a
FreeBSD:16:latest3.14.14_63.14.14_6n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3

No port depends on this one.

Configuration

Options name: sysutils_apcupsd

OptionDefaultDescription
APCDUMB_DRVonDumb UPS driver support
APCSMART_DRVonAPC SmartUPS serial driver support
CGIoffBuild CGI programs to show status
CLIENT_ONLYoffOnly NIS client (no network server or drivers)
GAPCMONoffBuild GTK GUI front-end
MODBUSonMODBUS driver support
MODBUS_USBonMODBUS USB driver support
PCNET_COMMLOSTonExperimental patch for faulty PCNET timeouts
PCNET_DRVonPowerChute Network Shutdown driver support
SHUTDOWN_POWEROFFoffShutdown behavior with Halt and Power off
SNMP_DRVonSNMP driver support
SNMP_DRV_OLDoffOld SNMP driver support
TCP_WRAPPERSon${LIBWRAP_DESC}
TEST_DRVoffTest driver support
USB_DRVonUSB driver support
USB_REPORTINGoffExperimental patch for faulty USB reporting
USES
cpe gmake
Service scripts
apcupsd
Conflicts with
apcctrl

Message after installing

Read the manual: http://www.apcupsd.org/manual/manual.html
                 http://www.apcupsd.org/manual/manual.pdf

Sample files and scripts are installed in /usr/local/etc/apcupsd.
You need to modify /usr/local/etc/apcupsd/apcupsd.conf as follows:

  For serial cable: DEVICE /dev/cuadX (or /dev/cuaaX for [45.]x)
  For USB cable: DEVICE (yes, leave it blank after DEVICE)
  NOTE that for USB cable you need uhid support.

Add apcupsd_enable=YES to your /etc/rc.conf[.local] to have apcupsd
starting up at boot time.

For default, apcupsd starts with `--kill-on-powerfail` parameter.
Please, read its man page, and if this is not the intended behavior you want,
change it accordingly.

If connected via USB and apcaccess reports incomplete data consider enabling
the USB_REPORTING options via 'make config'.  This contains an experimental
patch that may fix some USB attach APC UPS. PR #249041

In some systems where the shutdown can take a while (like in bhyve environment),
you may want to change this behavior as follows:

Set apcupsd_flags="--term-on-powerfail" on your /etc/rc.conf[.local].

Add this to /etc/rc.shutdown, after the "Insert other shutdown procedures here"
line:
  test -f /var/run/powerfail && /usr/local/sbin/apcupsd --hibernate
  or
  test -f /var/run/powerfail && /usr/local/sbin/apcupsd --power-off

Files

Manual pages 5
  • apcaccess(8)
  • apccontrol(8)
  • apctest(8)
  • apcupsd(8)
  • apcupsd.conf(5)
pkg-plist 31
  • sbin/apcupsd
  • sbin/apcaccess
  • sbin/apctest
  • sbin/smtp
  • @sample etc/apcupsd/apcupsd.conf.sample
  • etc/apcupsd/apccontrol
  • @sample etc/apcupsd/changeme.sample
  • @sample etc/apcupsd/commfailure.sample
  • @sample etc/apcupsd/commok.sample
  • @sample etc/apcupsd/onbattery.sample
  • @sample etc/apcupsd/offbattery.sample
  • @sample etc/apcupsd/apcupsd.css.sample
  • @sample etc/apcupsd/hosts.conf.sample
  • @sample etc/apcupsd/multimon.conf.sample
  • etc/apcupsd/cgi/multimon.cgi
  • etc/apcupsd/cgi/upsfstats.cgi
  • etc/apcupsd/cgi/upsimage.cgi
  • etc/apcupsd/cgi/upsstats.cgi
  • bin/gapcmon
  • share/applications/gapcmon.desktop
  • share/pixmaps/apcupsd.png
  • share/pixmaps/charging.png
  • share/pixmaps/gapc_prefs.png
  • share/pixmaps/onbatt.png
  • share/pixmaps/online.png
  • share/pixmaps/unplugged.png
  • share/man/man5/apcupsd.conf.5.gz
  • share/man/man8/apcaccess.8.gz
  • share/man/man8/apccontrol.8.gz
  • share/man/man8/apctest.8.gz
  • share/man/man8/apcupsd.8.gz
distinfo 1
FileSizeSHA256
apcupsd-3.14.14.tar.gz1.843409e+06db7748559b6b4c3784f9856561ef6ac6199ef7bd019b3edcd7e0a647bf8f9867
Master sites 1
  • SF/apcupsd/apcupsd%20-%20Stable/3.14.14

Commit history 0

No commits in the history this site was built from.